摘要: 1、实现方式一:Spring中的@PropertySource @Component @PropertySource("classpath:user.properties") public class UserInfo { @Value("${user.username}") private Str 阅读全文
posted @ 2020-06-12 11:31 小楼夜听雨QAQ 阅读(182) 评论(0) 推荐(0)
摘要: 1、配置端口等信息 #配置端口号 server.port=8081 #配置上下文路径 server.servlet.context-path=/admin #配置tomcat编码 server.tomcat.uri-encoding=utf-8 2、移除自带的tomcat并配置其他的容器 <depe 阅读全文
posted @ 2020-06-12 10:50 小楼夜听雨QAQ 阅读(486) 评论(0) 推荐(0)