配置SpringCloud时错误:If you want an embedded database please put a supported one on the classpath
程序员文章站
2022-04-19 22:33:30
...
原文链接:https://blog.csdn.net/qq_32157851/article/details/85125139
在配置路由网关时错误:
需要正在主启动类的注解上加上:@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
即可解决错误
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableZuulProxy/*类似代理*/
public class Zuul_9527_StartSpringCloudApp {
public static void main(String[] args) {
SpringApplication.run(Zuul_9527_StartSpringCloudApp.class, args);
}
}
上一篇: spring boot 启动报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 have dat
推荐阅读
-
If you want an embedded database please put a supported one 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
-
启动服务报错:If you want an embedded database please put a supported one on the classpath. If you have dat
-
springboot If you want an embedded database please put a supported one on the classpath