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
- spring-mvc
- 세미나
- spring pid
- SuperTypeToken
- Spring
- spring camp
- spring batch 코드
- IntelliJ
- batch
- spring-webmvc #코드읽기
- Spring Data JPA
- Data REST
- 톰캣
- tomcat
- spring boot tomcat
- JPA mapping
- 코드 리뷰
- REST API
- Spring Data REST
- ApplicationPidFileWriter
- docker
- JUnit
- spring jpa
- ORM
- Spring Batch
- spring boot
- spring-webmvc
- spring bean
- JPA
- static inner class
Archives
- Today
- Total
목록spring scope (1)
woniper
prototype bean은 정말 항상 새로운 객체를 반환할까?
Bean Scope를 좀 살펴보다가 아래와 같은 테스트를 돌려보았다. @Configuration public class BeanScopeConfig { @Bean public AccountService accountService() { AccountService accountService = new AccountService(); accountService.setAccountRepository(accountRepository()); return accountService; } @Bean @Scope(scopeName = "prototype") public AccountRepository accountRepository() { return new AccountRepository(); } } public c..
Spring
2017. 2. 12. 20:19