添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
然后application.properties添加配置:
logging.path=/mylog
logging.file=myy.log
然后再get 访问/logfile 就可以查看日志啦
添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
然后application.properties添加配置:
logging.path=/mylog
logging.file=myy.log
然后再get 访问/logfile 就可以查看日志啦
转载于:https://my.oschina.net/bddiudiu/blog/814192