Is there any difference between using the @PostConstruct annotation and declaring the same method as init-method in Spring XML configuration?
@PostConstruct
init-method
@postconstruct is not part of the spring. It is part of javax package. Both are the same. using init-method we need to added in xml file.If you use @postconstruct adding in xml is not required. Check out the below article .
http://answersz.com/spring-postconstruct-and-predestroy/