server: port: 8084 spring: application: name: user-service cloud: nacos: server-addr: 124.71.159.195:8848 # nacos地址 profiles: active: local datasource: url: jdbc:mysql://${hm.db.host}:3307/hm-user?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai driver-class-name: com.mysql.cj.jdbc.Driver username: root password: ${hm.db.pw} mybatis-plus: configuration: default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler global-config: db-config: update-strategy: not_null id-type: auto logging: level: com.hmall: debug pattern: dateformat: HH:mm:ss:SSS file: path: "logs/${spring.application.name}" knife4j: enable: true openapi: title: 黑马商城用户服务接口文档 description: "黑马商城用户服务接口文档" email: zhangsan@itcast.cn concat: 宇哥 url: https://www.itcast.cn version: v1.0.0 group: default: group-name: default api-rule: package api-rule-resources: - com.hmall.user.controller feign: httpclient: enabled: true # 使用 Apache HttpClient(默认关闭) hm: jwt: location: classpath:hmall.jks alias: hmall password: hmall123 tokenTTL: 30m # keytool -genkeypair -alias hmall -keyalg RSA -keypass hmall123 -keystore hmall.jks -storepass hmall123