BadPractice19 - SpotBugsExtensionForSpringFrameWork/CS5098 GitHub Wiki

Description

"We recommend that you do not use the InitializingBean interface, because it unnecessarily couples the code to Spring. Alternatively, we suggest using the @PostConstruct annotation or specifying a POJO initialization method. "

"The JSR-250 @PostConstruct and @PreDestroy annotations are generally considered best practice for receiving lifecycle callbacks in a modern Spring application."

Reference List