Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
736c2807
Commit
736c2807
authored
Feb 27, 2020
by
弓厶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、删除一些集约的配置信息
2、添加一些运维用的脚本
parent
8c9fc6a4
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
699 additions
and
2053 deletions
+699
-2053
apply-net/pom.xml
+159
-158
apply-net/src/main/resources/application-dev.yml
+0
-192
apply-net/src/main/resources/application.yml
+2
-10
core-service/pom.xml
+1
-1
core-service/src/main/resources/application-dev.yml
+0
-152
core-service/src/main/resources/application-prod.yml
+7
-7
core-service/src/main/resources/application.yml
+7
-7
deploy/prod/docker-compose.yml
+48
-0
deploy/prod/manager/Dockerfile
+8
-0
eureka/src/main/resources/application-dev.yml
+0
-25
gateway/src/main/resources/application-dev.yml
+0
-85
gateway/src/main/resources/application-prod.yml
+3
-3
new-user/pom.xml
+154
-153
new-user/src/main/resources/application-dev.yml
+0
-192
old-user/pom.xml
+154
-153
old-user/src/main/resources/application-dev.yml
+0
-192
pom.xml
+1
-1
renewal-user/pom.xml
+154
-153
renewal-user/src/main/resources/application-dev.yml
+0
-192
service-manager/pom.xml
+1
-1
service-manager/src/main/resources/application-dev.yml
+0
-192
task/src/main/resources/application-dev.yml
+0
-184
No files found.
apply-net/pom.xml
View file @
736c2807
...
...
@@ -2,174 +2,174 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
apply-net
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<artifactId>
apply-net
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<dependencies>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-message
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependencies>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-message
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
apply-net
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
<build>
<finalName>
apply-net
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
</project>
\ No newline at end of file
apply-net/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
spring
:
profiles
:
active
:
dev
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}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://jyyy-mysql:3306/jyyy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
#username: root
#password: 123456
#filters: wall,mergeStat
dynamic
:
primary
:
master
p6spy
:
true
druid
:
filters
:
stat
max-active
:
30
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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
:
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
apply-net/src/main/resources/application.yml
View file @
736c2807
...
...
@@ -186,13 +186,4 @@ management:
endpoints
:
web
:
exposure
:
include
:
bus-refresh
#发送短信账号
message
:
user
:
"
jyyy"
pwd
:
"
ll987!!ali5c8"
url
:
"
https://fnsms.mini189.cn/smsapi"
phoneRule
:
enabled
:
false
rule
:
"
133,
149,
153,
173,
177,
180,
181,
189,
191,
199"
include
:
bus-refresh
\ No newline at end of file
core-service/pom.xml
View file @
736c2807
...
...
@@ -83,7 +83,7 @@
</dependencies>
<build>
<finalName>
gdtel-gztel-jyyy-core-servic
e
</finalName>
<finalName>
cor
e
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
core-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka:20000/eureka/
server
:
port
:
10002
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
#是否开启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
:
86400
#多久检测一次失效的session(只在单机环境下生效) 单位:秒
session-validation-interval
:
43200
spring
:
profiles
:
active
:
dev
cloud
:
stream
:
bindings
:
menuInput
:
#要和output的destination一致, 这样才能将队列和写入消息的exchange关联起来
destination
:
queue.menu.messages
binder
:
local_rabbit
group
:
menuMessageConsumers
content-type
:
application/json
binders
:
local_rabbit
:
type
:
rabbit
environment
:
spring
:
rabbitmq
:
host
:
${spring.rabbitmq.host}
prot
:
${spring.rabbitmq.port}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
#用来搜集数据库的所有表
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}
syh
:
url
:
jdbc:mysql://132.122.4.73:33060/contactcenter?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
yhzx
password
:
yhzx@160505
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
:
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
management
:
endpoints
:
web
:
exposure
:
include
:
bus-refresh
messageconfig
:
url
:
"
https://fnsms.mini189.cn/smsapi/sendsms"
user
:
"
jyyy"
pwt
:
"
ll987!!ali5c8"
channel
:
"
yb"
phoneRule
:
enabled
:
true
rule
:
"
133,
149,
153,
173,
177,
180,
181,
189,
191,
199"
\ No newline at end of file
core-service/src/main/resources/application-prod.yml
View file @
736c2807
...
...
@@ -137,10 +137,10 @@ management:
exposure
:
include
:
bus-refresh
messageconfig
:
url
:
"
https://fnsms.mini189.cn/smsapi/sendsms"
user
:
"
jyyy"
pwt
:
"
ll987!!ali5c8"
channel
:
"
yb"
url
:
user
:
pwt
:
channel
:
phoneRule
:
enabled
:
true
rule
:
"
133,
149,
153,
173,
177,
180,
181,
189,
191,
199"
\ No newline at end of file
enabled
:
rule
:
\ No newline at end of file
core-service/src/main/resources/application.yml
View file @
736c2807
...
...
@@ -166,10 +166,10 @@ hystrix:
thread
:
timeoutInMilliseconds
:
4500
#断路器超时时间,默认1000ms
messageconfig
:
url
:
"
https://fnsms.mini189.cn/smsapi/sendsms"
user
:
"
jyyy"
pwt
:
"
ll987!!ali5c8"
channel
:
"
yb"
url
:
user
:
pwt
:
channel
:
phoneRule
:
enabled
:
true
rule
:
"
133,
149,
153,
173,
177,
180,
181,
189,
191,
199"
\ No newline at end of file
enabled
:
rule
:
\ No newline at end of file
deploy/prod/docker-compose.yml
0 → 100644
View file @
736c2807
version
:
'
3.7'
services
:
rabbitmq
:
image
:
rabbitmq
container_name
:
rabbitmq
redis
:
image
:
redis
container_name
:
redis
eureka
:
image
:
eureka
container_name
:
eureka
build
:
context
:
eureka/
dockerfile
:
Dockerfile
depends_on
:
-
rabbitmq
gateway
:
image
:
gateway
container_name
:
gateway
ports
:
-
"
11001:11001"
build
:
context
:
gateway/
dockerfile
:
Dockerfile
depends_on
:
-
rabbitmq
-
eureka
core
:
image
:
core
container_name
:
core
build
:
context
:
core/
dockerfile
:
Dockerfile
depends_on
:
-
rabbitmq
-
eureka
-
redis
manager
:
image
:
manager
container_name
:
manager
build
:
context
:
manager/
dockerfile
:
Dockerfile
depends_on
:
-
rabbitmq
-
eureka
-
redis
\ No newline at end of file
deploy/prod/manager/Dockerfile
0 → 100644
View file @
736c2807
FROM
openjdk:8-jre-alpine
LABEL
maintainer="Liph <liph@gzwinsun.com>" app="gateway"
ENV
JAR_NAME=manager \
TZ=Asia/Shanghai
COPY
$JAR_NAME.jar $JAR_NAME.jar
EXPOSE
11091
CMD
java -jar $JAR_NAME.jar --spring.profiles.active=prod
\ No newline at end of file
eureka/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
server
:
port
:
20000
spring
:
application
:
name
:
eureka
profiles
:
active
:
dev
eureka
:
instance
:
hostname
:
eureka
client
:
##注册自己
register-with-eureka
:
false
fetch-registry
:
false
serviceUrl
:
defaultZone
:
http://eureka:20000/eureka/
server
:
enable-self-preservation
:
false
eviction-interval-timer-in-ms
:
50000
management
:
endpoints
:
web
:
exposure
:
include
:
"
*"
\ No newline at end of file
gateway/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka:20000/eureka/
server
:
port
:
10001
tomcat
:
uri-encoding
:
UTF-8
max-threads
:
1000
max-connections
:
20000
spring
:
application
:
name
:
gateway
profiles
:
active
:
dev
servlet
:
multipart
:
enabled
:
true
max-request-size
:
100MB
max-file-size
:
100MB
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://132.97.20.47:30885/jyyy?useSSL=false
username
:
jyyy
password
:
jyyy123##
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
jyyy
:
path
:
/jyyy/**
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
gateway/src/main/resources/application-prod.yml
View file @
736c2807
...
...
@@ -29,9 +29,9 @@ spring:
max-file-size
:
100MB
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://1
92.168.2.118:30885/jyyy
?useSSL=false
username
:
jyyy
password
:
jyyy123##
url
:
jdbc:mysql://1
72.18.101.171:3306/ws_project
?useSSL=false
username
:
root
password
:
AMrGBg6ZSsRrDLs6
zuul
:
ribbon
:
eager-load
:
...
...
new-user/pom.xml
View file @
736c2807
...
...
@@ -2,169 +2,169 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
new-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<artifactId>
new-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
new-
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
<build>
<finalName>
new
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
</project>
\ No newline at end of file
new-user/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
:
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
spring
:
profiles
:
active
:
dev
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}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://jyyy-mysql:3306/jyyy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
#username: root
#password: 123456
#filters: wall,mergeStat
dynamic
:
primary
:
master
p6spy
:
true
druid
:
filters
:
stat
max-active
:
30
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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
:
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
old-user/pom.xml
View file @
736c2807
...
...
@@ -2,169 +2,169 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
old-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<artifactId>
old-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
old-
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
<build>
<finalName>
old
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
</project>
\ No newline at end of file
old-user/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
:
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
spring
:
profiles
:
active
:
dev
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}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://jyyy-mysql:3306/jyyy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
#username: root
#password: 123456
#filters: wall,mergeStat
dynamic
:
primary
:
master
p6spy
:
true
druid
:
filters
:
stat
max-active
:
30
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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
:
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
pom.xml
View file @
736c2807
...
...
@@ -25,7 +25,7 @@
<parent>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-parent
</artifactId>
<version>
0.1.4
5
</version>
<version>
0.1.4
9
</version>
</parent>
<properties>
...
...
renewal-user/pom.xml
View file @
736c2807
...
...
@@ -2,169 +2,169 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
school-center
</artifactId>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<version>
0.0.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
renewal-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<artifactId>
renewal-user
</artifactId>
<description>
外呼集约系统主要服务模块
</description>
<version>
0.0.1
</version>
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<dependencies>
<!-- 为了节省内存,改用jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!-- 去除默认tomcat配置 -->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<!-- 去除默认日志配置 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- 为了节省内存,改用jetty -->
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--spring boot依赖 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatisplus-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-utils-redis
</artifactId>
<version>
${winsun-framework.version}
</version>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.framework
</groupId>
<artifactId>
winsun-core-api
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<!-- 数据库连接部分 -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<artifactId>
p6spy
</artifactId>
<groupId>
p6spy
</groupId>
</dependency>
<dependency>
<artifactId>
druid-spring-boot-starter
</artifactId>
<groupId>
com.alibaba
</groupId>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
dynamic-datasource-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<dependency>
<groupId>
com.winsun.gdtel.gztel
</groupId>
<artifactId>
common
</artifactId>
<version>
${service.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
renewal-
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
<build>
<finalName>
renewal
user
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>
local
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profileActive>
local
</profileActive>
</properties>
</profile>
<profile>
<id>
dev
</id>
<properties>
<profileActive>
dev
</profileActive>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<profileActive>
prod
</profileActive>
</properties>
</profile>
</profiles>
</project>
\ No newline at end of file
renewal-user/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
:
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
spring
:
profiles
:
active
:
dev
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}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://jyyy-mysql:3306/jyyy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
#username: root
#password: 123456
#filters: wall,mergeStat
dynamic
:
primary
:
master
p6spy
:
true
druid
:
filters
:
stat
max-active
:
30
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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
:
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
service-manager/pom.xml
View file @
736c2807
...
...
@@ -127,7 +127,7 @@
</dependencies>
<build>
<finalName>
service-
manager
</finalName>
<finalName>
manager
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
service-manager/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
:
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
spring
:
profiles
:
active
:
dev
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}
password
:
${spring.rabbitmq.username}
username
:
${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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://jyyy-mysql:3306/jyyy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
#username: root
#password: 123456
#filters: wall,mergeStat
dynamic
:
primary
:
master
p6spy
:
true
druid
:
filters
:
stat
max-active
:
30
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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
task/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
8c9fc6a4
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://eureka: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
:
jyyy-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
:
dev
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
:
jyyy-rabbitmq
port
:
5672
username
:
guest
password
:
guest
redis
:
clusterWhether
:
false
cluster
:
max-redirects
:
3
nodes
:
-
jyyy-redis:6379
database
:
0
host
:
jyyy-redis
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://172.18.101.171:3306/dzqd?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
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.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
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment