Przeglądaj źródła

徐明浩
配置文件处理

徐明浩 3 lat temu
rodzic
commit
4e187b05a5
2 zmienionych plików z 27 dodań i 25 usunięć
  1. 26 24
      master/src/main/resources/application.yml
  2. 1 1
      ui/vue.config.js

+ 26 - 24
master/src/main/resources/application.yml

@@ -18,7 +18,7 @@ ruoyi:
 # 开发环境配置
 server:
   # 服务器的HTTP端口,默认为8080
-  port: 8080
+  port: 8081
   servlet:
     # 应用的访问路径
     context-path: /
@@ -55,11 +55,11 @@ spring:
     checkTemplateLocation: false
   # 文件上传
   servlet:
-     multipart:
-       # 单个文件大小
-       max-file-size:  20MB
-       # 设置总上传的文件大小
-       max-request-size:  30MB
+    multipart:
+      # 单个文件大小
+      max-file-size: 20MB
+      # 设置总上传的文件大小
+      max-request-size: 30MB
   # 服务模块
   devtools:
     restart:
@@ -73,9 +73,11 @@ spring:
     port: 6379
     # 密码
     password: ssy666666
-#    host: 127.0.0.1
-#    port: 6379
-#    password:
+    # 公共redis区分缓存存放位置,避免因共用一个位置造成数据错乱
+    database: 3
+    #    host: 127.0.0.1
+    #    port: 6379
+    #    password:
     # 连接超时时间
     timeout: 10s
     lettuce:
@@ -110,21 +112,21 @@ spring:
 #    from: email@seashoreept.com
 # token配置
 token:
-    # 令牌自定义标识
-    header: Authorization
-    # 令牌密钥
-    secret: abcdefghijklmnopqrstuvwxyz
-    # 令牌有效期(默认30分钟)
-    expireTime: 600000
+  # 令牌自定义标识
+  header: Authorization
+  # 令牌密钥
+  secret: abcdefghijklmnopqrstuvwxyz
+  # 令牌有效期(默认30分钟)
+  expireTime: 600000
 
 # MyBatis配置
 mybatis:
-    # 搜索指定包别名
-    typeAliasesPackage: com.ruoyi.project.**.domain
-    # 配置mapper的扫描,找到所有的mapper.xml映射文件
-    mapperLocations: classpath*:mybatis/**/*Mapper.xml
-    # 加载全局的配置文件
-    configLocation: classpath:mybatis/mybatis-config.xml
+  # 搜索指定包别名
+  typeAliasesPackage: com.ruoyi.project.**.domain
+  # 配置mapper的扫描,找到所有的mapper.xml映射文件
+  mapperLocations: classpath*:mybatis/**/*Mapper.xml
+  # 加载全局的配置文件
+  configLocation: classpath:mybatis/mybatis-config.xml
 #mybatis
 mybatis-plus:
   mapper-locations: classpath*:mybatis/**/*Mapper.xml
@@ -173,13 +175,13 @@ gen:
   # 作者
   author: ruoyi
   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
-  packageName: com.ruoyi.project.sems.his # 自动去除表前缀,默认是true
+  packageName: com.ruoyi.project.ehs # 自动去除表前缀,默认是true
   autoRemovePre: false
   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
-  tablePrefix: sys_
+  tablePrefix: t_
 #设置密钥
 # 解密java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input="dIaPam9ayoR1AqBvm+B0GO9RBhpIqIVe" password=test algorithm=PBEWithMD5AndDES
 #C:\Users\ly\.m2\repository\org\jasypt\jasypt\1.9.2>java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="ssy123456" password=test algorithm=PBEWithMD5AndDES
 jasypt:
   encryptor:
-    password: test
+    password: test

+ 1 - 1
ui/vue.config.js

@@ -36,7 +36,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8080`,
+        target: `http://localhost:8081`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''