![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbHeCi3%2FbtsJsMZi7QL%2F0TC9YTIiCOhUFMdbjMdr4k%2Fimg.png)
[Spring] Singleton, Prototype Scope Bean
·
개발 ━━━━━/Spring(boot)
김영한 강사님의 스프링 강의를 보던 중 Singleton, Prototype 에 대한 내용이 나온 적이 있다. ServiceController@Controllerpublic class ServiceController { private final ApplicationContext context; @Autowired public ServiceController(ApplicationContext context) { this.context = context; } @GetMapping("/") public String getServiceHashes(Model model) { SingletonService singletonService = context.ge..