# 数据源配置 spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.cj.jdbc.Driver druid: # 主库数据源 master: url: jdbc:mysql://localhost:3306/chat_deepseek?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: T@kai2025 hikari: pool-name: master-Pool # 从库数据源 slave: # 从数据源开关/默认关闭 url: jdbc:mysql://localhost:3306/chat_zhipu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: T@kai2025 hikari: pool-name: slave-Pool # 初始连接数 initialSize: 5 # 最小连接池数量 minIdle: 10 # 最大连接池数量 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置连接超时时间 connectTimeout: 30000 # 配置网络超时时间 socketTimeout: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 # 配置一个连接在池中最大生存的时间,单位是毫秒 maxEvictableIdleTimeMillis: 900000 # 配置检测连接是否有效 validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false webStatFilter: enabled: true statViewServlet: enabled: true # 设置白名单,不填则允许所有访问 allow: url-pattern: /druid/* # 控制台管理用户名和密码 login-username: takai login-password: 123456 filter: stat: enabled: true # 慢SQL记录 log-slow-sql: true slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: true jpa: hibernate: ddl-auto: update show-sql: true properties: hibernate: dialect: org.hibernate.dialect.MySQL8Dialect format_sql: true jk: #Appid iamAppid: e971e84b574c40b2 #Appsecret iamAppsecret: 51e7f274f71f4887b25015fc0743e871 #clientID iamClientID: e97f94cf93761f4d69e8 #clientSecret iamClientSecret: 13845f824b5d9f4f2a58159109aac317263d #用户接口url iamUserUrl: https://esctest.sribs.com.cn/esc-idm/api/v1/account/list #用户回调接口,每次用户接口调用成功后都要回调一次接口 iamCallbackUrl: https://esctest.sribs.com.cn/esc-idm/api/v1/account/callback #部门接口url iamDeptUrl: https://esctest.sribs.com.cn/esc-idm/api/v1/org/listAll #岗位接口url iamPostUrl: https://esctest.sribs.com.cn/esc-idm/api/v1/job/listAll #code换取tokenurl iamTokenUrl: https://esctest.sribs.com.cn/esc-sso/oauth2.0/accessToken #token换取用户信息 iamProfileUrl: https://esctest.sribs.com.cn/esc-sso/oauth2.0/profile #虚拟密码 jkPsw: GybjcxhDe8XQtabXVP1A