Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. /**
  2. * Classe utilizzata per la configurazione a livello applicativo
  3. *
  4. * Usare ImportResource per importare altre risorse
  5. *
  6. */
  7. @Configuration
  8. @PropertySource({
  9. "classpath:triage.properties"
  10. })
  11. @ImportResource(value = {
  12. "WEB-INF/report.xml",
  13. "WEB-INF/repository-jpa.xml",
  14. "WEB-INF/security.xml"
  15. })
  16. @ComponentScan(basePackages = {
  17. "com.astir.triage.persistence.repository.jpa",
  18. "com.astir.triage.report",
  19. "com.astir.triage.service",
  20. "com.astir.triage.service.impl",
  21. "com.astir.triage.service.security",
  22. })
  23. public class ApplicationConfiguration {
  24.  
  25. @Bean
  26. public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
  27. return new PropertySourcesPlaceholderConfigurer();
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement