Three:
Implement the InitializingBean interface
<bean id="testBean" class="TestClass" init-method="initialize"/>
@PostConstruct
The order of beans in the instantiation process is clear at a glance:
Constructor > @PostConstruct > InitializingBean > init-method