# 项目相关配置 tzy: # 名称 name: TzyTms # 版本 version: 4.5.0 # 版权年份 copyrightYear: 2019 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/tzy/uploadPath,Linux配置 /home/tzy/uploadPath) profile: /home/tzy/uploadPath # profile: F:/tomcat/card/uploadPath # 获取ip地址开关 addressEnabled: false # app-version: dev # 开发环境配置 server: # 服务器的HTTP端口,默认为80 port: 80 servlet: # 应用的访问路径 context-path: / tomcat: # tomcat的URI编码 uri-encoding: UTF-8 # tomcat最大线程数,默认为200 max-threads: 800 # Tomcat启动初始化的线程数,默认值25 min-spare-threads: 30 # 日志配置 logging: level: com.tzy: debug org.springframework: warn fluentd: enabled: ${FLUENTD_ENABLED:false} host: ${FLUENTD_HOST:127.0.0.1} port: ${FLUENTD_PORT:24225} # 用户配置 user: password: # 密码错误{maxRetryCount}次锁定10分钟 maxRetryCount: 5 # Spring配置 spring: #静态资源访问 resources: static-locations: classpath:/static/,file:/home/tzy/uploadPath,file:F://tomcat//card//uploadPath # 模板引擎 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 profiles: active: druid # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 10MB # 设置总上传的文件大小 max-request-size: 20MB # 服务模块 devtools: restart: # 热部署开关 enabled: true redis: database: 1 host: redis port: 6379 password: #Tencheer456! # 密码(默认为空) timeout: 6000 # 连接超时时长(毫秒) pool: max-active: 1000 # 连接池最大连接数(使用负值表示没有限制) max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) max-idle: 10 # 连接池中的最大空闲连接 min-idle: 5 # 连接池中的最小空闲连接 # MyBatis mybatis: # 搜索指定包别名 typeAliasesPackage: com.tzy.**.domain # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml # 加载全局的配置文件 configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: postgresql reasonable: true supportMethodsArguments: true params: count=countSql # Shiro shiro: user: # 登录地址 loginUrl: /login # 权限认证失败地址 unauthorizedUrl: /unauth # 首页地址 indexUrl: /index # 验证码开关 captchaEnabled: false # 验证码类型 math 数组计算 char 字符 captchaType: math cookie: # 设置Cookie的域名 默认空,即当前访问的域名 domain: # 设置cookie的有效访问路径 path: / # 设置HttpOnly属性 httpOnly: true # 设置Cookie的过期时间,天为单位 maxAge: 30 # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded())); cipherKey: zSyK5Kp6PZAAjlT+eeNMlg== session: # Session超时时间,-1代表永不过期(默认30分钟) expireTime: 480 # 同步session到数据库的周期(默认1分钟) dbSyncPeriod: 1 # 相隔多久检查一次session的有效性,默认就是10分钟 validationInterval: 10 # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制) maxSession: -1 # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 kickoutAfter: false # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice/* # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/*,/base/*,/api/* # Swagger配置 swagger: # 是否开启swagger enabled: true pay: #微信支付 wxpay: app: appID: wx10bd35e2ea404835 mchID: 1612475613 key: 123456789123456789123456789abcdd #微信商户平台下载的安全证书存放路径 certPath: \home\tzy\wxpay\cert\apiclient_cert.p12 #微信支付成功的回调地址 # paynotifyUrl: http://weiyun-liusz.com/api/wx/paymentBack paynotifyUrl: https://mini-dev.hobbystock.cn/api/wx/paymentBack wx: applet: lives: # 直播认证二维码 authUrl: https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh #手机验证码 phone: verification_code_uri: https://notify.hobbystock.cn/api/verification/code/ #物流 express: sf: client_code: LSSWCkEipb #顾客编码 check_word: 98vtuFMv6FQabirYZ3LD0OhI1fspjc4Z #校验码 box_url: https://sfapi-sbox.sf-express.com/std/service #沙箱环境的地址 url: https://sfapi.sf-express.com/std/service #生产环境的地址