在eclipse中启动Springboot,报错如下
APPLICATION FAILED TO START
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
当你确定你的jdbc配置文件application.properties里的东西没有写错
spring.datasource.url=jdbc:mysql://xxxxx
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=3
spring.datasource.max-wait=10000
spring.datasource.min-idle=1
spring.datasource.initial-size=1
那么只能是一种问题:文件位置放错了,请将你的配置文件放在resource根目录下!!!
因为对于springboot来说,约定大于配置!