Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
xggz | 048b75dfe5 | 3 years ago |
xggz | 15278e50ff | 3 years ago |
xggz | df64f2649b | 3 years ago |
xggz | e7842b0823 | 3 years ago |
xggz | 108da38e8e | 3 years ago |
xggz | 912eac77fc | 3 years ago |
xggz | ec3a967863 | 3 years ago |
xggz | e3d71eb500 | 3 years ago |
xggz | f71472e450 | 3 years ago |
xggz | d81dca9217 | 3 years ago |
9 changed files with 200 additions and 27 deletions
@ -1,25 +0,0 @@
|
||||
# ---> Java |
||||
# Compiled class file |
||||
*.class |
||||
|
||||
# Log file |
||||
*.log |
||||
|
||||
# BlueJ files |
||||
*.ctxt |
||||
|
||||
# Mobile Tools for Java (J2ME) |
||||
.mtj.tmp/ |
||||
|
||||
# Package Files # |
||||
*.jar |
||||
*.war |
||||
*.nar |
||||
*.ear |
||||
*.zip |
||||
*.tar.gz |
||||
*.rar |
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
||||
hs_err_pid* |
||||
|
@ -0,0 +1,44 @@
|
||||
# 暴露监控端点 |
||||
management: |
||||
endpoints: |
||||
web: |
||||
exposure: |
||||
include: '*' |
||||
endpoint: |
||||
health: |
||||
show-details: always |
||||
|
||||
# feign 配置 |
||||
feign: |
||||
# 开启断路器 |
||||
hystrix: |
||||
enabled: true |
||||
okhttp: |
||||
enabled: true |
||||
httpclient: |
||||
enabled: false |
||||
client: |
||||
config: |
||||
default: |
||||
connectTimeout: 10000 |
||||
readTimeout: 10000 |
||||
# 请求和响应的压缩配置 |
||||
compression: |
||||
request: |
||||
enabled: true |
||||
mime-types: text/xml;application/xml;application/json |
||||
min-request-size: 2048 |
||||
response: |
||||
enabled: true |
||||
|
||||
# 负载均衡请求处理的超时时间 |
||||
ribbon: |
||||
ReadTimeout: 10000 |
||||
ConnectTimeout: 10000 |
||||
|
||||
# 设置日志级别 |
||||
logging: |
||||
level: |
||||
com: |
||||
zsw: |
||||
cloud: debug |
@ -0,0 +1,35 @@
|
||||
spring: |
||||
# 数据库配置 |
||||
datasource: |
||||
type: com.zaxxer.hikari.HikariDataSource |
||||
driver-class-name: com.mysql.cj.jdbc.Driver |
||||
url: ${zsw.databases.url} |
||||
username: ${zsw.databases.username} |
||||
password: ${zsw.databases.password} |
||||
|
||||
# 持久层配置 |
||||
mybatis-plus: |
||||
# 开启租户数据维护 |
||||
tenant-enabled: true |
||||
mapper-locations: classpath*:mappers/*.xml |
||||
#实体扫描,多个package用逗号或者分号分隔 |
||||
type-aliases-package: com.zsw.cloud.*.entity |
||||
global-config: |
||||
# 关闭MP3.x自带的banner |
||||
banner: false |
||||
db-config: |
||||
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; |
||||
id-type: ASSIGN_ID |
||||
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" |
||||
field-strategy: NOT_EMPTY |
||||
#驼峰下划线转换 |
||||
column-underline: true |
||||
#逻辑删除配置 |
||||
logic-delete-field: deleted |
||||
logic-delete-value: 1 |
||||
logic-not-delete-value: 0 |
||||
refresh: true |
||||
configuration: |
||||
map-underscore-to-camel-case: true |
||||
cache-enabled: false |
||||
call-setters-on-nulls: true |
@ -0,0 +1,7 @@
|
||||
# RabbitMq主配置 |
||||
spring: |
||||
rabbitmq: |
||||
host: 127.0.0.1 |
||||
port: 5672 |
||||
username: guest |
||||
password: guest |
@ -0,0 +1,13 @@
|
||||
# Redis主缓存配置 |
||||
spring: |
||||
redis: |
||||
host: 127.0.0.1 |
||||
port: 6379 |
||||
database: 6 |
||||
timeout: 6000 |
||||
lettuce: |
||||
pool: |
||||
max-active: 10 |
||||
max-wait: -1ms |
||||
max-idle: 10 |
||||
min-idle: 2 |
@ -0,0 +1,5 @@
|
||||
zsw: |
||||
databases: |
||||
url: jdbc:mysql://127.0.0.1:3306/zsw_auth?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8 |
||||
username: zsw_auth |
||||
password: zsw_auth_2022 |
@ -0,0 +1,76 @@
|
||||
zsw: |
||||
databases: |
||||
url: jdbc:mysql://127.0.0.1:3306/xxl_job_230?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8 |
||||
username: xxl_job_230 |
||||
password: zsw2022#Job |
||||
|
||||
spring: |
||||
# 数据库配置 |
||||
datasource: |
||||
type: com.zaxxer.hikari.HikariDataSource |
||||
driver-class-name: com.mysql.cj.jdbc.Driver |
||||
url: ${zsw.databases.url} |
||||
username: ${zsw.databases.username} |
||||
password: ${zsw.databases.password} |
||||
mail: |
||||
default-encoding: UTF-8 |
||||
host: smtp.exmail.qq.com |
||||
password: xxxxxx |
||||
port: 25 |
||||
protocol: smtp |
||||
from: job@zsw.com |
||||
username: job@zsw.com |
||||
properties: |
||||
mail: |
||||
smtp: |
||||
auth: true |
||||
starttls: |
||||
enable: true |
||||
required: true |
||||
socketFactory: |
||||
class: javax.net.ssl.SSLSocketFactory |
||||
|
||||
# 持久层配置 |
||||
mybatis-plus: |
||||
# 开启租户数据维护 |
||||
tenant-enabled: true |
||||
mapper-locations: classpath:/mybatis-mapper/*Mapper.xml |
||||
#实体扫描,多个package用逗号或者分号分隔 |
||||
type-aliases-package: com.xxl.job.admin.core.model |
||||
global-config: |
||||
# 关闭MP3.x自带的banner |
||||
banner: false |
||||
db-config: |
||||
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; |
||||
id-type: AUTO |
||||
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" |
||||
field-strategy: NOT_EMPTY |
||||
#驼峰下划线转换 |
||||
column-underline: true |
||||
#逻辑删除配置 |
||||
logic-delete-field: deleted |
||||
logic-delete-value: 1 |
||||
logic-not-delete-value: 0 |
||||
refresh: true |
||||
configuration: |
||||
map-underscore-to-camel-case: true |
||||
cache-enabled: false |
||||
call-setters-on-nulls: true |
||||
|
||||
# 不启用邮箱连接检查 |
||||
management: |
||||
health: |
||||
mail: |
||||
enabled: false |
||||
|
||||
### xxl-job调度中心配置 |
||||
xxl: |
||||
job: |
||||
accessToken: xxx |
||||
i18n: zh_CN |
||||
triggerpool: |
||||
fast: |
||||
max: 200 |
||||
slow: |
||||
max: 100 |
||||
logretentiondays: 30 |
@ -0,0 +1,20 @@
|
||||
zsw: |
||||
databases: |
||||
url: jdbc:mysql://127.0.0.1:3306/zsw_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8 |
||||
username: zsw_user |
||||
password: zsw_user_2022 |
||||
tenant: |
||||
column: tenant_id |
||||
tables: |
||||
- user |
||||
|
||||
# Oauth2安全配置 |
||||
security: |
||||
oauth2: |
||||
client: |
||||
client-id: zswUser |
||||
client-secret: zswUser666 |
||||
access-token-uri: http://zsw-auth/oauth/token |
||||
user-authorization-uri: http://zsw-auth/oauth/authorize |
||||
resource: |
||||
token-info-uri: http://zsw-auth/oauth/check_token |
Loading…
Reference in new issue