springboot啟動報錯如下:
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).
這是因為springboot默認會啟動一個嵌入的數據庫驅動,但是需要配置,我的項目中不需要用到數據庫,所以需要跳過數據庫檢查
在application類上添加
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
即可