title: How to Pass Multiple Packages to packagesToScan property in Spring using XML Configuration
body: <p>Assume i have two packages <strong>com.test1</strong> and <strong>com.test2</strong> in different modules called <strong>M</strong>1 (com.test1) and <strong>M2</strong> (com.test2).</p>
  
  <p>Now in the following example i configured <strong>module1</strong> package. </p>
  
  <pre><code>&lt;bean id="entityManager" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;        
         &lt;property name="packagesToScan" value="com.test1" /&gt;
         &lt;property name="dataSource" ref="dataSource" /&gt;
         &lt;property name="jpaVendorAdapter" ref="hibernateVendor" /&gt;
         &lt;property name="jpaPropertyMap" ref="jpaPropertyMap" /&gt;
     &lt;/bean&gt;
  </code></pre>
  
  <p>But i want to configure Module2 package as well in <strong>packagesToScan</strong> property. How to configure.</p>