70 lines
2.2 KiB
YAML
70 lines
2.2 KiB
YAML
server:
|
||
#启动端口
|
||
port: 8002
|
||
tomcat:
|
||
#设置字符编码
|
||
uri-encoding: UTF-8
|
||
spring:
|
||
application:
|
||
#系统服务名
|
||
name: EasyJavaTemplate
|
||
#MySQL数据库相关配置信息
|
||
datasource:
|
||
url: jdbc:mysql://192.168.100.201:3306/rensijin-cchs?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||
username: root #数据库账号
|
||
password: Abc123654 #数据库密码
|
||
driver-class-name: com.mysql.jdbc.Driver
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
#Redis 缓存相关参数配置
|
||
redis:
|
||
host: 127.0.0.1
|
||
port: 6379 #端口
|
||
timeout: 5000 #连接超时 毫秒
|
||
password: Redis11 #密码
|
||
jedis:
|
||
pool:
|
||
maxActive: 30 #给定时间可以分配的最大连接数。 使用负值表示没有限制
|
||
maxIdle: 30 #最大空闲连接数
|
||
minIdle: 10 # 最小空间连接数
|
||
maxWait: -1 #连接池最大等待时间 -1没有限制
|
||
main:
|
||
allow-bean-definition-overriding: true
|
||
|
||
servlet:
|
||
multipart:
|
||
#单个文件上传大小限制
|
||
max-file-size: 30MB
|
||
#单次上传文件总大小限制
|
||
max-request-size: 100MB
|
||
|
||
#MyBatis-Plus相关配置
|
||
mybatis-plus:
|
||
#指定Mapper.xml路径,如果与Mapper路径相同的话,可省略
|
||
mapper-locations: classpath:cn/wujiangbo/mapper/*Mapper.xml
|
||
configuration:
|
||
#开启驼峰大小写自动转换
|
||
map-underscore-to-camel-case: true
|
||
#开启控制台sql输出
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
||
easyjava:
|
||
#版本号
|
||
version: 2.0.5
|
||
#系统类型标识
|
||
systemType: 'xxx'
|
||
#用户注册默认头像地址
|
||
userDefaultAvatarPath: https://img2.baidu.com/it/u=1016407180,2828407920&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=800
|
||
|
||
#OSS相关配置
|
||
file:
|
||
#文件存储方案(1:文件本地;2:存阿里云OSS)
|
||
filescheme: 1
|
||
download:
|
||
#文件下载用到的服务器IP地址
|
||
ip: localhost
|
||
alicloud:
|
||
enable: true #是否开启OSS上传
|
||
bucket-name: xxx #上传空间bucket
|
||
access-key: xxx #你的key
|
||
secret-key: xxx #你的秘钥
|
||
endpoint: oss-cn-beijing.aliyuncs.com #上传端点 |