暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

oup升级2.0(二) 升到 spring boot 2.0/cloud Hoxton.SR7​

loulou分享 2020-10-23
386

6、@EnableFeignClients 注解失效。

     在前面1-依赖报错后,由于spring-cloud-starter-feign作废,造成注解@EnableFeignClients 失效替换为 spring-cloud-starter-openfeign (deprecated),需要刷新maven依赖,重建依赖方生效。

7、thymeleaf渲染编译报红,需要升级security到5。

<dependency>

 <groupId>org.thymeleaf.extras</groupId>

<artifactId>thymeleaf-extras-springsecurity5</artifactId>

</dependency>

8、The bean 'oup-service', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

  升级feign的包后,在2个Feign接口类内定义相同的名字,@FeignClient会报错。增加配置spring.main.allow-bean-definition-overriding=true,合并重名的配置。

9、Caused by: java.lang.ClassNotFoundException: io.lettuce.core.

AbstractRedisClient

    lettuce的依赖包版本太底,删除旧的依赖,重新引入。

10、报错:访问超时http://localhost:9411/api/v2/spans

  解决办法:参考官方回复https://github.com/abesto/zipkin/commit/acf858c5929454714be55b55f6e1535dea94fa11) 关闭zipkin的注解

11、java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"

    解决办法:https://blog.csdn.net/weixin_39220472/article/details/80865411   增加encode 并在增加passwordEncode中增加相关配置

12、oup-service以及oup-console 重复刷新授权检查,因为/health调整为/actuator/healthy 

   security将心跳请求调整为非校验请求,关于匿名、公共请求、非校验、授权等安全机制,查看security官方文档。

13、mycat偶发性数据查询不到

      经盘查,mysql的主备备集群容器方案在随机启动中,容易损坏挂载点配置,需要重新挂载。建议启动数据库,重新挂载主备备机制即可,建议脚本自动化操作

14、redis docker版本,偶发性overlay文件系统不识别,

     日志overlay模式,在容器中由于资源限制,持久化容易出错,映射到主机




文章转载自loulou分享,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论