yml配置过程中不能出现同一个前缀写多次,否则只会识别最后一个
#设置服务器配置
server:
port: 8090
spring:
thymeleaf:
cache: false
devtools:
restart:
enabled: true
redis:
host: 127.0.0.1
port: 8082
password: root
autoconfigure:
exclude:
logging:
config: classpath:config/log4j2.xml
db:
basic:
url: jdbc:mysql://www.xxxxx.cn:3306/test1?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
school:
core:
url: jdbc:mysql://www.xxxxx.cn:3306/test2?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root