摘要: 1.Spring Boot支持application.properties和application.yml两种格式的配置文件 application.properties写法: 1 #Spring Boot的tomcat默认端口号配置 2 server.port=8080 3 #ContextPat 阅读全文
posted @ 2020-03-03 09:47 puhj 阅读(619) 评论(0) 推荐(0)
摘要: 1.配置文件applicationContext.xml配置如下: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!--配置文件头部引入所使用到的标签的命名空间--> 3 <beans xmlns="http://www.springframework.or 阅读全文
posted @ 2020-03-03 09:30 puhj 阅读(2916) 评论(0) 推荐(0)