Let’s take a look at the screenshot of the error report first:
he said that an exception occurred during the initialization of hikaripool-1-pool, which led to the failure of project startup
reason: JDBC connection failed
solution:
Step 1: check the application first After the URL in yaml is 3360/(database name), check whether there is this name in your database
Step 2: check whether the username and password are the same as when designing the database. Usually, we use root and 123456 when designing. Because when you import a new project, these things are easy to forget to change and report errors. So check whether the address, port and database name are the same as your own
in addition, if you are using springboot 2.0 or above
Should be configured as driver ‐ class ‐ Name: com.mysql.cj.jdbc.Driver
datasource:
# //PATH PORT DATABASE_NAME
url: jdbc:mysql://${MYSQL_HOST:localhost}:3306/studentmanagement
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
After we finish the modification, let’s check the operation again:
The project is running successfully
Read More:
- Configuration of springboot + Druid connection pool
- NULL value exception occurs when freemarker renders the page globally in the springboot project
- SpringBoot Project Run Page Error: Whitelabel Error Page This application has no explicit mapping for /error
- [Solved] Springboot Project Error: Mail server connection failed;
- [Solved] Java.lang.BootstrapMethodError: call site initialization exception
- [Solved] Springboot Project Startup Error: Unable to Identify bootstrap.yml Configuration
- Springboot Project Error: Failed to execute goal org.apache.maven.plugins
- [Solved] SpringBoot Microservices: Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded dat
- [Solved] SpringBoot Create Project and Failed to Access localhost:8080 Error
- Java database Druid error: com.alibaba.druid.pool.DruidDataSource error
- [Solved] IO exception: NL exception was generated
- Springboot Project: How to Introduces Local Jar Package
- [Solved] Springboot Error: Error creating bean with name ‘dataSource‘ defined in class path resource
- [Solved] SpringBoot Project Startup Error: Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
- [Solved] javajdk1.8 Run javaFx Error: Error:Error: A fatal exception has occurred. Unrecognized option: –module-path
- [Solved] Springboot Project Start Error: An attempt was made to call the method com.google.common.collect.Multimaps.asMap
- [Solved] Springboot project introduces Font library error: java.awt.fontformatexception: bad table, tag = XXXXXX
- Springboot thymeleaf Error: Exception processing template “table/dynamic_table”: Error resolving template [common]…
- [Solved] Sprintboot hikari initialize error: ERROR 27468 — [nio-8080-exec-1] com.zaxxer.hikari.pool.HikariPoolHikariPool
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>