2. pig-auth 报错 Cannot deserialize

  1. annot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is java.io.InvalidClassException: org.springframework.security.core.userdetails.User; local class incompatible: stream classdesc serialVersionUID = 540
  2. , local class serialVersionUID = 530","data":"unauthorized"}

报错原因: 之前运行过旧版本 pig 升级后 依赖版本数据结构发生变化导致旧数据无法序列化

解决方案: 清空redis 旧数据

  1. ./redis-cli 11:12:12
  2. 127.0.0.1:6379> FLUSHALL
  3. OK

3. 根pom pig-cloud-dependencies-parent 源码在哪里?

常见问题 - 图1

源码地址: https://gitee.com/log4j/pig-cloud-dependencies-parent

4. pig-register 模块的 nacos-naming 、nacos-config 的源码在哪里?

image.png

源码地址: https://github.com/alibaba/nacos 未做任何封装。
为什么要内置 nacos console 模块是为了统一环境,方便开发中使用,生产环境还是直接使用官方打好的Nacos Server。

5. 前端启动失败提示 Node Sass could not find a binding

  1. Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x
  • 解决方法,尝试执行
    1. npm rebuild node-sass