How to Pass Multiple Packages to packagesToScan property in Spring using XML Configuration How to Pass Multiple Packages to packagesToScan property in Spring using XML Configuration spring spring

How to Pass Multiple Packages to packagesToScan property in Spring using XML Configuration


I found answer my self.

<bean id="entityManager" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">             <property name="packagesToScan">         <array>              <value>com.test1</value>              <value>com.test2</value>         </array>     </property>            <property name="dataSource" ref="dataSource" />     <property name="jpaVendorAdapter" ref="hibernateVendor" />     <property name="jpaPropertyMap" ref="jpaPropertyMap" /></bean>