提交 5f1f55c9 编写于 作者: D doyutu

🍎 Updated Configuration

上级 1925e1a7
...@@ -4,14 +4,8 @@ server: ...@@ -4,14 +4,8 @@ server:
basedir: /var/tmp/website-blog-admin basedir: /var/tmp/website-blog-admin
# SPRING PROFILES # SPRING PROFILES
spring: spring:
datasource: profiles:
druid: include: [center-dev]
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
# 指定默认MimeMessage的编码,默认为: UTF-8 # 指定默认MimeMessage的编码,默认为: UTF-8
mail: mail:
default-encoding: UTF-8 default-encoding: UTF-8
...@@ -37,18 +31,8 @@ spring: ...@@ -37,18 +31,8 @@ spring:
mail.smtp.connectiontimeout: 50000 mail.smtp.connectiontimeout: 50000
mail.smtp.timeout: 30000 mail.smtp.timeout: 30000
mail.smtp.writetimeout: 50000 mail.smtp.writetimeout: 50000
# redis缓存服务配置
session:
store-type: redis
# Redis数据库索引(默认为0) # Redis数据库索引(默认为0)
redis: redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: qwe!@#123
jedis: jedis:
pool: pool:
# 连接池最大连接数(使用负值表示没有限制) # 连接池最大连接数(使用负值表示没有限制)
...@@ -76,6 +60,4 @@ app: ...@@ -76,6 +60,4 @@ app:
loginUrl: "/passport/login/" loginUrl: "/passport/login/"
successUrl: "/" successUrl: "/"
unauthorizedUrl: "/error/403" unauthorizedUrl: "/error/403"
# 创建网站的时间,用于计算已建站的天数,默认为2018-01-01
buildWebsiteDate: 2018-01-01 00:00:00
####################################自定义配置########################################## ####################################自定义配置##########################################
...@@ -4,14 +4,8 @@ server: ...@@ -4,14 +4,8 @@ server:
basedir: /var/tmp/website-blog-admin basedir: /var/tmp/website-blog-admin
# SPRING PROFILES # SPRING PROFILES
spring: spring:
datasource: profiles:
druid: include: [center-test]
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
# 指定默认MimeMessage的编码,默认为: UTF-8 # 指定默认MimeMessage的编码,默认为: UTF-8
mail: mail:
default-encoding: UTF-8 default-encoding: UTF-8
...@@ -37,18 +31,8 @@ spring: ...@@ -37,18 +31,8 @@ spring:
mail.smtp.connectiontimeout: 50000 mail.smtp.connectiontimeout: 50000
mail.smtp.timeout: 30000 mail.smtp.timeout: 30000
mail.smtp.writetimeout: 50000 mail.smtp.writetimeout: 50000
# redis缓存服务配置
session:
store-type: redis
# Redis数据库索引(默认为0) # Redis数据库索引(默认为0)
redis: redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: qwe!@#123
jedis: jedis:
pool: pool:
# 连接池最大连接数(使用负值表示没有限制) # 连接池最大连接数(使用负值表示没有限制)
...@@ -70,8 +54,6 @@ logging: ...@@ -70,8 +54,6 @@ logging:
app: app:
# 是否启用kaptcha验证码 # 是否启用kaptcha验证码
enableKaptcha: false enableKaptcha: false
# 创建网站的时间,用于计算已建站的天数,默认为2018-01-01
buildWebsiteDate: 2018-01-01 00:00:00
# shiro配置项 # shiro配置项
shiro: shiro:
loginUrl: "/passport/login/" loginUrl: "/passport/login/"
......
spring:
profiles:
include: [center]
####### database Config #######
datasource:
druid:
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password:
####### Redis Config #######
redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password:
####### redis缓存服务配置 #######
session:
store-type: redis
####### 自定义配置 #######
####### 自定义配置 #######
spring:
profiles:
include: [center]
####### database Config #######
datasource:
druid:
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
####### Redis Config #######
redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: qwe!@#123
####### redis缓存服务配置 #######
session:
store-type: redis
####### 自定义配置 #######
####### 自定义配置 #######
####### 自定义配置 #######
app:
# 创建网站的时间,用于计算已建站的天数,默认为2018-01-01
buildWebsiteDate: 2018-01-01 00:00:00
####### 自定义配置 #######
...@@ -4,14 +4,8 @@ server: ...@@ -4,14 +4,8 @@ server:
basedir: /var/tmp/website-blog-web basedir: /var/tmp/website-blog-web
# SPRING PROFILES # SPRING PROFILES
spring: spring:
datasource: profiles:
druid: include: [center-dev]
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
# 指定默认MimeMessage的编码,默认为: UTF-8 # 指定默认MimeMessage的编码,默认为: UTF-8
mail: mail:
default-encoding: UTF-8 default-encoding: UTF-8
...@@ -37,18 +31,8 @@ spring: ...@@ -37,18 +31,8 @@ spring:
mail.smtp.connectiontimeout: 50000 mail.smtp.connectiontimeout: 50000
mail.smtp.timeout: 30000 mail.smtp.timeout: 30000
mail.smtp.writetimeout: 50000 mail.smtp.writetimeout: 50000
# redis缓存服务配置
session:
store-type: redis
# Redis数据库索引(默认为0) # Redis数据库索引(默认为0)
redis: redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: qwe!@#123
jedis: jedis:
pool: pool:
# 连接池最大连接数(使用负值表示没有限制) # 连接池最大连接数(使用负值表示没有限制)
...@@ -72,8 +56,6 @@ logging: ...@@ -72,8 +56,6 @@ logging:
app: app:
# 是否启用kaptcha验证码 # 是否启用kaptcha验证码
enableKaptcha: false enableKaptcha: false
# 创建网站的时间,用于计算已建站的天数,默认为2018-01-01
buildWebsiteDate: 2018-01-01 00:00:00
# braum过滤器,用于过滤恶意请求 # braum过滤器,用于过滤恶意请求
braum: braum:
......
...@@ -4,14 +4,8 @@ server: ...@@ -4,14 +4,8 @@ server:
basedir: /var/tmp/website-blog-web basedir: /var/tmp/website-blog-web
# SPRING PROFILES # SPRING PROFILES
spring: spring:
datasource: profiles:
druid: include: [center-test]
connection-init-sqls: set names utf8mb4
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dblog?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
# 指定默认MimeMessage的编码,默认为: UTF-8 # 指定默认MimeMessage的编码,默认为: UTF-8
mail: mail:
default-encoding: UTF-8 default-encoding: UTF-8
...@@ -37,18 +31,8 @@ spring: ...@@ -37,18 +31,8 @@ spring:
mail.smtp.connectiontimeout: 50000 mail.smtp.connectiontimeout: 50000
mail.smtp.timeout: 30000 mail.smtp.timeout: 30000
mail.smtp.writetimeout: 50000 mail.smtp.writetimeout: 50000
# redis缓存服务配置
session:
store-type: redis
# Redis数据库索引(默认为0) # Redis数据库索引(默认为0)
redis: redis:
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: qwe!@#123
jedis: jedis:
pool: pool:
# 连接池最大连接数(使用负值表示没有限制) # 连接池最大连接数(使用负值表示没有限制)
...@@ -63,6 +47,7 @@ spring: ...@@ -63,6 +47,7 @@ spring:
timeout: 5000ms timeout: 5000ms
# 默认的数据过期时间,主要用于shiro权限管理 # 默认的数据过期时间,主要用于shiro权限管理
expire: 2592000 expire: 2592000
# logging settings # logging settings
logging: logging:
path: /var/tmp/website-blog-web path: /var/tmp/website-blog-web
...@@ -77,6 +62,4 @@ braum: ...@@ -77,6 +62,4 @@ braum:
app: app:
# 是否启用kaptcha验证码 # 是否启用kaptcha验证码
enableKaptcha: false enableKaptcha: false
# 创建网站的时间,用于计算已建站的天数,默认为2018-01-01
buildWebsiteDate: 2018-01-01 00:00:00
####################################自定义配置########################################## ####################################自定义配置##########################################
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册