需要的依赖:
<dependencies>
<!--↓↓↓SpringMVC必要的组件,默认使用嵌入式的tomcat作为web容器对外提供HTTP服务↓↓↓ -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 日志 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
</dependencies>
配置文件application.properties:
logging.level.org.springframework.web=TRACE
结果展示: