Files
happy-life-star/backend/logs/user.log
T
peanut c77352877d feat: 完成Nacos配置优化和WebSocket集成
主要更新:
1. 统一所有微服务端口配置(19000-19008)
2. 为所有服务创建本地/测试/生产三套环境配置
3. 配置Nacos认证密码(本地:Peanut2817*#, 测试/生产:EmotionMuseum2025)
4. 优化网关路由配置,支持负载均衡和WebSocket
5. 新增emotion-websocket模块,支持实时聊天
6. 前端集成WebSocket,替代HTTP轮询
7. 添加配置验证和管理工具脚本

技术特性:
- 完整的环境隔离和服务发现
- WebSocket实时通信支持
- 负载均衡路由配置
- 跨域和安全配置
- 自动重连和心跳检测
2025-07-17 18:10:45 +08:00

33 lines
3.5 KiB
Plaintext

2025-07-15T17:59:48.763+08:00 WARN 62881 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
2025-07-15T17:59:48.862+08:00 WARN 62881 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
2025-07-15 17:59:49 [main] WARN com.alibaba.nacos.client.logging.NacosLogging - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.0.2)
2025-07-15 17:59:49 [main] WARN com.alibaba.nacos.client.logging.NacosLogging - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
2025-07-15 17:59:49 [main] INFO com.emotionmuseum.user.UserApplication - The following 1 profile is active: "local"
2025-07-15 17:59:50 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'snowflakeIdGenerator' defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=snowflakeConfig; factoryMethodName=snowflakeIdGenerator; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class]] for bean 'snowflakeIdGenerator' since there is already [Generic bean: class [com.emotionmuseum.common.util.SnowflakeIdGenerator]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null; defined in URL [jar:file:/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/emotion-user-1.0.0.jar!/BOOT-INF/lib/emotion-common-1.0.0.jar!/com/emotionmuseum/common/util/SnowflakeIdGenerator.class]] bound.
2025-07-15 17:59:50 [main] INFO o.s.b.a.logging.ConditionEvaluationReportLogger -
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-07-15 17:59:50 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'snowflakeIdGenerator', defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class], could not be registered. A bean with that name has already been defined in URL [jar:file:/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/emotion-user-1.0.0.jar!/BOOT-INF/lib/emotion-common-1.0.0.jar!/com/emotionmuseum/common/util/SnowflakeIdGenerator.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true