<beans> <bean id="myBean" class="..." init-method="init"/> </beans> @PostConstruct public void init() { // ... }