Java【SpringBoot】——引入配置文件


1 @SpringBootApplication
2 @ImportResource("classpath:bean.xml")
3 public class MySpringBootApplication {
4 
5     public static void main(String[] args) {
6         SpringApplication.run(MySpringBootApplication.class);
7     }
8 }

 

posted @ 2022-09-19 06:46  陆陆无为而治者  阅读(105)  评论(0编辑  收藏  举报