Browse Source

去掉多余

anderx 2 years ago
parent
commit
2ec73aead0
2 changed files with 154 additions and 0 deletions
  1. 1 0
      yccrc-kede/mvn -P.bat
  2. 153 0
      yccrc-kede/src/main/resources/application-prod.yml

+ 1 - 0
yccrc-kede/mvn -P.bat

@@ -0,0 +1 @@
+mvn clean install -DskipTests

+ 153 - 0
yccrc-kede/src/main/resources/application-prod.yml

@@ -0,0 +1,153 @@
+# 项目相关配置
+yccrc:
+  # 名称
+  name: yccrc
+  # 版本
+  version: 1.0.0
+  # 版权年份
+  copyrightYear: 2022
+  # 实例演示开关
+  demoEnabled: true
+  # 文件路径
+  profile: /data/kede/yccrc
+  domain: http://140.210.193.73:8888/api
+  # 获取ip地址开关
+  addressEnabled: false
+  # 验证码类型 math 数组计算 char 字符验证
+  captchaType: math
+
+# 开发环境配置
+server:
+  # 服务器的HTTP端口,默认为8080
+  port: 8088
+  servlet:
+    # 应用的访问路径
+    context-path: /api
+  tomcat:
+    # tomcat的URI编码
+    uri-encoding: UTF-8
+    # 连接数满后的排队数,默认为100
+    accept-count: 1000
+    threads:
+      # tomcat最大线程数,默认为200
+      max: 800
+      # Tomcat启动初始化的线程数,默认值10
+      min-spare: 100
+
+# Spring配置
+spring:
+  # 资源信息
+  messages:
+    # 国际化资源文件路径
+    basename: i18n/messages
+  profiles:
+    active: druid
+  # 文件上传
+  servlet:
+     multipart:
+       # 单个文件大小
+       max-file-size:  10MB
+       # 设置总上传的文件大小
+       max-request-size:  20MB
+  # 服务模块
+  devtools:
+    restart:
+      # 热部署开关
+      enabled: true
+  # redis 配置
+  redis:
+    # 地址
+    host: localhost
+    # 端口,默认为6379
+    port: 6379
+    # 数据库索引
+    database: 0
+    # 密码
+#    password: aft@2017!
+    password: aft123456
+    # 连接超时时间
+    timeout: 10s
+    lettuce:
+      pool:
+        # 连接池中的最小空闲连接
+        min-idle: 0
+        # 连接池中的最大空闲连接
+        max-idle: 8
+        # 连接池的最大数据库连接数
+        max-active: 8
+        # #连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-wait: -1ms
+
+# token配置
+token:
+    # 令牌自定义标识
+    header: Authorization
+    # 令牌密钥
+    secret: abcdefghijklmnopqrstuvwxyz
+    # 令牌有效期(默认30分钟)
+    expireTime: 30
+
+# MyBatisPlus配置
+mybatis-plus:
+  mapper-locations: classpath*:mapper/**/*Mapper.xml
+  #  config-location: classpath:mybatis/mybatis-config.xml
+  #实体扫描,多个package用逗号或者分号分隔
+  typeAliasesPackage: com.yccrc.**.domain,com.yccrc.common.core.domain.entity
+  global-config:
+    #数据库相关配置
+    db-config:
+      #主键类型  AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
+      id-type: AUTO
+      logic-delete-value: -1
+      logic-not-delete-value: 0
+    banner: false
+  #原生配置
+  configuration:
+    map-underscore-to-camel-case: true
+    cache-enabled: false
+    call-setters-on-nulls: true
+    jdbc-type-for-null: 'null'
+
+# PageHelper分页插件
+pagehelper:
+  helperDialect: mysql
+  supportMethodsArguments: true
+  params: count=countSql
+
+# Swagger配置
+swagger:
+  # 是否开启swagger
+  enabled: true
+  # 请求前缀
+  pathMapping:
+
+# 防止XSS攻击
+xss:
+  # 过滤开关
+  enabled: true
+  # 排除链接(多个用逗号分隔)
+  excludes: /system/notice
+  # 匹配链接
+  urlPatterns: /system/*,/monitor/*,/tool/*
+
+ignored:
+  urls:
+    - /swagger-resources/**
+    - /webjars/**
+    - /*/api-docs
+    - /druid/**
+    - /login
+    - /register
+    - /captchaImage
+    - /ent/user/register
+    - /common/attach/**
+    - /common/region/**
+    - /project/download/**
+    - /valid/**
+    - /ent/user/regEnt
+#邮件通知
+notify:
+   emailHost: smtp.163.com
+   emailPort: 25
+   sendEmail: kedekeyanxitong@163.com
+   sendPwd: QTKZWPDBTNZJWBGG