Commit 2b67073a by 罗承锋

本地配置提交

parent eb9777c9
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 11092
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: false
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
fileUploadPath: tmpUpload/
spring:
profiles:
active: local
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
redis:
# 是否使用集群模式
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 50000
ip:
exprie: 600
prohibition: 600
datasource:
dynamic:
primary: master
p6spy: true
druid:
filters: stat
max-active: 30
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: apply-net
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
#断路器超时时间,默认1000ms
timeoutInMilliseconds: 4500
mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations:
- com/winsun/mapper/mapping/*Mapper.xml
- com/winsun/modular/dao/mapping/*Mapper.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
\ No newline at end of file
...@@ -18,7 +18,7 @@ server: ...@@ -18,7 +18,7 @@ server:
max-threads: 200 max-threads: 200
max-connections: 2000 max-connections: 2000
jetty: jetty:
max-http-post-size: 1000000 max-http-post-size: 1024000
winsun: winsun:
app: app:
version: @project.version@ version: @project.version@
...@@ -41,7 +41,7 @@ winsun: ...@@ -41,7 +41,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
...@@ -96,7 +96,7 @@ spring: ...@@ -96,7 +96,7 @@ spring:
# republish failures to the DLQ with diagnostic headers # republish failures to the DLQ with diagnostic headers
republish-to-dlq: true republish-to-dlq: true
rabbitmq: rabbitmq:
host: localhost host: 123.56.82.141
port: 5672 port: 5672
username: guest username: guest
password: guest password: guest
...@@ -182,8 +182,8 @@ hystrix: ...@@ -182,8 +182,8 @@ hystrix:
mybatis-plus: mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations: mapper-locations:
- com/winsun/mapper/mapping/*.xml - com/winsun/mapper/mapping/*Mapper.xml
- com/winsun/modular/dao/mapping/*.xml - com/winsun/modular/dao/mapping/*Mapper.xml
management: management:
endpoints: endpoints:
web: web:
......
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 10002
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
jetty:
max-http-post-size: 1000000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: true
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 86400
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 43200
spring:
profiles:
active: local
cloud:
stream:
bindings:
menuInput:
destination: queue.menu.messages #要和output的destination一致, 这样才能将队列和写入消息的exchange关联起来
binder: local_rabbit
group: menuMessageConsumers
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
# host: locahost
host: 123.56.82.141
port: 5672
username: guest
password: guest
# password: dsJS8AaSSQ1
redis:
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
# password: aOSJD*D12S
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 5000
ip:
exprie: 600
prohibition: 600
datasource:
# 由于父框架的问题,这里本来不应该这样写的
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
db-name: guns #用来搜集数据库的所有表
filters: wall,mergeStat
driver-class-name: com.mysql.cj.jdbc.Driver
max-active: 20
dynamic:
primary: master
p6spy: true
druid:
filters: stat
datasource:
master:
url: ${spring.datasource.url}
username: ${spring.datasource.username}
password: ${spring.datasource.password}
driver-class-name: ${spring.datasource.driver-class-name}
max-active: ${spring.datasource.max-active}
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: core
mybatis-plus:
typeAliasesPackage: com.winsun.auth.model.common,com.winsun.auth.model.merchant,com.winsun.auth.model.user,com.winsun.auth.core.node
mapper-locations:
- /com/winsun/item/modular/system/dao/mapping/*.xml
- /com/winsun/modular/dao/mapping/*.xml
- com/winsun/mapper/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
default: #default全局有效,service id指定应用有效
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
timeoutInMilliseconds: 4500 #断路器超时时间,默认1000ms
messageconfig:
url:
user:
pwt:
channel:
phoneRule:
enabled:
rule:
\ No newline at end of file
...@@ -37,7 +37,7 @@ winsun: ...@@ -37,7 +37,7 @@ winsun:
session-validation-interval: 43200 session-validation-interval: 43200
spring: spring:
profiles: profiles:
active: local active: dev
cloud: cloud:
stream: stream:
bindings: bindings:
...@@ -69,7 +69,7 @@ spring: ...@@ -69,7 +69,7 @@ spring:
# republish failures to the DLQ with diagnostic headers # republish failures to the DLQ with diagnostic headers
republish-to-dlq: true republish-to-dlq: true
rabbitmq: rabbitmq:
host: localhost host: 123.56.82.141
port: 5672 port: 5672
username: guest username: guest
password: guest password: guest
......
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 10001
tomcat:
uri-encoding: UTF-8
max-threads: 1000
max-connections: 20000
jetty:
max-http-post-size: 1000000
spring:
application:
name: gateway
profiles:
active: local
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
# username: root
# password: AMrGBg6ZSsRrDLs6
zuul:
ribbon:
eager-load:
enabled: true
retryable: true
host:
max-total-connections: 1200
max-per-route-connections: 1200
connectTimeoutMillis: 10000
ribbon-isolation-strategy: THREAD
thread-pool:
thread-pool-key-prefix: winsun-zuul
use-separate-thread-pools: true
routes:
auth:
path: /auth/**
sensitiveHeaders:
serviceId: core
manager:
path: /manager/**
sensitiveHeaders:
serviceId: manager
ribbon:
# OkToRetryOnAllOperations: true
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 20000
ConnectTimeout: 2000
SocketTimeout: 2000
hystrix:
command:
default: #default全局有效,service id指定应用有效
circuitBreaker:
enabled: false
threadpool:
default:
coreSize: 1200
maximumSize: 1200
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 5000
queueSizeRejectionThreshold: 4800
execution:
isolation:
thread:
timeoutInMilliseconds: 20000
management:
endpoints:
web:
exposure:
include: bus-refresh
\ No newline at end of file
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
# defaultZone: http://172.18.101.171:20000/eureka
defaultZone: http://localhost:20000/eureka/
server:
port: 11093
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
jetty:
max-http-post-size: 100000000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: false
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
fileUploadPath: tmpUpload/
spring:
profiles:
active: local
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
redis:
# 是否使用集群模式
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 50000
ip:
exprie: 600
prohibition: 600
datasource:
dynamic:
primary: master
p6spy: true
druid:
filters: stat
max-active: 30
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: new-user
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
#断路器超时时间,默认1000ms
timeoutInMilliseconds: 4500
mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations:
- com/winsun/mapper/mapping/*.xml
- com/winsun/modular/dao/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
...@@ -8,6 +8,7 @@ eureka: ...@@ -8,6 +8,7 @@ eureka:
client: client:
registry-fetch-interval-seconds: 5 registry-fetch-interval-seconds: 5
serviceUrl: serviceUrl:
# defaultZone: http://172.18.101.171:20000/eureka
defaultZone: http://localhost:20000/eureka/ defaultZone: http://localhost:20000/eureka/
server: server:
port: 11093 port: 11093
...@@ -41,7 +42,7 @@ winsun: ...@@ -41,7 +42,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
...@@ -96,7 +97,7 @@ spring: ...@@ -96,7 +97,7 @@ spring:
# republish failures to the DLQ with diagnostic headers # republish failures to the DLQ with diagnostic headers
republish-to-dlq: true republish-to-dlq: true
rabbitmq: rabbitmq:
host: localhost host: 123.56.82.141
port: 5672 port: 5672
username: guest username: guest
password: guest password: guest
......
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 11094
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: false
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
fileUploadPath: tmpUpload/
spring:
profiles:
active: local
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
redis:
# 是否使用集群模式
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 50000
ip:
exprie: 600
prohibition: 600
datasource:
dynamic:
primary: master
p6spy: true
druid:
filters: stat
max-active: 30
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: old-user
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
#断路器超时时间,默认1000ms
timeoutInMilliseconds: 4500
mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations:
- com/winsun/mapper/mapping/*.xml
- com/winsun/modular/dao/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
...@@ -39,7 +39,7 @@ winsun: ...@@ -39,7 +39,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
......
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 11095
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: false
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
fileUploadPath: tmpUpload/
spring:
profiles:
active: local
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: 172.18.101.171
port: 5672
username: guest
password: guest
redis:
# 是否使用集群模式
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 50000
ip:
exprie: 600
prohibition: 600
datasource:
dynamic:
primary: master
p6spy: true
druid:
filters: stat
max-active: 30
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: renewal-user
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
#断路器超时时间,默认1000ms
timeoutInMilliseconds: 4500
mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations:
- com/winsun/mapper/mapping/*.xml
- com/winsun/modular/dao/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
...@@ -39,7 +39,7 @@ winsun: ...@@ -39,7 +39,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
...@@ -94,7 +94,7 @@ spring: ...@@ -94,7 +94,7 @@ spring:
# republish failures to the DLQ with diagnostic headers # republish failures to the DLQ with diagnostic headers
republish-to-dlq: true republish-to-dlq: true
rabbitmq: rabbitmq:
host: localhost host: 172.18.101.171
port: 5672 port: 5672
username: guest username: guest
password: guest password: guest
......
eureka:
instance:
hostname: eureka
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${spring.application.instance_id:${server.port}}
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 11091
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: false
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: true
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
spring:
profiles:
active: prod
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: 123.56.82.141
port: 5672
username: guest
password: guest
redis:
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- ${spring.redis.host}:${spring.redis.port}
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 5000
ip:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
dynamic:
primary: master
p6spy: true
druid:
filters: stat
max-active: 30
datasource:
master:
url: ${spring.datasource.url}
username: ${spring.datasource.username}
password: ${spring.datasource.password}
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: manager
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
timeoutInMilliseconds: 4500 #断路器超时时间,默认1000ms
mybatis-plus:
typeAliasesPackage: com.winsun.bean,com.winsun.framework.core.node
mapper-locations:
- com/winsun/mapper/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
\ No newline at end of file
...@@ -18,7 +18,7 @@ server: ...@@ -18,7 +18,7 @@ server:
max-threads: 200 max-threads: 200
max-connections: 2000 max-connections: 2000
jetty: jetty:
max-http-post-size: 1000000 max-http-post-size: 100000000
winsun: winsun:
app: app:
version: @project.version@ version: @project.version@
...@@ -41,7 +41,7 @@ winsun: ...@@ -41,7 +41,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
......
eureka:
instance:
hostname: localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds: 10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds: 20
client:
registry-fetch-interval-seconds: 5
serviceUrl:
defaultZone: http://localhost:20000/eureka/
server:
port: 11191
servlet:
context-path: /ciop
tomcat:
uri-encoding: UTF-8
max-threads: 200
max-connections: 2000
winsun:
app:
version: @project.version@
name: ${spring.application.name}
scanner: false
auth:
#鉴权地址
serviceId: core
#是否开启swagger (true/false)
swagger-open: true
#是否开启登录时验证码 (true/false)
kaptcha-open: false
#是否开启spring session,如果是多机环境需要开启(true/false)
spring-session-open: false
redis-session-expire: 86400
#session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
session-invalidate-time: 1800
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval: 900
fileUploadPath: tmpUpload/
spring:
profiles:
active: local
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instanceName: DefaultQuartzScheduler
instanceId: AUTO
jobStore:
dataSource: default
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: true
misfireThreshold: 5000
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
cloud:
stream:
bindings:
menuOutput:
destination: queue.menu.messages
binder: local_rabbit
content-type: application/json
binders:
local_rabbit:
type: rabbit
environment:
spring:
rabbitmq:
host: ${spring.rabbitmq.host}
port: ${spring.rabbitmq.port}
username: ${spring.rabbitmq.username}
password: ${spring.rabbitmq.password}
rabbit:
bindings:
input:
consumer:
# maxumum concurrency of this consumer (threads)
max-concurrency: 50
# number of prefetched messages pre consumer thread
prefetch: 100
# true to requeue rejected messages, false to discard (or route to DLQ)
requeue-rejected: false
# republish failures to the DLQ with diagnostic headers
republish-to-dlq: true
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
redis:
# 是否使用集群模式
clusterWhether: false
cluster:
max-redirects: 3
nodes:
- localhost:6379
database: 0
host: localhost
port: 6379
password:
lettuce:
pool:
max-active: -1
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 50000
ip:
exprie: 600
prohibition: 600
datasource:
url: jdbc:mysql://127.0.0.1:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: root
filters: wall,mergeStat
max-active: 20
devtools:
restart:
enabled: false
additional-paths: src/main/java
exclude: static/**,WEB-INF/view/**
servlet:
multipart:
enabled: true
max-request-size: 100MB
max-file-size: 100MB
application:
name: task
feign:
hystrix:
enabled: true
httpclient:
enabled: true
okhttp:
enabled: false
ribbon:
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 0
ReadTimeout: 4400
ConnectTimeout: 2000
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 100
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: 20000
queueSizeRejectionThreshold: 19999
command:
#default全局有效,service id指定应用有效
default:
circuitBreaker:
enabled: false
execution:
timeout:
#如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
enabled: true
isolation:
thread:
#断路器超时时间,默认1000ms
timeoutInMilliseconds: 4500
mybatis-plus:
typeAliasesPackage: com.winsun.mapper.task
mapper-locations:
- com/winsun/mapper/mapping/*.xml
- com/winsun/modular/dao/mapping/*.xml
management:
endpoints:
web:
exposure:
include: bus-refresh
\ No newline at end of file
...@@ -39,7 +39,7 @@ winsun: ...@@ -39,7 +39,7 @@ winsun:
fileUploadPath: tmpUpload/ fileUploadPath: tmpUpload/
spring: spring:
profiles: profiles:
active: local active: dev
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
jdbc: jdbc:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment