Login
Discover
Waves
Decks
Upgrade
Login
Signup
Topics
New
Trending
Hot
New
New
Trending
Hot
New
Controversial
Rising
Promoted
postconstructor
kyeongrok
springboot
Monday, June 4, 2018 1:51 AM
Spring @PostConstructor란?
스프링은 빈(class, method)을 일단 heap에 등록 해놓고(다 띄워 놓고) 사용하는 방식이기 때문에 생성자(Constructor:컨스트럭터)를 태울 수가 없다. 왜냐하면 컨스트럭터는 new 명령이 실행 될 때 실행 되는데 스프링은 new를 아얘 못쓰게 하지는 않지만 안쓰고 하는 것을 권장 한다. 그래서 컨스트럭터를 쓸수가 없지만 경우에 따라서 빈이
$ 0.000
2
1
Top communities
Create decentralized community