chengpan 2 vuotta sitten
vanhempi
commit
eb8949e58b

+ 8 - 18
ruoyi-admin/pom.xml

@@ -70,16 +70,6 @@
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
         </dependency>
-        <!-- SpringCloud Alibaba Nacos -->
-        <dependency>
-            <groupId>com.alibaba.cloud</groupId>
-            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
-        </dependency>
-        <!-- SpringCloud Alibaba Config -->
-        <dependency>
-            <groupId>com.alibaba.cloud</groupId>
-            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
-        </dependency>
     </dependencies>
 
     <build>
@@ -99,16 +89,16 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>   
-                <groupId>org.apache.maven.plugins</groupId>   
-                <artifactId>maven-war-plugin</artifactId>   
-                <version>3.0.0</version>   
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>3.0.0</version>
                 <configuration>
                     <failOnMissingWebXml>false</failOnMissingWebXml>
                     <warName>${project.artifactId}</warName>
-                </configuration>   
-            </plugin>   
-            <!-- YUI Compressor (CSS/JS压缩) 
+                </configuration>
+            </plugin>
+            <!-- YUI Compressor (CSS/JS压缩)
             <plugin>
                 <groupId>net.alchim31.maven</groupId>
                 <artifactId>yuicompressor-maven-plugin</artifactId>
@@ -144,4 +134,4 @@
         <finalName>${project.artifactId}</finalName>
     </build>
 
-</project>
+</project>

BIN
ruoyi-admin/src/main/resources/8444955_opt.iviui.com.pfx


+ 223 - 0
ruoyi-admin/src/main/resources/application-dev.yml

