自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除