일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Data REST
- Spring Data REST
- Spring
- spring jpa
- 톰캣
- 세미나
- spring-webmvc
- REST API
- spring-webmvc #코드읽기
- ApplicationPidFileWriter
- Spring Batch
- batch
- spring camp
- JPA
- spring pid
- Spring Data JPA
- spring batch 코드
- JUnit
- 코드 리뷰
- IntelliJ
- spring bean
- spring boot tomcat
- static inner class
- tomcat
- spring boot
- JPA mapping
- spring-mvc
- SuperTypeToken
- docker
- ORM
- Today
- 6
- Total
- 912,929
목록spring bean (2)
woniper
Spring에서 IoC Container 역할을 하는 BeanFactory 와 ApplicationContext 동작 방법이 궁금했다. 작년 SLiPP에서 스터디를 했었는데, 다시 한번 블로그에 정리하려 한다. 스프링 구조 일단 스프링에서 BeanFactory와 ApplicationContext의 다이어그램을 보자. 사실 스프링 구조를 잘 이해하지 못하고 다이어그램만 보고는 각각의 interface와 class가 어떤 역할을 하는지 도통 알 수 없다. 핵심은 BeanFactory와 ApplicationContext다. ApplicationContext applicationContext = new AnnotationConfigApplicationContext(BeanConfig.class); Annotat..
Rest API Version Path 문제 Rest API를 만드는데 version 관리가 되어야한다.예를 들면http://localhost:8080/v1/foohttp://localhost:8080/v2/foo와 같은 URL이 필요하다. Spring에서는 @RequestMapping에 value값으로 URL을 설정할 수 있다. 위 URL을 @RequestMapping으로 표현해보자. 1234567891011@RestControllerpublic class SampleController { @RequestMapping(value = "/v1/foo") public ResponseEntity v1Foo() { return ResponseEntity.ok("v1 foo"); } @RequestMapping..