If you want an embedded database please put a supported one on the classpath
程序员文章站
2022-04-19 22:34:00
...
在多方查证后,需要在启动类的@EnableAutoConfiguration或@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此类的autoconfig。启动以后就可以正常运行。排除数据库的自动启动
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ElasticJobApplication {
public static void main(String[] args) {
SpringApplication.run(ElasticJobApplication.class, args);
}
}
上一篇: @ConfigurationProperties 与 @Value 对比
下一篇: 自动装配
推荐阅读
-
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