jeudi 23 juillet 2015

I'm working on a project in Spring using SpringMVC, i'm using the xml element <bean/> and i want to convert my code to @Bean

spring-bean.xml

<bean id="myDao" class="com.my.dao.EmployeImplDB" init-method="init"></bean>

<bean class="com.my.service.EmployeImplMetier" id="myMetier">
    <property name="dao" ref="myDao"></property>
</bean>

how to convert xml to annotation @Bean?

Aucun commentaire:

Enregistrer un commentaire