我正在使用 MySQL 数据库开发一个 Spring Boot 项目。如果我运行我的代码,一个WrongArgumentException说法是databaseURL cannot be null.
application.properties:
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.jdbc-url=jdbc:mysql//localhost:3306/reserving?autoReconnect=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=****
##Mapper Config##
mybatis.type-aliases-package=com.springboot.reserving
mybatis.mapper-locations=mapper/**/*.xml
spring.devtools.livereload.enabled =true
spring.freemarker.cache=false
错误信息:
java.sql.SQLNonTransientConnectionException: Cannot load connection class
because of underlying exception:
com.mysql.cj.exceptions.WrongArgumentException: The database URL cannot be null.
三国纷争
HUH函数
相关分类