Skip to content
章节导航

项目启动日志

依赖引入

xml
<dependency>
  <groupId>com.github.itdachen</groupId>
  <artifactId>runner-spring-boot-starter</artifactId>
  <version>[最新版本]</version>
</dependency>

项目启动

Spring Boot 项目正常启动,项目启动成功后会打印项目启动成功日志:

shell
------------------------------------------------------------
	application [ next-admin ] successfully started 
	time consuming: 	5 s 
	profiles: 			[dev]
	thread: 			4056
	request address: 	http://172.28.64.1:8085/fly
------------------------------------------------------------

【注意】项目在配置文件中, 需要配置 server.servlet.context-path, 若没有配置,项目启动成功后将不打印。