Initialization
Annotations
public class Bean {
@PostConstruct
public void initialize() {
// Code
}
}
Interface
public class Bean implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
// Code
}
}
Last updated
Was this helpful?