# 本地开发环境配置 spring: cloud: nacos: discovery: server-addr: localhost:8848 namespace: group: DEFAULT_GROUP enabled: true username: nacos password: nacos metadata: version: 1.0.0 zone: local register-enabled: true ephemeral: true cluster-name: DEFAULT service: ${spring.application.name} weight: 1 heart-beat-interval: 5000 heart-beat-timeout: 15000 ip-delete-timeout: 30000 config: server-addr: localhost:8848 namespace: group: DEFAULT_GROUP file-extension: yml enabled: false username: nacos password: nacos # 数据源配置 datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true username: root password: 123456 # Redis配置 data: redis: host: localhost port: 6379 password: database: 0 # WebSocket配置 websocket: allowed-origins: "*" sockjs: enabled: true heartbeat-time: 25000 disconnect-delay: 5000 stomp: relay: enabled: false broker: enabled: true destinations: ["/topic", "/queue"] application-destination-prefixes: ["/app"] user-destination-prefix: "/user" # Coze平台配置 coze: base-url: https://api.coze.cn api-key: your-coze-api-key bot-id: 7523042446285439016 workflow-id: 7523047462895796287 user-id: emotion-museum-user token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO timeout: 60 max-retries: 3 stream: false # 日志配置 logging: level: com.emotionmuseum: debug com.baomidou.mybatisplus: debug com.alibaba.nacos: info org.springframework.web.socket: debug org.springframework.messaging: debug file: name: logs/emotion-websocket-local.log