일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 톰캣
- spring-mvc
- spring camp
- Spring Batch
- JPA mapping
- spring bean
- ORM
- spring batch 코드
- spring-webmvc
- tomcat
- Spring Data JPA
- Spring Data REST
- docker
- spring boot tomcat
- ApplicationPidFileWriter
- static inner class
- spring boot
- SuperTypeToken
- REST API
- IntelliJ
- spring-webmvc #코드읽기
- batch
- Spring
- spring jpa
- JUnit
- spring pid
- 세미나
- JPA
- 코드 리뷰
- Data REST
- Today
- 1
- Total
- 916,386
목록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..