的版本信息
https://huaweicloud.csdn.net/63876b9bdacf622b8df8bacf.html
- bootstrap.yaml 加载问题
高版本的springboot bootstrap.yaml 加载需要引入依赖
- nacos 根据服务名称无法访问,负载均衡失效
高版本的springboot nacos 需要引入 loadbalancer 依赖
- swagger 报documentationPluginsBootstrapper null异常
高版本的springboot swagger 会报 documentationPluginsBootstrapper null异常 修改如下
- 跨域问题
跨域配置 config.setAllowCredentials(true); 之后 就不能设置 config.addAllowedOrigin(“*”); 需要用 config.addAllowedOriginPattern(“*”); 代替
因为 org.springframework.web.cors.CorsConfiguration 的 validateAllowCredentials 方法 如下
- quartz 报错 DataSource name not set
错误信息:org.quartz.SchedulerConfigException: DataSource name not set.
解决方法:
JobStore配置 springboot>2.5.6后 spring.quartz.properties.org.quartz.jobStore.class 使用 org.springframework.scheduling.quartz.LocalDataSourceJobStore
作者:Jeebiz 创建时间:2024-10-04 23:36
最后编辑:Jeebiz 更新时间:2024-11-25 20:34
最后编辑:Jeebiz 更新时间:2024-11-25 20:34