mercredi 18 février 2015

Dynamic properties in spring annotations (@ComponentScan)

I've got following spring header in my class



@Service
@EnableAutoConfiguration(exclude = {HibernateJpaAutoConfiguration.class})
@ComponentScan({"com.package1", "com.package2", "com.package3"})
public class SomeContainer { }


Do you have a possibility to extract this packages ("com.package1, 2 ,3 and etc) into separate property file but to keep annotation driven style?


Aucun commentaire:

Enregistrer un commentaire