# Nacos 配置 - waybill-service # 导入到 Nacos: nacos config import -d dataId=waybill-service.yml -g DEFAULT_GROUP -u nacos -w nacos spring: application: name: waybill-service server: port: 8086 # 数据库配置 spring.datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://${DB_HOST:111.229.80.149}:${DB_PORT:3306}/${DB_NAME:erp_db}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false username: ${DB_USER:root} password: ${DB_PASSWORD:nihao588+} type: com.alibaba.druid.pool.DruidDataSource druid: initial-size: 5 min-idle: 5 max-active: 20 # Redis配置 spring.data.redis: host: ${REDIS_HOST:111.229.80.149} port: ${REDIS_PORT:6379} password: ${REDIS_PASSWORD:Y(@r5tGk9$Lp2} database: 0 timeout: 5000ms # MyBatis Plus mybatis-plus: mapper-locations: classpath*:/mapper/**/*.xml type-aliases-package: com.erp.waybill.entity configuration: map-underscore-to-camel-case: true global-config: db-config: id-type: auto logic-delete-field: deletedAt # Nacos Discovery alibaba.cloud.nacos.discovery: server-addr: ${NACOS_HOST:111.229.80.149}:8848 namespace: ${NACOS_NAMESPACE:} # Nacos Config alibaba.cloud.nacos.config: server-addr: ${NACOS_HOST:111.229.80.149}:8848 namespace: ${NACOS_NAMESPACE:} file-extension: yml refresh-enabled: true # 运单服务配置 waybill: express: mock: false # 日志 logging: level: com.erp.waybill: INFO