慕粉6955152
2018-12-18 13:23
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
???
还是不行啊
这是怎么解决的呀,兄弟
//因为 springboot启动时会自动注入数据源和配置jpa //所以 在@SpringBootApplication中排除其注入 @SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
SpringBoot+MyBatis搭建迷你小程序
91500 学习 · 621 问题
相似问题