首先最新的pig项目中的nacos 配置的版本是 1.4的版本,我不知道为啥要使用这个版本来做注册中心,官网的稳定版本推荐的使用 1.3.1版本,
Nacos 官网 : https://nacos.io/zh-cn/docs/quick-start.html
项目中确用了1.4.0版本导致源码启动到处出错误。
先来看下完整的错误
2020-11-22 09:59:33,547 INFO The cluster resource is initialized
2020-11-22 09:59:35,603 ERROR Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'trafficReviseFilterRegistration' defined in class path resource [com/alibaba/nacos/naming/web/NamingConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'trafficReviseFilterRegistration' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'trafficReviseFilter': Unsatisfied dependency expressed through field 'serverStatusManager&#