What happens when you annotate a Spring bean method with @PostConstruct?
-
A
It runs the method after every HTTP request
-
B
It runs the method once after dependency injection is complete
-
C
It marks the method as a factory method
-
D
It runs the method when the application shuts down