I have following code to enable the JPA repository scan, but I have many packages in my project, is it able to set basePackages in a property file? as I don't want to change this class EntityManagerConfig in this class.
config file:
- com.mycompany.trades.jpa
- com.mycompany.system.jpa
- com.mycompany.crm.jpa
@EnableJpaRepositories(basePackages = { "com.mycompany.system.jpa" }, entityManagerFactoryRef = "emf")
@EntityScan("com.mycompany.system.jpa")
public class EntityManagerConfig {
//...
}