server: port: 9092 spring: application: name: engine-auth redis: host: 127.0.0.1 port: 6379 datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://115.159.33.152:3306/etl username: root password: lzm@123 mvc: pathmatch: matching-strategy: ant_path_matcher profiles: active: dev cloud: nacos: #注册服务 discovery: server-addr: 182.254.221.163:8848 namespace: 10a15e4b-3457-44dc-9378-cc25849f1872 # 配置 config: server-addr: 182.254.221.163:8848 namespace: 10a15e4b-3457-44dc-9378-cc25849f1872 # 配置文件格式 file-extension: yml # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} logging: level: com.bwie: DEBUG auth: jwt: enabled: true # 是否开启JWT登录认证功能 secret: passjava # JWT 私钥,用于校验JWT令牌的合法性 expiration: 1800000 # JWT 令牌的有效期,用于校验JWT令牌的合法性,半个小时 header: Authorization # HTTP 请求的 Header 名称,该 Header作为参数传递 JWT 令牌 userParamName: username # 用户登录认证用户名参数名称 pwdParamName: password # 用户登录认证密码参数名称 useDefaultController: true # 是否使用默认的JwtAuthController skipValidUrl: - /auth/login - /auth/logout mybatis-plus: mapper-locations: classpath:/mapper/*mapper.xml typeAliasesPackage: com.auth.common.entity