| | |
| | | |
| | | # Spring配置 |
| | | spring: |
| | | rabbitmq: |
| | | # 集群地址,用逗号分隔 |
| | | host: ${custom.rabbitmq.host} |
| | | port: ${custom.rabbitmq.port} |
| | | virtual-host: ${custom.rabbitmq.virtual-host} |
| | | username: ${custom.rabbitmq.username} |
| | | password: ${custom.rabbitmq.password} |
| | | connection-timeout: 15000 |
| | | # 资源信息 |
| | | messages: |
| | | # 国际化资源文件路径 |
| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | url: jdbc:mysql://${custom.datasource.master.ip}:${custom.datasource.master.port}/${custom.datasource.master.database}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://${custom.datasource.master.ip}:${custom.datasource.master.port}/${custom.datasource.master.database}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true |
| | | username: ${custom.datasource.master.username} |
| | | password: ${custom.datasource.master.password} |
| | | # 从库数据源 |
| | |
| | | url: jdbc:mysql://${custom.datasource.slave.ip}:${custom.datasource.slave.port}/${custom.datasource.slave.database}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: ${custom.datasource.slave.username} |
| | | password: ${custom.datasource.slave.password} |
| | | cwsj: |
| | | # 从数据源开关/默认关闭 |
| | | enabled: ${custom.datasource.cwsj.enabled} |
| | | url: jdbc:mysql://${custom.datasource.cwsj.ip}:${custom.datasource.cwsj.port}/${custom.datasource.cwsj.database}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: ${custom.datasource.cwsj.username} |
| | | password: ${custom.datasource.cwsj.password} |
| | | # 初始连接数 |
| | | initialSize: 5 |
| | | # 最小连接池数量 |
| | |
| | | # 令牌密钥 |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # 令牌有效期(默认30分钟) |
| | | expireTime: 30 |
| | | expireTime: 43200 |
| | | |
| | | # MyBatis-plus配置 |
| | | mybatis-plus: |
| | |
| | | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| | | # 加载全局的配置文件 |
| | | configLocation: classpath:mybatis/mybatis-config.xml |
| | | |
| | | # PageHelper分页插件 |
| | | pagehelper: |
| | | helperDialect: mysql |
| | |
| | | excludes: /system/notice |
| | | # 匹配链接 |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |
| | | |
| | | |