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 (the profiles "dev" are currently active).
Disconnected from the target VM, address: '127.0.0.1:62270', transport: 'socket'
这个错误说的是,spring 定义了数据源的 bean,但没有配置 spring.datasource.url 之类的参数,所以加载数据源 bean 失败了
要处理有两种办法:
- 想办法让 spring 不要加载 datasource
- 配置一个 h2 内存数据库,假装有一个 datasource