.yml文件中加以下代码,主要是因为没有加management
#监控配置
management:
endpoints:
web:
exposure:
include: '*'
logging:
file:
name: logs/${spring.application.name}/info.log
#监控配置
management:
endpoints:
web:
exposure:
include: '*'
logging:
file:
name: logs/${spring.application.name}/info.log