Spring boot "Hikari Pool Shutdown" early error

Shale picture Shale · Nov 12, 2018 · Viewed 16.9k times · Source

ERROR:

2018-11-12 18:25:31.221  INFO 3028 --- [       Thread-3] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...

2018-11-12 18:25:31.223  INFO 3028 --- [       Thread-3] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.

Why does this error occur?

And how can I solve?

Answer

lcnicolau picture lcnicolau · Feb 6, 2019

It seems you don't have any embedded web servers in your classpath. Try adding Tomcat through the spring-boot-starter-web dependency.

Maven pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Gradle build.gradle:

implementation 'org.springframework.boot:spring-boot-starter-web'