mem*_*und 30 java spring spring-boot
我正在使用spring-boot并想自动导入src/main/resources/applicationContext.xml文件.
到目前为止它只有在我明确告诉spring导入它时才有效:
@EnableAutoConfiguration
@Configuration
@ImportResource({"classpath*:applicationContext.xml"})
Run Code Online (Sandbox Code Playgroud)
但是spring-boot有很多默认值,也许有人知道app.xml文件的"默认"名称,所以默认情况下它会被spring-boot选中?
| 归档时间: |
|
| 查看次数: |
49653 次 |
| 最近记录: |