From 02b3e5903caa67232cd77dcbbaf39015eaf2c8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E5=8D=AB?= <14240332@qq.com> Date: Thu, 6 Apr 2023 14:06:45 +0800 Subject: [PATCH] =?UTF-8?q?YML=E9=85=8D=E7=BD=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 115 ++++++++++++++++++ .../main/resources/application-preview.yml | 70 +++++++++++ .../src/main/resources/application-pro.yml | 69 +++++++++++ .../src/main/resources/application-test.yml | 69 +++++++++++ .../src/main/resources/application.yml | 62 ++++++++++ 5 files changed, 385 insertions(+) create mode 100644 SC-boot/linkage-admin/src/main/resources/application-dev.yml create mode 100644 SC-boot/linkage-admin/src/main/resources/application-preview.yml create mode 100644 SC-boot/linkage-admin/src/main/resources/application-pro.yml create mode 100644 SC-boot/linkage-admin/src/main/resources/application-test.yml create mode 100644 SC-boot/linkage-admin/src/main/resources/application.yml diff --git a/SC-boot/linkage-admin/src/main/resources/application-dev.yml b/SC-boot/linkage-admin/src/main/resources/application-dev.yml new file mode 100644 index 00000000..b3705b04 --- /dev/null +++ b/SC-boot/linkage-admin/src/main/resources/application-dev.yml @@ -0,0 +1,115 @@ +# 应用服务器 +server: + tomcat: + uri-encoding: UTF-8 #tomcat编码 + port: 30000 #tomcat端口 + +spring: + devtools: #spring开发者工具模块 + restart: + enabled: true #热部署开关 + freemarker: + cache: false #spring内置freemarker缓存 + thymeleaf: + cache: false #spring内置thymeleaf缓存 + + #===================== 数据源配置 ===================== + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure #排除自动配置,手动配置druid + datasource: + db-type: MySQL #数据库类型(可选值 MySQL、SQLServer、Oracle、DM8、KingbaseES、PostgreSQL,请严格按可选值填写) + host: 222.71.165.188 + port: 3309 + username: root + password: qawsed,.123 + db-name: sc-boot + db-schema: #金仓达梦选填 + prepare-url: #自定义url + + #===================== 动态多数据源 ===================== + dynamic: + enabled: true + seata: false #分布式事务开关 + primary: sc-boot #设置默认的数据源或者数据源组,默认值即为master + strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 +# datasource: +# master: +# url: jdbc:mysql://${spring.datasource.host}:${spring.datasource.port}/${spring.datasource.dbname}?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC +# username: ${spring.datasource.username} +# password: ${spring.datasource.password} +# driver-class-name: com.mysql.cj.jdbc.Driver + + #===================== Redis配置 ===================== + redis: + database: 1 #缓存库编号 +# 生产环境 +# host: 222.71.165.188 +# 测试环境 + host: 150.158.169.212 + port: 6379 + password: qweasd,.123 + timeout: 8000 #超时时间(单位:秒) + lettuce: #Lettuce为Redis的Java驱动包 + pool: + max-active: 8 # 连接池最大连接数 + max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + max-idle: 8 # 连接池中的最大空闲连接 + +config: + #===================== 是否开启测试环境 ===================== + TestVersion: false + + #===================== 文件模板配置 ===================== + fileType: local #文件存储类型(local-本地存储,minio-网络存储) + # win + # Path: /usr/project/jnpf-resources/ #Windows配置(静态资源根目录和代码生成器临时目录) + + # Windows环境配置(静态资源根目录和代码生成器临时目录) + Path: D:\project\resources\ + ServiceDirectoryPath: TemporaryFile + + + # Linux、MacOS环境配置(静态资源根目录和代码生成器临时目录) + # Path: /www/wwwroot/JNPF.Admin.test/Resources/ + # ServiceDirectoryPath: /www/wwwroot/JNPF.Admin.test/Resources/CodeTemp/ + + + # Linux + #Path: /data/jnpf-resources/ #Linux配置(静态资源根目录和代码生成器临时目录) + minio: + endpoint: http://192.168.0.147:9000/ #服务端地址 + accessKey: minioadmin #账号 + secretKey: minioadmin #密码 + fileHost: http://192.168.0.147:9000/ #地址 +#knife4j: + # 开启增强配置,此配置可配置ignoreParameters忽略参数 +# enable: true +# # 开启生产环境屏蔽 +# production: false +# basic: +# enable: true +# # Basic认证用户名 +# username: test +# # Basic认证密码 +# password: 123456 + +#swagger文档开启/关闭 +springfox: + documentation: + auto-startup: true +#knife4j +knife4j: + production: false # 开启/屏蔽文档资源 + +#开启语句打印 +mybatis-plus: + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + mapper-locations: classpath*:mapper/**/*.xml + global-config: + db-config: + logic-delete-field: delete_mark # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2) + logic-delete-value: 1 # 逻辑已删除值(默认为 1) + logic-not-delete-value: 0d # 逻辑未删除值(默认为 0) + # @TableLogic //实体类配置这个,但前面配置了logic-delete-field于是可以不配置 + # private Integer deleted; diff --git a/SC-boot/linkage-admin/src/main/resources/application-preview.yml b/SC-boot/linkage-admin/src/main/resources/application-preview.yml new file mode 100644 index 00000000..c6ca0a51 --- /dev/null +++ b/SC-boot/linkage-admin/src/main/resources/application-preview.yml @@ -0,0 +1,70 @@ +# 应用服务器 +server: + tomcat: + uri-encoding: UTF-8 #tomcat编码 + port: 30000 #tomcat端口 + +spring: + devtools: #spring开发者工具模块 + restart: + enabled: true #热部署开关 + freemarker: + cache: false #spring内置freemarker缓存 + thymeleaf: + cache: false #spring内置thymeleaf缓存 + + #===================== 数据源配置 ===================== + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure #排除自动配置,手动配置druid + datasource: + db-type: MySQL #数据库类型(可选值 MySQL、SQLServer、Oracle、DM8、KingbaseES、PostgreSQL,请严格按可选值填写) + host: 192.168.0.10 + port: 3306 + username: java_boot_test + password: pBx5HaW6WMGSTdDf + db-name: java_boot_test + db-schema: #金仓达梦选填 + prepare-url: #自定义url + + #===================== 动态多数据源 ===================== + dynamic: + enabled: true + seata: false #分布式事务开关 + primary: master #设置默认的数据源或者数据源组,默认值即为master + strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 + # datasource: + # master: + # url: jdbc:mysql://${spring.datasource.host}:${spring.datasource.port}/${spring.datasource.dbname}?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC + # username: ${spring.datasource.username} + # password: ${spring.datasource.password} + # driver-class-name: com.mysql.cj.jdbc.Driver + + #===================== Redis配置 ===================== + redis: + database: 1 #缓存库编号 + host: 127.0.0.1 + port: 6379 + password: + timeout: 3000 #超时时间(单位:秒) + lettuce: #Lettuce为Redis的Java驱动包 + pool: + max-active: 8 # 连接池最大连接数 + max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + max-idle: 8 # 连接池中的最大空闲连接 + +config: + #===================== 是否开启测试环境 ===================== + TestVersion: false + + #===================== 文件模板配置 ===================== + fileType: local #文件存储类型(local-本地存储,minio-网络存储) + # win +# Path: F:\project\jnpf-resources\ #Windows配置(静态资源根目录和代码生成器临时目录) + Path: D:\jnpf-resources\ #Windows配置(静态资源根目录和代码生成器临时目录) + # Linux + #Path: /data/jnpf-resources/ #Linux配置(静态资源根目录和代码生成器临时目录) + minio: + endpoint: http://192.168.0.147:9000/ #服务端地址 + accessKey: minioadmin #账号 + secretKey: minioadmin #密码 + fileHost: http://192.168.0.147:9000/ #地址 diff --git a/SC-boot/linkage-admin/src/main/resources/application-pro.yml b/SC-boot/linkage-admin/src/main/resources/application-pro.yml new file mode 100644 index 00000000..75eb2bdd --- /dev/null +++ b/SC-boot/linkage-admin/src/main/resources/application-pro.yml @@ -0,0 +1,69 @@ +# 应用服务器 +server: + tomcat: + uri-encoding: UTF-8 #tomcat编码 + port: 30000 #tomcat端口 + +spring: + devtools: #spring开发者工具模块 + restart: + enabled: true #热部署开关 + freemarker: + cache: false #spring内置freemarker缓存 + thymeleaf: + cache: false #spring内置thymeleaf缓存 + + #===================== 数据源配置 ===================== + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure #排除自动配置,手动配置druid + datasource: + db-type: MySQL #数据库类型(可选值 MySQL、SQLServer、Oracle、DM8、KingbaseES、PostgreSQL,请严格按可选值填写) + host: 222.71.165.188 + port: 3309 + username: root + password: qawsed,.123 + db-name: sc-product + db-schema: #金仓达梦选填 + prepare-url: #自定义url + + #===================== 动态多数据源 ===================== + dynamic: + enabled: true + seata: false #分布式事务开关 + primary: master #设置默认的数据源或者数据源组,默认值即为master + strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 + # datasource: + # master: + # url: jdbc:mysql://${spring.datasource.host}:${spring.datasource.port}/${spring.datasource.dbname}?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC + # username: ${spring.datasource.username} + # password: ${spring.datasource.password} + # driver-class-name: com.mysql.cj.jdbc.Driver + + #===================== Redis配置 ===================== + redis: + database: 1 #缓存库编号 + host: 222.71.165.188 + port: 6379 + password: qweasd,.123 + timeout: 3000 #超时时间(单位:秒) + lettuce: #Lettuce为Redis的Java驱动包 + pool: + max-active: 8 # 连接池最大连接数 + max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + max-idle: 8 # 连接池中的最大空闲连接 + +config: + #===================== 是否开启测试环境 ===================== + TestVersion: false + + #===================== 文件模板配置 ===================== + fileType: local #文件存储类型(local-本地存储,minio-网络存储) + # win + Path: D:\project\resources\ #Windows配置(静态资源根目录和代码生成器临时目录) + # Linux + #Path: /data/jnpf-resources/ #Linux配置(静态资源根目录和代码生成器临时目录) + minio: + endpoint: http://192.168.0.147:9000/ #服务端地址 + accessKey: minioadmin #账号 + secretKey: minioadmin #密码 + fileHost: http://192.168.0.147:9000/ #地址 diff --git a/SC-boot/linkage-admin/src/main/resources/application-test.yml b/SC-boot/linkage-admin/src/main/resources/application-test.yml new file mode 100644 index 00000000..d2997746 --- /dev/null +++ b/SC-boot/linkage-admin/src/main/resources/application-test.yml @@ -0,0 +1,69 @@ +# 应用服务器 +server: + tomcat: + uri-encoding: UTF-8 #tomcat编码 + port: 30000 #tomcat端口 + +spring: + devtools: #spring开发者工具模块 + restart: + enabled: true #热部署开关 + freemarker: + cache: false #spring内置freemarker缓存 + thymeleaf: + cache: false #spring内置thymeleaf缓存 + + #===================== 数据源配置 ===================== + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure #排除自动配置,手动配置druid + datasource: + db-type: MySQL #数据库类型(可选值 MySQL、SQLServer、Oracle、DM8、KingbaseES、PostgreSQL,请严格按可选值填写) + host: 192.168.0.10 + port: 3306 + username: java_boot_test + password: pBx5HaW6WMGSTdDf + db-name: java_boot_test + db-schema: #金仓达梦选填 + prepare-url: #自定义url + + #===================== 动态多数据源 ===================== + dynamic: + enabled: true + seata: false #分布式事务开关 + primary: master #设置默认的数据源或者数据源组,默认值即为master + strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 + # datasource: + # master: + # url: jdbc:mysql://${spring.datasource.host}:${spring.datasource.port}/${spring.datasource.dbname}?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC + # username: ${spring.datasource.username} + # password: ${spring.datasource.password} + # driver-class-name: com.mysql.cj.jdbc.Driver + + #===================== Redis配置 ===================== + redis: + database: 1 #缓存库编号 + host: 127.0.0.1 + port: 6379 + password: + timeout: 3000 #超时时间(单位:秒) + lettuce: #Lettuce为Redis的Java驱动包 + pool: + max-active: 8 # 连接池最大连接数 + max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) + min-idle: 0 # 连接池中的最小空闲连接 + max-idle: 8 # 连接池中的最大空闲连接 + +config: + #===================== 是否开启测试环境 ===================== + TestVersion: false + + #===================== 文件模板配置 ===================== + fileType: local #文件存储类型(local-本地存储,minio-网络存储) + # win + Path: D:\project\resources\ #Windows配置(静态资源根目录和代码生成器临时目录) + # Linux + #Path: /data/jnpf-resources/ #Linux配置(静态资源根目录和代码生成器临时目录) + minio: + endpoint: http://192.168.0.147:9000/ #服务端地址 + accessKey: minioadmin #账号 + secretKey: minioadmin #密码 + fileHost: http://192.168.0.147:9000/ #地址 diff --git a/SC-boot/linkage-admin/src/main/resources/application.yml b/SC-boot/linkage-admin/src/main/resources/application.yml new file mode 100644 index 00000000..3cde125b --- /dev/null +++ b/SC-boot/linkage-admin/src/main/resources/application.yml @@ -0,0 +1,62 @@ +spring: #环境 dev|test|pro|preview + profiles: + active: dev + servlet: + multipart: #文件传输配置 + max-file-size: 1000MB #单个数据大小限制 + max-request-size: 1000MB #请求总数据大小限制 + enabled: true #是否启用分段上传支持 + mvc: + hiddenmethod: #隐式方法过滤器 + filter: + enabled: true #默认关闭。开启以支持:PUT,DELETE表单提交方法 + jackson: #序列化和反序列化json框架 + serialization: + write-dates-as-timestamps: true #是否写入日期时间时间戳格式 + time-zone: GMT+8 #指定日期格式化时区 + main: + allow-bean-definition-overriding: true #允许同名bean后者覆盖,默认:true + allow-circular-references: true #允许Bean相互引用,默认:false +config: + AllowUploadImageType: jpg,gif,png,bmp,jpeg,tiff,psd,swf,svg,pcx,dxf,wmf,emf,lic,eps,tga #允许上传图片类型 + AllowUploadFileType: jpg,gif,png,bmp,jpeg,doc,docx,ppt,pptx,xls,xlsx,pdf,txt,rar,zip,csv,mp3 #允许上传文件类型 + AllowPreviewFileType: doc,docx,xls,xlsx,ppt,pptx,pdf #允许预览文件类型 + PreviewType: kkfile #文件预览方式 (1.yozo 2.kkfile)默认使用kk + kkFileUrl: http://127.0.0.1:30090/FileServer/ #kk文件预览服务地址 + Domain: http://127.0.0.1:30000 #当前域名配置(文档预览中使用) + + CodeAreasName: example #代码生成器模块命名 + + #===================== 多租户 ===================== + MultiTenancy: false #是否开启 + MultiTenancyUrl: http://127.0.0.1:30006/api/tenant/DbName/ #多租户项目地址 + + #===================== 系统及错误报告反馈相关 ===================== + SoftName: linkage-java-boot #项目名 + SoftFullName: LINKAGE软件开发平台 #项目全名 + SoftVersion: V3.4.1 #版本号 + + RecordLog: true #系统日志启用 + ErrorReport: false #软件错误报告 + ErrorReportTo: surrpot@qq.com #软件错误报告接收者 + IgexinEnabled: true #推送启动 + + #===================== APP ===================== + AppVersion: V3.4.1 #APP版本号 + IgexinAppid: HLFY9T2d1z7MySY8hwGwh4 #APPID:应用的唯一标识 + IgexinAppkey: 6Uiduugq648YDChhCjAt59 #APPKEY:公匙(相当于账号) + IgexinMastersecret: pEyQm156SJ9iS7PbyjLCZ6 #Mastersecret:私匙(相当于密码) + AppUpdateContent: ; #APP更新内容 + + #===================== 永中office在线预览配置 ===================== + YozoDomain: //dcsapi.com/ #永中api域名 + YozoDomainKey: 57462250284462899305150 #域名key + YozoCloudDomain: //dmc.yozocloud.cn #云预览 + YozoAppId: yozoAgR41jgC0062 #appid + YozoAppKey: fc3134a9ba8bc6f4c69d635f9adf #app秘钥 + YozoEditDomain: //eic.yozocloud.cn #云编辑 + + #===================== 接口鉴权 ===================== + EnablePreAuth: false #是否开启 +fixedRateString: 5000 +