SpringBoot启动失败:出现错误——HikariPool-1 - Shutdown initiated...后立即出现?HikariPool-1 - Shutdown completed.
2021/4/12 10:58:35
本文主要是介绍SpringBoot启动失败:出现错误——HikariPool-1 - Shutdown initiated...后立即出现?HikariPool-1 - Shutdown completed.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
问题:
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.5.RELEASE) 2021-04-12 10:08:16.432 INFO 12728 --- [ main] c.b.m.s.p.PaginationApplication : Starting PaginationApplication on LAPTOP-J3Q53C5V with PID 12728 (C:\Users\mahao\Documents\毕设\study\mybatis-plus-samples\mybatis-plus-sample-pagination\target\classes started by mahao in C:\Users\mahao\Documents\毕设\study\mybatis-plus-samples) 2021-04-12 10:08:16.432 DEBUG 12728 --- [ main] c.b.m.s.p.PaginationApplication : Running with Spring Boot v2.3.5.RELEASE, Spring v5.2.10.RELEASE 2021-04-12 10:08:16.432 INFO 12728 --- [ main] c.b.m.s.p.PaginationApplication : No active profile set, falling back to default profiles: default 2021-04-12 10:08:17.097 INFO 12728 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-04-12 10:08:17.191 INFO 12728 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.4.1 2021-04-12 10:08:17.870 INFO 12728 --- [ main] c.b.m.s.p.PaginationApplication : Started PaginationApplication in 1.971 seconds (JVM running for 2.675) 2021-04-12 10:08:17.886 INFO 12728 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-04-12 10:08:17.886 INFO 12728 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
解决:
添加spring-web的启动依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
这篇关于SpringBoot启动失败:出现错误——HikariPool-1 - Shutdown initiated...后立即出现?HikariPool-1 - Shutdown completed.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23Springboot应用的多环境打包入门
- 2024-11-23Springboot应用的生产发布入门教程
- 2024-11-23Python编程入门指南
- 2024-11-23Java创业入门:从零开始的编程之旅
- 2024-11-23Java创业入门:新手必读的Java编程与创业指南
- 2024-11-23Java对接阿里云智能语音服务入门详解
- 2024-11-23Java对接阿里云智能语音服务入门教程
- 2024-11-23JAVA对接阿里云智能语音服务入门教程
- 2024-11-23Java副业入门:初学者的简单教程
- 2024-11-23JAVA副业入门:初学者的实战指南