zx 3 minggu lalu
induk
melakukan
e0e392d4da

+ 2 - 2
fs-admin/src/main/resources/application-dev.yml

@@ -83,9 +83,9 @@ spring:
             druid:
                 # 主库数据源
                 master:
-                    url: jdbc:mysql://localhost/sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                    url: jdbc:mysql://42.194.245.189:3306/test_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                     username: root
-                    password: 123456
+                    password: YJF_2024
                 # 初始连接数
                 initialSize: 5
                 # 最小连接池数量

+ 10 - 0
fs-company-app/src/main/resources/application-dev.yml

@@ -125,3 +125,13 @@ spring:
                     wall:
                         config:
                             multi-statement-allow: true
+rocketmq:
+    name-server: rmq-1243b25nj.rocketmq.gz.public.tencenttdmq.com:8080 # RocketMQ NameServer 地址
+    producer:
+        group: my-producer-group
+        access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
+        secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey
+    consumer:
+        group: test-group
+        access-key: ak1243b25nj17d4b2dc1a03 # 替换为实际的 accessKey
+        secret-key: sk08a7ea1f9f4b0237 # 替换为实际的 secretKey

+ 27 - 16
fs-company-app/src/main/resources/application.yml

@@ -5,11 +5,11 @@ fs:
   # 版本
   version: 1.1.0
   # 版权年份
-  copyrightYear: 2020
+  copyrightYear: 2021
   # 实例演示开关
-  demoEnabled: false
+  demoEnabled: true
   # 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
-  profile: C:/fs/uploadPath
+  profile: c:/fs/uploadPath
   # 获取ip地址开关
   addressEnabled: false
   # 验证码类型 math 数组计算 char 字符验证
@@ -19,12 +19,12 @@ fs:
     # 加密秘钥
     secret: f4e2e52034348f86b67cde581c0f9eb5
     # token有效时长,7天,单位秒
-    expire: 604800
+    expire: 31536000
     header: AppToken
 
 # 开发环境配置
 server:
-  # 服务器的HTTP端口,默认为
+  # 服务器的HTTP端口,默认为 7011  store 7111
   port: 7015
   servlet:
     # 应用的访问路径
@@ -40,32 +40,44 @@ server:
 # 日志配置
 logging:
   level:
-    com.fs: debug
+    com.fs: info
     org.springframework: warn
-    org.springframework.web: info
-    cn.binarywang.wx.miniapp: debug
 
 # Spring配置
 spring:
+  mvc:
+    async:
+      request-timeout: 30000
   # 资源信息
   messages:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-    active: druid-test
+    active: dev
     include: config
   # 文件上传
   servlet:
      multipart:
        # 单个文件大小
-       max-file-size:  10MB
+       max-file-size:  200MB
        # 设置总上传的文件大小
-       max-request-size:  20MB
+       max-request-size:  200MB
+#       enabled: false
   # 服务模块
   devtools:
     restart:
       # 热部署开关
       enabled: true
+
+
+# token配置
+token:
+    # 令牌自定义标识
+    header: Authorization
+    # 令牌密钥
+    secret: abcdefghijklmnopqrstuvwxyz
+    # 令牌有效期(默认30分钟)
+    expireTime: 180
 mybatis-plus:
   # 搜索指定包别名
   typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
@@ -90,7 +102,6 @@ mybatis-plus:
     defaultExecutorType: REUSE
     # 允许 JDBC 支持自动生成主键
     useGeneratedKeys: true
-
 # MyBatis配置
 mybatis:
     # 搜索指定包别名
@@ -103,9 +114,10 @@ mybatis:
 # PageHelper分页插件
 pagehelper:
   helperDialect: mysql
-  reasonable: false
-  supportMethodsArguments: true
+  reasonable: false #超出后不显示
+  supportMethodsArguments: false
   params: count=countSql
+
 # Swagger配置
 swagger:
   # 是否开启swagger
@@ -118,7 +130,6 @@ xss:
   # 过滤开关
   enabled: true
   # 排除链接(多个用逗号分隔)
-  excludes: /system/notice/*
+  excludes: /system/notice/*,/system/config/*
   # 匹配链接
   urlPatterns: /system/*,/monitor/*,/tool/*
-

+ 2 - 6
fs-qw-api/src/main/java/com/fs/app/controller/QwController.java

@@ -52,12 +52,8 @@ public class QwController {
     @GetMapping("/qw/test/{corpId}")
     public String test(@PathVariable String corpId )throws Exception {
         System.out.println("11111111111111");
-
-            // 尝试读取一个不存在的文件
-        FileInputStream fileInputStream = new FileInputStream("non_existent_file.txt");
-
-
-
+       // 尝试读取一个不存在的文件
+       // FileInputStream fileInputStream = new FileInputStream("non_existent_file.txt");
         return "ok";
     }
     /**