Where to put spring configuration files when using maven

前端 未结 1 1014
孤独总比滥情好
孤独总比滥情好 2021-02-02 04:45

I\'m trying to solve my configuration-files-problem.

I have Spring MVC application with this structure (my current structure)

src/main/java/ .................         


        
相关标签:
1条回答
  • 2021-02-02 05:19

    A common pattern (for example used by Spring Roo applications) is to put the configuration files under src\main\resources\META-INF\spring\

    Then you can load them via the same expression classpath:META-INF\spring\application-context.xml in tests as well as in your application.

    0 讨论(0)
提交回复
热议问题