52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
server:
|
||
port: 9092
|
||
spring:
|
||
application:
|
||
name: engine-auth
|
||
redis:
|
||
host: 115.159.33.152
|
||
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: 115.159.33.152:8848
|
||
namespace: f9f293d4-55ce-45c1-aa15-124ca461c060
|
||
# 配置
|
||
config:
|
||
server-addr: 115.159.33.152:8848
|
||
namespace: f9f293d4-55ce-45c1-aa15-124ca461c060
|
||
# 配置文件格式
|
||
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
|