|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
#用户登陆路径
|
|
|
|
|
#用户登陆路径
|
|
|
|
|
filter.shiro.user.loginuri = /login
|
|
|
|
|
#系统管理员登陆路径
|
|
|
|
|
#系统管理员登陆路径
|
|
|
|
|
filter.shiro.admin.loginuri = /salogin
|
|
|
|
|
#运维人员登陆路径
|
|
|
|
|
#运维人员登陆路径
|
|
|
|
|
filter.shiro.saadmin.loginuri = /salogin
|
|
|
|
|
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
filter.shiro.user.filteruri = /operate/*
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
filter.shiro.admin.filteruri = /adoperate/*
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
#用户授权过滤路径
|
|
|
|
|
filter.shiro.saadmin.filteruri = /saoperate/*
|
|
|
|
|
|
|
|
|
|
################ 主数据源 ################
|
|
|
|
|
################ 主数据源 ################
|
|
|
|
|
# mysql
|
|
|
|
|
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
|
#spring.datasource.url=jdbc:mysql://localhost:3306/i3wms
|
|
|
|
@ -25,39 +25,39 @@ filter.shiro.saadmin.filteruri = /saoperate/*
|
|
|
|
|
#spring.datasource.username=root
|
|
|
|
|
#spring.datasource.password=123456
|
|
|
|
|
|
|
|
|
|
##主数据源,读写
|
|
|
|
|
##主数据源,读写
|
|
|
|
|
#impp.write.datasource.type=com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
impp.write.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
|
impp.write.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
|
impp.write.datasource.username=i3_dev_core
|
|
|
|
|
impp.write.datasource.password=i3_core_pass
|
|
|
|
|
|
|
|
|
|
##辅数据源,只读
|
|
|
|
|
##辅数据源,只读
|
|
|
|
|
#impp.read.datasource.type=com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
impp.read.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
|
impp.read.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_core?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
|
impp.read.datasource.username=i3_dev_core
|
|
|
|
|
impp.read.datasource.password=i3_core_pass
|
|
|
|
|
|
|
|
|
|
##############定时任务持久化##############
|
|
|
|
|
##############定时任务持久化##############
|
|
|
|
|
impp.schedule.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
|
|
impp.schedule.datasource.jdbc-url=jdbc:mysql://192.168.1.55:3306/dev_i3_schedule?autoReconnect=true&useSSL=false&characterEncoding=utf-8
|
|
|
|
|
impp.schedule.datasource.username=i3_dev_schedule
|
|
|
|
|
impp.schedule.datasource.password=i3_schedule_pass
|
|
|
|
|
impp.schedule.datasource.max-connections=20
|
|
|
|
|
#定时任务在服务启动后多少秒执行
|
|
|
|
|
#定时任务在服务启动后多少秒执行
|
|
|
|
|
impp.schedule.start.after-second=20
|
|
|
|
|
#是否集群部署
|
|
|
|
|
#是否集群部署
|
|
|
|
|
impp.schedule.datasource.is-clustered=true
|
|
|
|
|
#执行检测(毫秒),若宕机由其他定时器执行
|
|
|
|
|
#执行检测(毫秒),若宕机由其他定时器执行
|
|
|
|
|
impp.schedule.datasource.cluster-checkin-interval=30000
|
|
|
|
|
#线程数
|
|
|
|
|
#线程数
|
|
|
|
|
impp.schedule.thread-count=10
|
|
|
|
|
#线程优先级(1-10)默认为5
|
|
|
|
|
#线程优先级(1-10)默认为5
|
|
|
|
|
impp.schedule.thread-priority=5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################ 数据池设置 ################
|
|
|
|
|
################ 数据池设置 ################
|
|
|
|
|
spring.datasource.maximum-pool-size=100
|
|
|
|
|
spring.datasource.max-active=3
|
|
|
|
|
spring.datasource.max-idle=3
|
|
|
|
@ -69,7 +69,7 @@ spring.datasource.test-on-borrow=false
|
|
|
|
|
spring.datasource.test-while-idle=true
|
|
|
|
|
spring.datasource.time-between-eviction-runs-millis=18800
|
|
|
|
|
|
|
|
|
|
################ JPA设置设置 ################
|
|
|
|
|
################ JPA设置设置 ################
|
|
|
|
|
# mysql
|
|
|
|
|
spring.jpa.database=MYSQL
|
|
|
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
|
|
|
|
@ -87,9 +87,9 @@ spring.datasource.validationQuery=SELECT 1
|
|
|
|
|
##oracle##
|
|
|
|
|
# spring.datasource.validationQuery=SELECT 1 FROM DUAL
|
|
|
|
|
|
|
|
|
|
#ImprovedNamingStrategy / physical_naming_strategy java属性映射到数据库字段时命名规则
|
|
|
|
|
#ImprovedNamingStrategy / physical_naming_strategy java属性映射到数据库字段时命名规则
|
|
|
|
|
# spring.jpa.properties.hibernate.physical_naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy/org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
|
|
|
|
#表关系create,create-drop,update,validate
|
|
|
|
|
#表关系create,create-drop,update,validate
|
|
|
|
|
spring.jpa.properties.hibernate.hbm2ddl.auto=update
|
|
|
|
|
#是否显示sql
|
|
|
|
|
#是否显示sql
|
|
|
|
|
spring.jpa.show-sql=true
|
|
|
|
|