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 |
Tags
- JUnit
- Spring Data JPA
- Spring
- spring-webmvc
- SuperTypeToken
- JPA
- spring camp
- spring-webmvc #코드읽기
- 코드 리뷰
- spring boot
- spring batch 코드
- tomcat
- static inner class
- Spring Data REST
- spring bean
- ORM
- ApplicationPidFileWriter
- REST API
- spring-mvc
- Data REST
- spring boot tomcat
- IntelliJ
- docker
- JPA mapping
- Spring Batch
- spring pid
- 세미나
- batch
- 톰캣
- spring jpa
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