2024-01-31 16:31:50 +08:00
|
|
|
|
spring:
|
2024-06-03 11:23:52 +08:00
|
|
|
|
profiles:
|
2024-06-05 09:06:08 +08:00
|
|
|
|
active: dev
|
2024-01-31 16:31:50 +08:00
|
|
|
|
application:
|
|
|
|
|
name: @project.artifactId@
|
|
|
|
|
# 定时任务属性配置
|
|
|
|
|
quartz:
|
|
|
|
|
properties:
|
|
|
|
|
org:
|
|
|
|
|
quartz:
|
|
|
|
|
scheduler:
|
|
|
|
|
instanceName: clusteredScheduler
|
|
|
|
|
instanceId: AUTO
|
|
|
|
|
jobStore:
|
|
|
|
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
|
|
|
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
|
|
|
|
tablePrefix: QRTZ_
|
|
|
|
|
isClustered: true
|
|
|
|
|
clusterCheckinInterval: 10000
|
|
|
|
|
useProperties: false
|
|
|
|
|
threadPool:
|
|
|
|
|
class: org.quartz.simpl.SimpleThreadPool
|
|
|
|
|
threadCount: 50
|
|
|
|
|
threadPriority: 5
|
|
|
|
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
|
|
|
|
job-store-type: jdbc
|
|
|
|
|
jdbc:
|
|
|
|
|
initialize-schema: always # 生产注意设置为 never
|
|
|
|
|
# 上传文件大小限制
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 100MB
|
|
|
|
|
max-request-size: 100MB
|
2024-04-10 09:24:16 +08:00
|
|
|
|
# 静态资源文件
|
2024-01-31 16:31:50 +08:00
|
|
|
|
mvc:
|
|
|
|
|
static-path-pattern: /static/**
|
|
|
|
|
|
|
|
|
|
gateway:
|
|
|
|
|
# 前端密码登录解密密钥,和前端 .env 保存一致(16位)
|
2024-03-15 13:30:31 +08:00
|
|
|
|
encodeKey: thanks,rax4cloud
|
2024-01-31 16:31:50 +08:00
|
|
|
|
# 跳过验证码的客户端 clientId1,clientId2
|
2024-03-12 09:10:03 +08:00
|
|
|
|
ignore-clients: test,rax
|
2024-01-31 16:31:50 +08:00
|
|
|
|
|
|
|
|
|
# 本地文件系统
|
|
|
|
|
file:
|
|
|
|
|
local:
|
|
|
|
|
enable: true
|
|
|
|
|
base-path: /Users/lengleng/Downloads/img
|
|
|
|
|
|
|
|
|
|
## spring security 对外暴露接口设置
|
|
|
|
|
security:
|
|
|
|
|
oauth2:
|
|
|
|
|
ignore:
|
|
|
|
|
urls:
|
|
|
|
|
- /webjars/**
|
|
|
|
|
- /v3/api-docs/**
|
|
|
|
|
- /doc.html
|
|
|
|
|
- /swagger-ui.html
|
|
|
|
|
- /swagger-ui/**
|
|
|
|
|
- /swagger-resources
|
|
|
|
|
- /token/check_token
|
|
|
|
|
- /error
|
|
|
|
|
- /actuator/**
|
|
|
|
|
- /code/**
|
2024-03-15 16:55:59 +08:00
|
|
|
|
- /rax/**
|
2024-03-21 10:03:52 +08:00
|
|
|
|
- /hospital/getHospitalList
|
2024-02-21 11:47:40 +08:00
|
|
|
|
# 临时白名单
|
2024-01-31 16:31:50 +08:00
|
|
|
|
|
|
|
|
|
#--------------如下配置尽量不要变动-------------
|
|
|
|
|
# mybatis-plus 配置
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
mapper-locations: classpath*:/mapper/*Mapper.xml
|
|
|
|
|
global-config:
|
|
|
|
|
banner: false
|
|
|
|
|
db-config:
|
|
|
|
|
id-type: auto
|
|
|
|
|
where-strategy: not_empty
|
|
|
|
|
insert-strategy: not_empty
|
|
|
|
|
update-strategy: not_null
|
2024-02-21 11:47:40 +08:00
|
|
|
|
type-handlers-package: com.rax.common.mybatis.handler
|
2024-01-31 16:31:50 +08:00
|
|
|
|
configuration:
|
|
|
|
|
jdbc-type-for-null: 'null'
|
|
|
|
|
call-setters-on-nulls: true
|
|
|
|
|
shrink-whitespaces-in-sql: true
|
2024-03-01 13:01:35 +08:00
|
|
|
|
|
2024-06-03 11:23:52 +08:00
|
|
|
|
---
|
|
|
|
|
spring:
|
|
|
|
|
config:
|
|
|
|
|
activate:
|
|
|
|
|
on-profile: prod
|
|
|
|
|
# 缓存相关配置
|
|
|
|
|
cache:
|
|
|
|
|
type: redis
|
|
|
|
|
data:
|
|
|
|
|
redis:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 6378
|
|
|
|
|
# 数据库相关配置
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
username: root
|
|
|
|
|
password: Xg137839
|
|
|
|
|
url: jdbc:mysql://110.41.142.124:3306/rax_backend?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
port: 6379
|
|
|
|
|
servlet:
|
|
|
|
|
context-path: /admin
|
|
|
|
|
|
2024-03-01 13:01:35 +08:00
|
|
|
|
vital-sign:
|
2024-05-29 09:33:22 +08:00
|
|
|
|
except-database: admin,config,local
|
|
|
|
|
information-database: information
|
2024-03-01 13:01:35 +08:00
|
|
|
|
mongodb:
|
2024-06-03 11:23:52 +08:00
|
|
|
|
host: localhost:27017
|
|
|
|
|
password: Xg137839mg
|
|
|
|
|
username: useradmin
|
2024-04-25 19:05:39 +08:00
|
|
|
|
|
2024-03-12 09:10:03 +08:00
|
|
|
|
mysql:
|
2024-04-29 09:28:28 +08:00
|
|
|
|
host: 110.41.142.124:3306
|
|
|
|
|
password: Xg137839
|
|
|
|
|
username: root
|
2024-06-03 11:23:52 +08:00
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
spring:
|
|
|
|
|
config:
|
|
|
|
|
activate:
|
|
|
|
|
on-profile: dev
|
|
|
|
|
# 缓存相关配置
|
|
|
|
|
cache:
|
|
|
|
|
type: redis
|
|
|
|
|
data:
|
|
|
|
|
redis:
|
|
|
|
|
host: 192.168.65.130
|
|
|
|
|
|
|
|
|
|
# 数据库相关配置
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
username: root
|
|
|
|
|
password: root
|
2024-06-05 09:06:08 +08:00
|
|
|
|
url: jdbc:mysql://192.168.65.130:3306/rax_backend2?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
2024-06-03 11:23:52 +08:00
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
port: 9999
|
|
|
|
|
servlet:
|
|
|
|
|
context-path: /admin
|
|
|
|
|
|
|
|
|
|
vital-sign:
|
|
|
|
|
except-database: admin,config,local
|
|
|
|
|
information-database: information
|
|
|
|
|
mongodb:
|
|
|
|
|
host: 192.168.65.130:27017
|
|
|
|
|
password: root
|
|
|
|
|
username: root
|
|
|
|
|
|
|
|
|
|
mysql:
|
|
|
|
|
host: 192.168.65.130:3306
|
|
|
|
|
password: root
|
|
|
|
|
username: root
|