【docker部署】spring cloud本地启动正常,docker部署报错BeanCurrentlyInCreationException,... tcpClientServer...

场景:

        技术栈:spring cloud + nacos + xxl-job +netty

问题:

        本地启动正常。

        docker部署报错,(排除指令/端口等问题)

  • 报错信息

ling refresh attempt: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'tcpClientServer': Bean with name 'tcpClientServer' has been injecte      d into other beans [tcpClientHandler] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of  the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesForType' with the 'allowEagerInit' flag turned off, for example.

原因:

        缓存原因,clean不彻底

解决方案:

        重新-clean-install打包即可

posted @ 2022-08-29 17:27  随风落木  阅读(14)  评论(0)    收藏  举报  来源