123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- # Tomcat
- server:
- tomcat:
- uri-encoding: UTF-8
- max-threads: 1000
- min-spare-threads: 30
- basedir: /tmp/tomcat
- port: 8687
- servlet:
- context-path: /qyh
- # mysql
- spring:
- # 环境 dev|test|prod
- profiles:
- active: dev
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- servlet:
- multipart:
- max-file-size: 100MB
- max-request-size: 100MB
- enabled: true
- location: /data/upload_tmp
- freemarker:
- suffix: .html
- request-context-attribute: request
- mail:
- # 邮件服务地址
- host: smtp.qq.com
- # 端口
- port: 587
- # 编码格式
- default-encoding: utf-8
- # 用户名
- username: 2917584408@qq.com
- # 授权码
- password: qmlmofbtnncwdcia
- # 其它参数
- properties:
- mail:
- smtp:
- # 如果是用 SSL 方式,需要配置如下属性
- starttls:
- enable: true
- required: true
- devtools:
- restart:
- enabled: true #设置开启热部署
- freemarker:
- cache: false #页面不加载缓存,修改即时生效
- renren:
- cluster: false #集群配置 true集群环境 false单机环境,还需打开pom.xml里的spring-session-data-redis注释
- globalSessionTimeout: 3600 #单机环境,session过期时间为60分钟
- redis:
- open: true # 是否开启redis缓存 true开启 false关闭
- #mybatis
- mybatis-plus:
- mapper-locations: classpath*:/mapper/**/*.xml
- #实体扫描,多个package用逗号或者分号分隔
- typeAliasesPackage: io.renren.modules.*.entity
- global-config:
- #数据库相关配置
- db-config:
- #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
- id-type: AUTO
- #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
- field-strategy: NOT_NULL
- #驼峰下划线转换
- column-underline: true
- 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'
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- wx:
- miniapp:
- configs:
- - appid: wxdb9bd0f7aa4c40a3
- secret: f87ae5e8ebd2b3090af86dc94f61b825
- token: #微信小程序消息服务器配置的token
- aesKey: #微信小程序消息服务器配置的EncodingAESKey
- msgDataFormat: JSON
- # -- 订阅消息参数
- tokenUrl: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={APPID}&secret={APPSECRET}
- sendUrl: https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=
|