Initial commit

This commit is contained in:
南宁网宿科技
2022-08-26 13:48:49 +08:00
commit fb072c8031
231 changed files with 19534 additions and 0 deletions
@@ -0,0 +1,8 @@
{
"properties": [
{
"name": "config.upload-path",
"type": "java.lang.String",
"description": "Description for config.upload-path."
}
] }
+20
View File
@@ -0,0 +1,20 @@
# 开发环境配置
# 数据源配置
spring:
datasource:
url: jdbc:mysql://47.119.165.234:3308/com_gxwebsoft_oa?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username: com_gxwebsoft_oa
password: EZfW2R4YiWfbLHLw
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
# 日志配置
logging:
level:
com.eleadmin: DEBUG
com.baomidou.mybatisplus: DEBUG
# 框架配置
config:
upload-path: /Users/gxwebsoft/Documents/uploads/
+23
View File
@@ -0,0 +1,23 @@
# 生产环境配置
# 数据源配置
spring:
datasource:
url: jdbc:mysql://47.119.165.234:3308/com_gxwebsoft_oa?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username: com_gxwebsoft_oa
password: EZfW2R4YiWfbLHLw
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
# 日志配置
logging:
file:
name: ele-admin-api.log
level:
root: WARN
com.eleadmin: ERROR
com.baomidou.mybatisplus: ERROR
# 框架配置
config:
upload-path: /www/wwwroot/file.ws/
+18
View File
@@ -0,0 +1,18 @@
# 测试环境配置
# 数据源配置
spring:
datasource:
url: jdbc:mysql://localhost:3306/ele-admin-api?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
# 日志配置
logging:
file:
name: ele-admin-api.log
level:
com.eleadmin: DEBUG
com.baomidou.mybatisplus: DEBUG
+81
View File
@@ -0,0 +1,81 @@
# 端口
server:
port: 8081
# 多环境配置
spring:
profiles:
active: prod
# 连接池配置
datasource:
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 30000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
test-while-idle: true
test-on-borrow: true
test-on-return: false
remove-abandoned: true
remove-abandoned-timeout: 1800
#pool-prepared-statements: false
#max-pool-prepared-statement-per-connection-size: 20
filters: stat, wall
validation-query: SELECT 'x'
aop-patterns: com.eleadmin.*.*.service.*
stat-view-servlet:
url-pattern: /druid/*
reset-enable: true
login-username: admin
login-password: admin
# json时间格式设置
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 设置上传文件大小
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
# 邮件服务器配置
mail:
host: smtp.qq.com
username:
password:
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
port: 465
# Mybatis-plus配置
mybatis-plus:
mapper-locations: classpath*:com/eleadmin/**/*Mapper.xml
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
global-config:
:banner: false
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
# 框架配置
config:
open-office-home: C:/OpenOffice4/
swagger-base-package: com.eleadmin
swagger-title: EleAdmin API文档
swagger-version: 1.0
token-key: ULgNsWJ8rPjRtnjzX/Gv2RGS80Ksnm/ZaLpvIL+NrBg=
picture-server: https://file.gxwebsoft.com
upload-path: /Users/gxwebsoft/Documents/uploads/