|
@ -1,6 +1,32 @@ |
|
|
server: |
|
|
server: |
|
|
port: 8011 |
|
|
port: 8011 |
|
|
#配置数据源 |
|
|
# 项目配置 |
|
|
|
|
|
nl: |
|
|
|
|
|
config: |
|
|
|
|
|
mysql: |
|
|
|
|
|
ip: 127.0.0.1 |
|
|
|
|
|
port: 3306 |
|
|
|
|
|
username: root |
|
|
|
|
|
password: 12356 |
|
|
|
|
|
database: nl-platform |
|
|
|
|
|
redis: |
|
|
|
|
|
ip: 127.0.0.1 |
|
|
|
|
|
port: 6379 |
|
|
|
|
|
password: null |
|
|
|
|
|
database: 1 |
|
|
|
|
|
oracle: |
|
|
|
|
|
ip: 172.27.37.66 |
|
|
|
|
|
port: 1521 |
|
|
|
|
|
scheme: RTMES |
|
|
|
|
|
username: LMSTELCOM |
|
|
|
|
|
password: LMSTELCOM_6463 |
|
|
|
|
|
sqlserver: |
|
|
|
|
|
ip: 10.93.41.2 |
|
|
|
|
|
port: WINCC |
|
|
|
|
|
username: sa |
|
|
|
|
|
password: 123 |
|
|
|
|
|
database: 马钢_RH |
|
|
|
|
|
# 配置数据源 |
|
|
spring: |
|
|
spring: |
|
|
autoconfigure: |
|
|
autoconfigure: |
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
@ -10,30 +36,27 @@ spring: |
|
|
datasource: |
|
|
datasource: |
|
|
mysql: |
|
|
mysql: |
|
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
|
# url: jdbc:log4jdbc:mysql://${DB_HOST:10.93.41.198}:${DB_PORT:3306}/${DB_NAME:rl_mg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
url: jdbc:log4jdbc:mysql://${DB_HOST:${nl.config.mysql.ip}}:${DB_PORT:${nl.config.mysql.port}}/${DB_NAME:${nl.config.mysql.database}}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
# username: ${DB_USER:root} |
|
|
username: ${DB_USER:${nl.config.mysql.username}} |
|
|
# password: ${DB_PWD:123456} |
|
|
password: ${DB_PWD:${nl.config.mysql.password}} |
|
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl-platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
|
|
username: ${DB_USER:root} |
|
|
|
|
|
password: ${DB_PWD:12356} |
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
oracle: |
|
|
oracle: |
|
|
driver-class-name: oracle.jdbc.OracleDriver |
|
|
driver-class-name: oracle.jdbc.OracleDriver |
|
|
url: jdbc:oracle:thin:@172.27.37.66:1521:RTMES |
|
|
url: jdbc:oracle:thin:@${nl.config.oracle.ip}:${nl.config.oracle.port}:${nl.config.oracle.scheme} |
|
|
username: ${DB_USER:LMSTELCOM} |
|
|
username: ${DB_USER:${nl.config.oracle.username}} |
|
|
password: ${DB_PWD:LMSTELCOM_6463} |
|
|
password: ${DB_PWD:${nl.config.oracle.password}} |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
sqlserver: |
|
|
sqlserver: |
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
|
|
url: jdbc:sqlserver://10.93.41.2\WINCC;DatabaseName=马钢_RH |
|
|
url: jdbc:sqlserver://${nl.config.sqlserver.ip}\${nl.config.sqlserver.port};DatabaseName=${nl.config.sqlserver.database} |
|
|
username: ${DB_USER:sa} |
|
|
username: ${DB_USER:${nl.config.sqlserver.username}} |
|
|
password: ${DB_PWD:123} |
|
|
password: ${DB_PWD:${nl.config.sqlserver.password}} |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
redis: |
|
|
redis: |
|
|
#数据库索引 |
|
|
# 数据库索引 |
|
|
host: ${REDIS_HOST:127.0.0.1} |
|
|
host: ${REDIS_HOST:${nl.config.redis.ip}} |
|
|
port: ${REDIS_PORT:6379} |
|
|
port: ${REDIS_PORT:${nl.config.redis.port}} |
|
|
password: ${REDIS_PWD:} |
|
|
password: ${REDIS_PWD:${nl.config.redis.password}} |
|
|
redisson: |
|
|
redisson: |
|
|
config: | |
|
|
config: | |
|
|
threads: 4 |
|
|
threads: 4 |
|
@ -45,30 +68,26 @@ spring: |
|
|
address: redis://127.0.0.1:6379 |
|
|
address: redis://127.0.0.1:6379 |
|
|
idleConnectionTimeout: 10000 |
|
|
idleConnectionTimeout: 10000 |
|
|
timeout: 3000 |
|
|
timeout: 3000 |
|
|
|
|
|
jetcache: |
|
|
# 登录相关配置 |
|
|
statIntervalMinutes: 15 |
|
|
login: |
|
|
areaInCacheName: false |
|
|
# 登录缓存 |
|
|
local: |
|
|
cache-enable: true |
|
|
default: |
|
|
# 是否限制单用户登录 |
|
|
type: linkedhashmap |
|
|
single-login: false |
|
|
keyConvertor: fastjson |
|
|
# 验证码 |
|
|
remote: |
|
|
login-code: |
|
|
default: |
|
|
# 验证码类型配置 查看 LoginProperties 类 |
|
|
type: redis |
|
|
code-type: arithmetic |
|
|
keyConvertor: fastjson2 |
|
|
# 登录图形验证码有效时间/分钟 |
|
|
broadcastChannel: projectA |
|
|
expiration: 2 |
|
|
valueEncoder: java |
|
|
# 验证码高度 |
|
|
valueDecoder: java |
|
|
width: 111 |
|
|
poolConfig: |
|
|
# 验证码宽度 |
|
|
minIdle: 5 |
|
|
heigth: 36 |
|
|
maxIdle: 20 |
|
|
# 内容长度 |
|
|
maxTotal: 50 |
|
|
length: 2 |
|
|
host: ${nl.config.redis.ip} |
|
|
# 字体名称,为空则使用默认字体 |
|
|
port: ${nl.config.redis.port} |
|
|
font-name: |
|
|
|
|
|
# 字体大小 |
|
|
|
|
|
font-size: 25 |
|
|
|
|
|
|
|
|
|
|
|
#是否允许生成代码,生产环境设置为false |
|
|
#是否允许生成代码,生产环境设置为false |
|
|
generator: |
|
|
generator: |
|
|
enabled: true |
|
|
enabled: true |
|
@ -134,11 +153,11 @@ sa-token: |
|
|
token-session-check-login: false |
|
|
token-session-check-login: false |
|
|
alone-redis: |
|
|
alone-redis: |
|
|
# Redis数据库索引(默认为0) |
|
|
# Redis数据库索引(默认为0) |
|
|
database: 1 |
|
|
database: ${nl.config.redis.database} |
|
|
# Redis服务器地址 |
|
|
# Redis服务器地址 |
|
|
host: 127.0.0.1 |
|
|
host: ${nl.config.redis.ip} |
|
|
# Redis服务器连接端口 |
|
|
# Redis服务器连接端口 |
|
|
port: 6379 |
|
|
port: ${nl.config.redis.port} |
|
|
# Redis服务器连接密码(默认为空) |
|
|
# Redis服务器连接密码(默认为空) |
|
|
password: |
|
|
password: |
|
|
# 连接超时时间 |
|
|
# 连接超时时间 |
|
|