【SpringBoot】在启动SpringBoot项目后,能够显示接口地址、控制台输出接口地址。

需要的依赖:

	<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

结果展示:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43263647/article/details/111573820