Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- batch
- spring-webmvc #코드읽기
- spring pid
- static inner class
- JUnit
- Spring Data REST
- IntelliJ
- spring boot
- JPA
- docker
- 코드 리뷰
- 톰캣
- Spring Data JPA
- ApplicationPidFileWriter
- spring boot tomcat
- Data REST
- REST API
- spring batch 코드
- SuperTypeToken
- spring camp
- 세미나
- ORM
- spring jpa
- spring-webmvc
- spring-mvc
- tomcat
- spring bean
- JPA mapping
- Spring
- Spring Batch
Archives
- Today
- Total
목록Collection Autowired (1)
woniper
Autowired Generics (Generics Type 주입하기)
전체 예제 : https://github.com/woniper/spring-example/tree/master/spring-boot-custom-bean-name-generator좀더 훌륭한 문서 : https://spring.io/blog/2013/12/03/spring-framework-4-0-and-java-generics 스프링 4.0 부터 자바 제네릭 타입을 주입받을 수 있다. 4.0 미만 버전도 가능은 했지만 번거로운 추가 작업이 필요했다. 예를들어Notification 인터페이스를 구현한 3개의 구현체가 있다고 예를 들자. 12@Autowirdprivate List notifications;cs 4.0 이상부터는 Notification List Type으로 주입이 가능해졌다. 매우 편리하다...
Spring
2016. 12. 3. 19:57