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 定義了數(shù)據(jù)源的 bean地粪,但沒有配置 spring.datasource.url 之類的參數(shù)惠况,所以加載數(shù)據(jù)源 bean 失敗了
要處理有兩種辦法:
- 想辦法讓 spring 不要加載 datasource
- 配置一個 h2 內(nèi)存數(shù)據(jù)庫迎变,假裝有一個 datasource