- 博客(3)
- 收藏
- 关注
原创 解决Please set spring.main.web-application-type=reactive or remove spring-boot-starter-web dependency.
原因很明显:SpringMVC和SpringCloudGateway不共存,但是我子项目pom文件根本没有spring-boot-starter-web,是从父项目继承过来的。解决方法①:在application.yml添加spring.main.web-application-type=reactive。解决方法②:用exclusions排除spring-boot-starter-web依赖。知识点:exclusions的应用。gateway运行时报错。
2024-01-25 18:19:45 1639
原创 解决 Failed to start bean ‘webServerStartStop‘; nested exception is java.lang.reflect.UndeclaredThrowa
解决方法:查看IDEA中的。
2024-01-21 20:15:12 980 1
原创 解决Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource
类,DataSourceAutoConfiguration类使用了@Configuration注解向spring注入了dataSource bean。因为工程中没有关于dataSource相关的配置信息,当spring创建dataSource bean因缺少相关的信息就会报错。学习微服务拆分时,启动csmall-business(购买业务)时报错。spring boot默认会加载。
2024-01-14 23:32:08 526 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人