@@ -0,0 +1,223 @@
+# 项目相关配置
+ruoyi:
+  # 名称
+  name: YunCai
+  # 版本
+  version: 1.0
+  # 版权年份
+  copyrightYear: 2022
+  # 实例演示开关
+  demoEnabled: false
+  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
+  profile: D:/ruoyi/uploadPath
+  # 获取ip地址开关
+  addressEnabled: false
+
+# Swagger配置
+swagger:
+  # 是否开启swagger
+  enabled: true
+
+# 开发环境配置
+server:
+  servlet:
+    # 应用的访问路径
+    context-path: /
+  tomcat:
+    # tomcat的URI编码
+    uri-encoding: UTF-8
+    # 连接数满后的排队数,默认为100
+    accept-count: 1000
+    threads:
+      # tomcat最大线程数,默认为200
+      max: 800
+      # Tomcat启动初始化的线程数,默认值10
+      min-spare: 100
+# Mybatis-plus
+mybatis-plus:
+  mapper-locations: classpath*:mapper/**/*Mapper.xml
+  type-aliases-package: com.ruoyi.**.domain
+  global-config:
+    db-config:
+      id-type: auto
+      field-strategy: 2
+      table-prefix: true
+      db-type: mysql
+  configuration:
+    map-underscore-to-camel-case: true
+    cache-enabled: false
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+# PageHelper分页插件
+pagehelper:
+  helperDialect: mysql
+  supportMethodsArguments: true
+  params: count=countSql
+# 日志配置
+logging:
+  level:
+    com.ruoyi: debug
+    org.springframework: warn
+# 用户配置
+user:
+  password:
+    # 密码错误{maxRetryCount}次锁定10分钟
+    maxRetryCount: 5
+# Shiro
+shiro:
+  user:
+    # 登录地址
+    loginUrl: /login
+    # 权限认证失败地址
+    unauthorizedUrl: /unauth
+    # 首页地址
+    indexUrl: /index
+    # 验证码开关
+    captchaEnabled: true
+    # 验证码类型 math 数组计算 char 字符
+    captchaType: math
+  cookie:
+    # 设置Cookie的域名 默认空,即当前访问的域名
+    domain:
+    # 设置cookie的有效访问路径
+    path: /
+    # 设置HttpOnly属性
+    httpOnly: true
+    # 设置Cookie的过期时间,天为单位
+    maxAge: 30
+    # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效)
+    cipherKey:
+  session:
+    # Session超时时间,-1代表永不过期(默认30分钟)
+    expireTime: 30
+    # 同步session到数据库的周期(默认1分钟)
+    dbSyncPeriod: 1
+    # 相隔多久检查一次session的有效性,默认就是10分钟
+    validationInterval: 10
+    # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
+    maxSession: -1
+    # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
+    kickoutAfter: false
+  rememberMe:
+    # 是否开启记住我
+    enabled: true
+# 防止XSS攻击
+xss:
+  # 过滤开关
+  enabled: true
+  # 排除链接(多个用逗号分隔)
+  excludes: /system/notice/*
+  # 匹配链接
+  urlPatterns: /system/*,/monitor/*,/tool/*
+
+# spring部分配置
+spring:
+  # 模板引擎
+  thymeleaf:
+    mode: HTML
+    encoding: utf-8
+    # 禁用缓存
+    cache: false
+  # 资源信息
+  messages:
+    # 国际化资源文件路径
+    basename: static/i18n/messages
+  jackson:
+    time-zone: GMT+8
+    date-format: yyyy-MM-dd HH:mm:ss
+  # 文件上传
+  servlet:
+    multipart:
+      # 单个文件大小
+      max-file-size:  10MB
+      # 设置总上传的文件大小
+      max-request-size:  20MB
+  beaninfo:
+    ignore:
+  flyway:
+    ignore-future-migrations:
+  # 服务模块
+  devtools:
+    restart:
+      # 热部署开关
+      enabled: false
+  # 数据源配置
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driverClassName: com.mysql.cj.jdbc.Driver
+    druid:
+      # 主库数据源
+      master:
+        url: jdbc:mysql://192.168.8.8:3306/yc-scm?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+        username: root
+        password: Bv5%.F_6p#GC_Xa
+      # 从库数据源
+      slave:
+        # 从数据源开关/默认关闭
+        enabled: false
+        url:
+        username:
+        password:
+      # 初始连接数
+      initialSize: 5
+      # 最小连接池数量
+      minIdle: 10
+      # 最大连接池数量
+      maxActive: 20
+      # 配置获取连接等待超时的时间
+      maxWait: 60000
+      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+      timeBetweenEvictionRunsMillis: 60000
+      # 配置一个连接在池中最小生存的时间,单位是毫秒
+      minEvictableIdleTimeMillis: 300000
+      # 配置一个连接在池中最大生存的时间,单位是毫秒
+      maxEvictableIdleTimeMillis: 900000
+      # 配置检测连接是否有效
+      validationQuery: SELECT 1 FROM DUAL
+      testWhileIdle: true
+      testOnBorrow: false
+      testOnReturn: false
+      webStatFilter:
+        enabled: true
+      statViewServlet:
+        enabled: true
+        # 设置白名单,不填则允许所有访问
+        allow:
+        url-pattern: /druid/*
+        # 控制台管理用户名和密码
+        login-username: ruoyi
+        login-password: 123456
+      filter:
+        stat:
+          enabled: true
+          # 慢SQL记录
+          log-slow-sql: true
+          slow-sql-millis: 1000
+          merge-sql: true
+        wall:
+          config:
+            multi-statement-allow: true
+
+# 对接URL地址及参数
+appId: ZLTX370100
+sign: 4Ja5AFIAqnMC72G5Lvp4vcUwbnGKTp8g/htlGontuhQ=
+# 测试地址
+testHttps: https://www2.laikuaidian.cn
+#生产地址
+prodHttps: https://hezuo.cyc-fund.com.cn
+#法大大url
+zFddUrl: http://192.168.1.127:8182/fdd/extsign.do?processId=
+#泽斌本地
+zUrl: http://192.168.1.127:8182/
+# 请求订单信息的url
+processUrl: /guaranteeJSONCtrl/JSONQuerybidder.do
+# www审核通知接口url
+checkUrl: /guaranteeJSONCtrl/JSONNotifications.do
+# www支付回调接口通知
+payUrl: /guaranteeJSONCtrl/JSONPayInfoInterface.do
+# www承保回调接口通知
+coverUrl: /guaranteeJSONCtrl/JSONCBInfoInterface.do
+#填充接口url
+templateUrl: https://www2.laikuaidian.cn/fdd/extsign.do?processId=
+
+#电子发票接口
+invoiceUrl: /guaranteeJSONCtrl/JSONFPInfoInterface.do

+ 9 - 0
ruoyi-admin/src/main/resources/application.yml

@@ -0,0 +1,9 @@
+# Tomcat
+server:
+  port: 8081
+
+spring:
+  application:
+    name: yuncai-scm
+  profiles:
+    active: dev

+ 0 - 19
ruoyi-admin/src/main/resources/bootstrap.yml

@@ -1,19 +0,0 @@
-# Tomcat
-server:
-  port: 8080
-
-spring:
-  application:
-    name: yc-scm
-  profiles:
-    active: test
-  cloud:
-    nacos:
-      discovery:
-        server-addr: 192.168.1.228:8848 # nacos服务注册中心地址
-        namespace: 275a3e6b-aa4d-4771-8935-540285cbfe1f
-      config:
-        server-addr: 192.168.1.228:8848 # nacos配置中心地址
-        file-extension: yml # 指定yamlg格式的配置
-        group: TEST_GROUP
-        namespace: 275a3e6b-aa4d-4771-8935-540285cbfe1f

+ 0 - 1
ruoyi-admin/src/main/resources/pfx-password.txt

@@ -1 +0,0 @@
-Qq73e1z9