liurunyu
2025-05-22 f14bfd47670e57d1d28d006464cb8ba576c8a49c
pms-parent/pms-global/src/main/resources/application-global.yml
@@ -1,9 +1,22 @@
pmsGl:
    #本机开发环境:192.168.40.80:3306
    #云服务203: 127.0.0.1:63306
    mySqlSvUrl: 192.168.40.80:3306
    #本机开发环境:E:/java/nginx-1.24.0/html/webfiles/
    #云服务203: D:/apps/pms/nginx-1.24.0/html/webfiles/
    webFileAbsolutePath: E:/java/nginx-1.24.0/html/webfiles/
    #输出sql日志开关,控制PrintSqlInterceptor拦截器是否加载
    showSqlLog: true
    #是否开发阶段,true或false,开发阶段不进行登录验证及权限验证
    isDev: false
spring:
    servlet:
        multipart:
            # 前端上传文件,限制单个文件的大小和限制所有文件的大小
            max-file-size: 500MB
            max-request-size: 5000MB
    main:
        allow-circular-references: true
logging:
    charset:
        console: UTF-8
@@ -33,14 +46,15 @@
    #type-aliases-package: com.dy.pmsGlobal.daoBa
    configuration:
        #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #时而输出日志,时而不输出日志
        log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl
        #log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl 不再应用,改为PrintSqlInterceptor拦截器输出sql日志,下面print-sql项配置
        print-sql: ${pmsGl.showSqlLog} # 输出sql日志开关,控制PrintSqlInterceptor拦截器是否加载
        #开启驼峰uName自动映射到u_name
        #2023-10-24经实验,下面配置true或false,都能从u_name映射到uName
        #map-underscore-to-camel-case: true
        lazyLoadingEnabled: true # 开启延时加载开关
        aggressiveLazyLoading: false # 将积极加载改为消极加载(即按需加载),默认值是false
        lazy-load-trigger-methods: ""  # 阻挡不相干的操作触发,实现懒加载
        cache-enabled: true  #打开全局缓存开关(二级环境),默认值是true
        cache-enabled: true  #打开全局缓存开关(二级环境),默认值是true+
        #default-enum-type-handler: com.dy.common.mybatis.envm.EnumCodeTypeHandler
dingtalk:
@@ -55,7 +69,7 @@
        - /sso/sso
pms:
    global:
        dev: true   #是否开发阶段,true或false,开发阶段不进行登录验证及权限验证
        dev: ${pmsGl.isDev}   #是否开发阶段,true或false,开发阶段不进行登录验证及权限验证
        ssoUserExpireAfterAccess: 60  #sso登录后,用户在一定时间(ssoUserExpireAfterAccess)(分钟)内未访问系统,系统清除缓存信息,使其重新登录系统
        ssoCacheSizeInit: 10  #sso缓存初始容量
        ssoCacheSizeMax: 10000  #sso缓存最大容量,即支持ssoCacheSizeMax个用户同时登录
@@ -84,6 +98,9 @@
    report:
        webPort: 12350
        idSuffix: 7
    wechat:
        webPort: 12351
        idSuffix: 8
    file:
        idSuffix: 99
    file1:
@@ -113,13 +130,14 @@
#web分布式文件系统
dy:
    webFileAbsolutePath: ${pmsGl.webFileAbsolutePath}
    photoZipWidth: 400 #缩略图尺寸
    webFile:
        fmUrl: http://127.0.0.1:${pms.other.webPort}/other # fm的web上下文 URL
        supportedFileTypes: docx,xlsx,pdf
        supportedFileTypes: docx,xlsx,doc,xls,pdf #支持的文档(非媒体文件,如照片、录音、录像)文件类型
        sv1:
            id: dyFile1
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile1
            hashStart: 0
            hashEnd: 5461
@@ -128,7 +146,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file1.webPort}/file/download/down?id=  #安装部署时IP改成外网IP或域名
        sv2:
            id: dyFile2
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile2
            hashStart: 5462
            hashEnd: 10923
@@ -137,7 +155,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file2.webPort}/file/download/down?id=
        sv3:
            id: dyFile3
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile3
            hashStart: 10924
            hashEnd: 16385
@@ -146,7 +164,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file3.webPort}/file/download/down?id=
        sv4:
            id: dyFile4
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile4
            hashStart: 16386
            hashEnd: 21847
@@ -155,7 +173,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file4.webPort}/file/download/down?id=
        sv5:
            id: dyFile5
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile5
            hashStart: 21848
            hashEnd: 27309
@@ -164,7 +182,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file5.webPort}/file/download/down?id=
        sv6:
            id: dyFile6
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile6
            hashStart: 27310
            hashEnd: 32767
@@ -173,7 +191,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file6.webPort}/file/download/down?id=
        sv7:
            id: dyFile7
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile7
            hashStart: 32768
            hashEnd: 38229
@@ -182,7 +200,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file7.webPort}/file/download/down?id=
        sv8:
            id: dyFile8
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile8
            hashStart: 38230
            hashEnd: 43691
@@ -191,7 +209,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file8.webPort}/file/download/down?id=
        sv9:
            id: dyFile9
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile9
            hashStart: 43692
            hashEnd: 49153
@@ -200,7 +218,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file9.webPort}/file/download/down?id=
        sv10:
            id: dyFile10
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile10
            hashStart: 49154
            hashEnd: 54615
@@ -209,7 +227,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file10.webPort}/file/download/down?id=
        sv11:
            id: dyFile11
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile11
            hashStart: 54616
            hashEnd: 60077
@@ -218,7 +236,7 @@
            webDownloadPath: http://127.0.0.1:${pms.file11.webPort}/file/download/down?id=
        sv12:
            id: dyFile12
            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
            absolutePath: ${pmsGl.webFileAbsolutePath}
            relativePath: webFile12
            hashStart: 60078
            hashEnd: 65535