xuefei
2024-07-08 2cb1815b1616b6b4e81fd4deeea5dfdef63837d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
spring:
  cache:
    type: redis
  redis:
    host: platformx-redis
  # 数据库相关配置
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
      username: root
      password: rootroot
      url: jdbc:mysql://platformx-mysql:3306/platformxx_demo?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
  jpa:
    # 自动生成表结构
    hibernate:
      ddl-auto: update
    show-sql: true
 
 
security:
  # 登录报文加密根密钥 ,必须是16位
  encodeKey: pigxpigxpigxpigx
 
# 配置文件加密根密码
jasypt:
  encryptor:
    password: platformx
    algorithm: PBEWithMD5AndDES
    iv-generator-classname: org.jasypt.iv.NoIvGenerator
 
# swagger 配置
swagger:
  token-url: ${swagger.gateway}/admin/oauth2/token