If you want an embedded database (H2, HSQL or Derby), please put it on the classpath..
程序员文章站
2022-04-19 22:42:18
...
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)
这样的标语也找不原因.
网上用的方法
@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class WzxWebApplication {
public static void main(String[] args) {
SpringApplication.run(WzxWebApplication.class, args);
}
}
这样做没有用.
最终通过添加一个依赖解决了问题
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4</version>
</dependency>
也许能帮你们
转载于:https://www.jianshu.com/p/def2a55ee971
上一篇: 现实世界中的 Python
下一篇: JavaScript实现Tab切换
推荐阅读
-
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
-
If you want an embedded database please put a supported one on the classpath
-
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath..
-
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
-
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath
-
cloud 启动报错:If you want an embedded database please put a supported one on the classpath
-
If you want an embedded database please put a supported one on the classpath
-
If you want an embedded database please put a supported one on the classpath
-
spring boot 启动报If you want an embedded database please put a supported one on the classpath
-
配置SpringCloud时错误:If you want an embedded database please put a supported one on the classpath