Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
8ea7a876
Commit
8ea7a876
authored
Jun 16, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 配置文件切换至Nacos
parent
a38fadd5
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
128 additions
and
1262 deletions
+128
-1262
pom.xml
pom.xml
+26
-26
application-dev.yml
...al-control-service/src/main/resources/application-dev.yml
+0
-73
application-local.yml
...-control-service/src/main/resources/application-local.yml
+0
-75
application-prod.yml
...l-control-service/src/main/resources/application-prod.yml
+0
-73
application-uat.yml
...al-control-service/src/main/resources/application-uat.yml
+0
-73
application.yml
signal-control-service/src/main/resources/application.yml
+0
-91
bootstrap-dev.yaml
signal-control-service/src/main/resources/bootstrap-dev.yaml
+15
-0
bootstrap.yaml
signal-control-service/src/main/resources/bootstrap.yaml
+3
-0
pom.xml
signal-datacenter-service/pom.xml
+1
-0
application-dev.yml
...datacenter-service/src/main/resources/application-dev.yml
+0
-78
application-prod.yml
...atacenter-service/src/main/resources/application-prod.yml
+0
-78
application.yml
signal-datacenter-service/src/main/resources/application.yml
+0
-68
bootstrap-dev.yaml
...-datacenter-service/src/main/resources/bootstrap-dev.yaml
+15
-0
bootstrap.yaml
signal-datacenter-service/src/main/resources/bootstrap.yaml
+3
-0
pom.xml
signal-feign-service/pom.xml
+1
-0
application-dev.yml
...l-optimize-service/src/main/resources/application-dev.yml
+0
-90
application-prod.yml
...-optimize-service/src/main/resources/application-prod.yml
+0
-89
application.yml
signal-optimize-service/src/main/resources/application.yml
+0
-60
bootstrap-dev.yaml
...al-optimize-service/src/main/resources/bootstrap-dev.yaml
+15
-0
bootstrap.yaml
signal-optimize-service/src/main/resources/bootstrap.yaml
+3
-0
application-dev.yml
signal-utc-dt-service/src/main/resources/application-dev.yml
+0
-50
application.yml
signal-utc-dt-service/src/main/resources/application.yml
+0
-73
bootstrap-dev.yaml
signal-utc-dt-service/src/main/resources/bootstrap-dev.yaml
+15
-0
bootstrap.yaml
signal-utc-dt-service/src/main/resources/bootstrap.yaml
+3
-0
application-dev.yml
signal-utc-service/src/main/resources/application-dev.yml
+0
-49
application-local.yml
signal-utc-service/src/main/resources/application-local.yml
+0
-49
application-prod.yml
signal-utc-service/src/main/resources/application-prod.yml
+0
-49
application-uat.yml
signal-utc-service/src/main/resources/application-uat.yml
+0
-49
application.yml
signal-utc-service/src/main/resources/application.yml
+0
-68
bootstrap-dev.yaml
signal-utc-service/src/main/resources/bootstrap-dev.yaml
+15
-0
bootstrap.yaml
signal-utc-service/src/main/resources/bootstrap.yaml
+3
-0
pom.xml
wj-common/pom.xml
+1
-1
pom.xml
wj-databus/pom.xml
+9
-0
No files found.
pom.xml
View file @
8ea7a876
...
...
@@ -41,9 +41,9 @@
<properties>
<druid-spring-version>
1.1.24
</druid-spring-version>
<el.version>
3.0.0
</el.version>
<spring-cloud.version>
2021.0.
0
</spring-cloud.version>
<spring-cloud.version>
2021.0.
1
</spring-cloud.version>
<openfeign-version>
3.1.0
</openfeign-version>
<spring-cloud-alibaba.version>
0.2.1.RELEASE
</spring-cloud-alibaba.version>
<spring-cloud-alibaba.version>
2021.0.1.0
</spring-cloud-alibaba.version>
<druid.version>
1.1.5
</druid.version>
<swagger.version>
2.9.2
</swagger.version>
<swagger-models-version>
1.5.22
</swagger-models-version>
...
...
@@ -106,29 +106,29 @@
<version>
${mybatis-plus-version}
</version>
</dependency>
<!-- MP相关 end -->
<dependency
>
<groupId>
com.alibaba.cloud
</groupId
>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId
>
<version>
2.2.1.RELEASE
</version
>
<exclusions
>
<exclusion
>
<groupId>
com.alibaba.nacos
</groupId
>
<artifactId>
nacos-client
</artifactId
>
</exclusion
>
</exclusions
>
</dependency
>
<!--nacos客户端依赖
-->
<dependency
>
<groupId>
com.xkcoding.nacos
</groupId
>
<artifactId>
nacos-client
</artifactId
>
<version>
1.1.4
</version
>
</dependency
>
<!--spring boot 集成 nacos 配置中心
-->
<dependency
>
<groupId>
com.alibaba.boot
</groupId
>
<artifactId>
nacos-config-spring-boot-starter
</artifactId
>
<version>
0.2.1
</version
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>com.alibaba.cloud</groupId>--
>
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>--
>
<!-- <version>2021.0.1.0</version>--
>
<!-- <exclusions>--
>
<!-- <exclusion>--
>
<!-- <groupId>com.alibaba.nacos</groupId>--
>
<!-- <artifactId>nacos-client</artifactId>--
>
<!-- </exclusion>--
>
<!-- </exclusions>--
>
<!-- </dependency>--
>
<!-- <!–nacos客户端依赖–>
-->
<!-- <dependency>--
>
<!-- <groupId>com.xkcoding.nacos</groupId>--
>
<!-- <artifactId>nacos-client</artifactId>--
>
<!-- <version>1.1.4</version>--
>
<!-- </dependency>--
>
<!-- <!–spring boot 集成 nacos 配置中心–>
-->
<!-- <dependency>--
>
<!-- <groupId>com.alibaba.boot</groupId>--
>
<!-- <artifactId>nacos-config-spring-boot-starter</artifactId>--
>
<!-- <version>0.2.1</version>--
>
<!-- </dependency>--
>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-validator
</artifactId>
...
...
@@ -162,7 +162,7 @@
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework
.cloud
</groupId>
<groupId>
com.alibaba
.cloud
</groupId>
<artifactId>
spring-cloud-alibaba-dependencies
</artifactId>
<version>
${spring-cloud-alibaba.version}
</version>
<type>
pom
</type>
...
...
signal-control-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32001
servlet
:
display-name
:
Wanji
context-path
:
/web
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
# url: jdbc:mysql://10.102.1.112:53306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
# broker-id: 0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
signal
:
\ No newline at end of file
signal-control-service/src/main/resources/application-local.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32001
servlet
:
display-name
:
Wanji
context-path
:
/web
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
# url: jdbc:mysql://10.102.1.112:53306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
# broker-id: 0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
signal
:
\ No newline at end of file
signal-control-service/src/main/resources/application-prod.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32001
servlet
:
display-name
:
Wanji
context-path
:
/web
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
# url: jdbc:mysql://10.102.1.112:53306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://172.17.0.1:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
172.17.0.1:9092
#消费者配置
consumer
:
max-poll-records
:
1
# broker-id: 0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
signal
:
signal-control-service/src/main/resources/application-uat.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32001
servlet
:
display-name
:
Wanji
context-path
:
/web
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
# url: jdbc:mysql://10.102.1.112:53306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://172.17.0.1:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
# broker-id: 0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
signal
:
signal-control-service/src/main/resources/application.yml
deleted
100644 → 0
View file @
a38fadd5
spring
:
# dubbo启动需要程序名称
application
:
name
:
web
profiles
:
active
:
dev
jackson
:
mapper
:
accept_case_insensitive_properties
:
true
main
:
allow-circular-references
:
true
# allow-bean-definition-overriding: true
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
service
:
name
:
signal-control-service
mybatis
:
type-aliases-package
:
net.wanji.*.model
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapper
:
mappers
:
-
net.wanji.web.mapper.MyBaseMapper
not-empty
:
false
identity
:
MYSQL
pagehelper
:
helper-dialect
:
mysql
reasonable
:
false
# pagehelper分页 配置参数 supportMethodsArguments 建议不要全局设置
# https://www.cnblogs.com/liran123/p/12889093.html
support-methods-arguments
:
false
params
:
count=countSql
jasypt
:
encryptor
:
algorithm
:
PBEWithMD5AndDES
password
:
7F84150B6A114C48F0EA1158484BF63C
iv-generator-classname
:
org.jasypt.iv.NoIvGenerator
mybatis-plus
:
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.web.entity
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#开启SQL打印
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
#线程池配置
threadPoolConfig
:
threadPoolName
:
${spring.application.name}-threadPool-thread-%d
coreSize
:
8
maxSize
:
16
queueCapacity
:
200
keepAliveTime
:
6000
allowCoreTimeOut
:
false
#鉴权
security
:
oauth2
:
client
:
# client-id、client-secret 要和认证服务中的配置一致
client-id
:
identity
client-secret
:
identity-secret
# 授权码认证方式需要的
user-authorization-uri
:
http://172.17.0.1:17040/oauth/authorize
# 密码模式需要用到的获取 token 的接口
access-token-uri
:
http://172.17.0.1:17040/oauth/token
scope
:
all
# 备选列表 password client_credentials authorization_code
grant-type
:
password
authorization
:
# 当此服务端接收到来自客户端端的请求后,需要拿着请求中的 token 到认证服务端做 token 验证,就是请求的这个接口
check-token-access
:
http://172.17.0.1:17040/oauth/check_token
resource
:
jwt
:
key-uri
:
http://172.17.0.1:17040/oauth/token_key
key-value
:
dev
ignite-client
:
address
:
10.102.1.182:10800
\ No newline at end of file
signal-control-service/src/main/resources/bootstrap-dev.yaml
0 → 100644
View file @
8ea7a876
spring
:
application
:
# dubbo启动需要程序名称
name
:
web
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.182:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
nacos
main
:
allow-circular-references
:
true
\ No newline at end of file
signal-control-service/src/main/resources/bootstrap.yaml
0 → 100644
View file @
8ea7a876
spring
:
profiles
:
active
:
dev
\ No newline at end of file
signal-datacenter-service/pom.xml
View file @
8ea7a876
...
...
@@ -144,6 +144,7 @@
<groupId>
javax.el
</groupId>
<artifactId>
javax.el-api
</artifactId>
</dependency>
</dependencies>
<build>
...
...
signal-datacenter-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
39002
servlet
:
display-name
:
Wanji
context-path
:
/dataCenter
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
broker-id
:
0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
system
:
address
:
# UTC服务地址
utc
:
http://10.102.1.182:32000/utc
# control服务地址
control
:
http://10.102.1.182:32001/web
\ No newline at end of file
signal-datacenter-service/src/main/resources/application-prod.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
39002
servlet
:
display-name
:
Wanji
context-path
:
/dataCenter
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://172.17.0.1:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
172.17.0.1:9092
#消费者配置
consumer
:
max-poll-records
:
1
broker-id
:
0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
system
:
address
:
# UTC服务地址
utc
:
http://172.17.0.1:32000/utc
# control服务地址
control
:
http://172.17.0.1:32001/web
\ No newline at end of file
signal-datacenter-service/src/main/resources/application.yml
deleted
100644 → 0
View file @
a38fadd5
spring
:
# dubbo启动需要程序名称
application
:
name
:
dataCenter
profiles
:
active
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
main
:
allow-circular-references
:
true
server
:
undertow
:
url-charset
:
UTF-8
max-headers
:
-1
# 设置 HTTP POST 内容的最大长度,默认不做限制
# max-http-post-size: -1
max-http-post-size
:
4MB
threads
:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多
io
:
8
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8
worker
:
256
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可
buffer-size
:
1024
# 是否分配的直接内存(NIO直接分配的堆外内存)
direct-buffers
:
true
accesslog
:
# 是否打开 undertow 日志,默认为 false
enabled
:
true
# 设置访问日志所在目录
dir
:
logs
mybatis-plus
:
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.datacenter.pojo.po
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#开启SQL打印
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
# PageHelper分页插件
pagehelper
:
helperDialect
:
mysql
supportMethodsArguments
:
true
params
:
count=countSql
#线程池配置
threadPoolConfig
:
threadPoolName
:
${spring.application.name}-threadPool-thread-%d
coreSize
:
8
maxSize
:
16
queueCapacity
:
200
keepAliveTime
:
6000
allowCoreTimeOut
:
false
\ No newline at end of file
signal-datacenter-service/src/main/resources/bootstrap-dev.yaml
0 → 100644
View file @
8ea7a876
spring
:
application
:
# dubbo启动需要程序名称
name
:
dataCenter
main
:
allow-circular-references
:
true
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.182:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
nacos
\ No newline at end of file
signal-datacenter-service/src/main/resources/bootstrap.yaml
0 → 100644
View file @
8ea7a876
spring
:
profiles
:
active
:
dev
\ No newline at end of file
signal-feign-service/pom.xml
View file @
8ea7a876
...
...
@@ -33,5 +33,6 @@
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
</dependencies>
</project>
signal-optimize-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
39001
servlet
:
display-name
:
Wanji
context-path
:
/opt
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
#优化参数配置
crossOptParam
:
#车头间距
maxVehheadDist
:
20.0
minVehheadDist
:
7.0
defaultVehheadDist
:
9.0
#车头时距
maxVehheadTime
:
5.0
minVehheadTime
:
2.0
defaultVehheadTime
:
2.8
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
broker-id
:
0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
system
:
address
:
# UTC服务地址
utc
:
http://10.102.1.182:32000/utc
# control服务地址
control
:
http://10.102.1.182:32001/web
\ No newline at end of file
signal-optimize-service/src/main/resources/application-prod.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
39001
servlet
:
display-name
:
Wanji
context-path
:
/opt
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
#优化参数配置
crossOptParam
:
#车头间距
maxVehheadDist
:
20.0
minVehheadDist
:
7.0
defaultVehheadDist
:
9.0
#车头时距
maxVehheadTime
:
5.0
minVehheadTime
:
2.0
defaultVehheadTime
:
2.8
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_control_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://172.17.0.1:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
172.17.0.1:9092
#消费者配置
consumer
:
max-poll-records
:
1
broker-id
:
0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
system
:
address
:
# UTC服务地址
utc
:
http://172.17.0.1:32000/utc
# control服务地址
control
:
http://172.17.0.1:32001/web
signal-optimize-service/src/main/resources/application.yml
deleted
100644 → 0
View file @
a38fadd5
spring
:
application
:
name
:
signal-optimize-service
profiles
:
active
:
dev
jackson
:
mapper
:
accept_case_insensitive_properties
:
true
main
:
allow-circular-references
:
true
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
service
:
name
:
signal-optimize-service
mybatis
:
type-aliases-package
:
net.wanji.*.model
mapper-locations
:
classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
configuration
:
log-impl
:
org.apache.ibatis.logging.nologging.NoLoggingImpl
mapper
:
mappers
:
-
net.wanji.opt.dao.mapper.MyBaseMapper
not-empty
:
false
identity
:
MYSQL
pagehelper
:
helper-dialect
:
mysql
reasonable
:
false
# pagehelper分页 配置参数 supportMethodsArguments 建议不要全局设置
# https://www.cnblogs.com/liran123/p/12889093.html
support-methods-arguments
:
false
params
:
count=countSql
mybatis-plus
:
mapper-locations
:
classpath*:mapper/*.xml,classpath*:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.opt.po.base
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#SQL打印
log-impl
:
org.apache.ibatis.logging.nologging.NoLoggingImpl
#线程池配置
threadPoolConfig
:
threadPoolName
:
${spring.application.name}-threadPool-thread-%d
coreSize
:
8
maxSize
:
16
queueCapacity
:
200
keepAliveTime
:
6000
allowCoreTimeOut
:
false
signal-optimize-service/src/main/resources/bootstrap-dev.yaml
0 → 100644
View file @
8ea7a876
spring
:
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.182:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
nacos
application
:
# dubbo启动需要程序名称
name
:
signal-optimize-service
main
:
allow-circular-references
:
true
signal-optimize-service/src/main/resources/bootstrap.yaml
0 → 100644
View file @
8ea7a876
spring
:
profiles
:
active
:
dev
\ No newline at end of file
signal-utc-dt-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
39002
servlet
:
display-name
:
Wanji
context-path
:
/utc-dt
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
# 信号平台
signal
:
\ No newline at end of file
signal-utc-dt-service/src/main/resources/application.yml
deleted
100644 → 0
View file @
a38fadd5
spring
:
# dubbo启动需要程序名称
application
:
name
:
utc-dt
profiles
:
active
:
dev
jackson
:
mapper
:
accept_case_insensitive_properties
:
true
main
:
allow-circular-references
:
true
# allow-bean-definition-overriding: true
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
service
:
name
:
signal-utc-dt-service
mybatis
:
type-aliases-package
:
net.wanji.*.model
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mapper
:
mappers
:
-
net.wanji.web.mapper.MyBaseMapper
not-empty
:
false
identity
:
MYSQL
pagehelper
:
helper-dialect
:
mysql
reasonable
:
false
# pagehelper分页 配置参数 supportMethodsArguments 建议不要全局设置
# https://www.cnblogs.com/liran123/p/12889093.html
support-methods-arguments
:
false
params
:
count=countSql
jasypt
:
encryptor
:
algorithm
:
PBEWithMD5AndDES
password
:
7F84150B6A114C48F0EA1158484BF63C
iv-generator-classname
:
org.jasypt.iv.NoIvGenerator
mybatis-plus
:
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.web.entity
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#开启SQL打印
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
#线程池配置
threadPoolConfig
:
threadPoolName
:
${spring.application.name}-threadPool-thread-%d
coreSize
:
8
maxSize
:
16
queueCapacity
:
200
keepAliveTime
:
6000
allowCoreTimeOut
:
false
#东土通讯端口配置
portParam
:
localPort
:
5051
remotePort
:
5050
signal-utc-dt-service/src/main/resources/bootstrap-dev.yaml
0 → 100644
View file @
8ea7a876
spring
:
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.182:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
nacos
application
:
# dubbo启动需要程序名称
name
:
utc-dt
main
:
allow-circular-references
:
true
signal-utc-dt-service/src/main/resources/bootstrap.yaml
0 → 100644
View file @
8ea7a876
spring
:
profiles
:
active
:
dev
\ No newline at end of file
signal-utc-service/src/main/resources/application-dev.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32000
servlet
:
context-path
:
/utc
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
5
# 测试信号平台
signal
:
# true测试不执行方案下发 重点
mock
:
false
# 厂商接口
manufacturer
:
hk
:
# 服务地址
artemisHost
:
10.102.1.183
# 接口服务验证用户名
artemisAppKey
:
20893705
# 接口服务验证密钥
artemisAppSecret
:
jwr6D6h8xcZbgjqiwe6G
# 海康能力开放平台的网站路径
artemisPath
:
/artemis
signal-utc-service/src/main/resources/application-local.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32000
servlet
:
context-path
:
/utc
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
5
# 测试信号平台
signal
:
# true测试不执行方案下发 重点
mock
:
false
# 厂商接口
manufacturer
:
hk
:
# 服务地址
artemisHost
:
10.102.1.183
# 接口服务验证用户名
artemisAppKey
:
20893705
# 接口服务验证密钥
artemisAppSecret
:
jwr6D6h8xcZbgjqiwe6G
# 海康能力开放平台的网站路径
artemisPath
:
/artemis
signal-utc-service/src/main/resources/application-prod.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32000
servlet
:
context-path
:
/utc
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
5
# 生产环境信号平台
signal
:
# true测试不执行方案下发 重点
mock
:
false
# 厂商接口
manufacturer
:
hk
:
# 服务地址
artemisHost
:
10.102.1.183
# 接口服务验证用户名
artemisAppKey
:
20893705
# 接口服务验证密钥
artemisAppSecret
:
jwr6D6h8xcZbgjqiwe6G
# 海康能力开放平台的网站路径
artemisPath
:
/artemis
signal-utc-service/src/main/resources/application-uat.yml
deleted
100644 → 0
View file @
a38fadd5
server
:
port
:
32000
servlet
:
context-path
:
/utc
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://172.17.0.1:3306/t_signal_utc_changsha?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
redis
:
host
:
172.17.0.1
port
:
6379
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
5
# 生产环境信号平台
signal
:
# true测试不执行方案下发 重点
mock
:
false
# 厂商接口
manufacturer
:
hk
:
# 服务地址
artemisHost
:
10.102.1.176
# 接口服务验证用户名
artemisAppKey
:
21882146
# 接口服务验证密钥
artemisAppSecret
:
iYwMHJSo7CAX62TjyGEb
# 海康能力开放平台的网站路径
artemisPath
:
/artemis
signal-utc-service/src/main/resources/application.yml
deleted
100644 → 0
View file @
a38fadd5
spring
:
# dubbo启动需要程序名称
application
:
name
:
utc
profiles
:
active
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
main
:
allow-circular-references
:
true
server
:
undertow
:
url-charset
:
UTF-8
max-headers
:
-1
# 设置 HTTP POST 内容的最大长度,默认不做限制
# max-http-post-size: -1
max-http-post-size
:
4MB
threads
:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多
io
:
8
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8
worker
:
256
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可
buffer-size
:
1024
# 是否分配的直接内存(NIO直接分配的堆外内存)
direct-buffers
:
true
accesslog
:
# 是否打开 undertow 日志,默认为 false
enabled
:
true
# 设置访问日志所在目录
dir
:
logs
mybatis-plus
:
mapper-locations
:
classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.utc.entity
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#开启SQL打印
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
# PageHelper分页插件
pagehelper
:
helperDialect
:
mysql
supportMethodsArguments
:
true
params
:
count=countSql
#线程池配置
threadPoolConfig
:
threadPoolName
:
${spring.application.name}-threadPool-thread-%d
coreSize
:
8
maxSize
:
16
queueCapacity
:
200
keepAliveTime
:
6000
allowCoreTimeOut
:
false
signal-utc-service/src/main/resources/bootstrap-dev.yaml
0 → 100644
View file @
8ea7a876
spring
:
application
:
# dubbo启动需要程序名称
name
:
utc
main
:
allow-circular-references
:
true
cloud
:
nacos
:
config
:
server-addr
:
10.102.1.182:8848
file-extension
:
yaml
group
:
signal
namespace
:
signal
username
:
nacos
password
:
nacos
\ No newline at end of file
signal-utc-service/src/main/resources/bootstrap.yaml
0 → 100644
View file @
8ea7a876
spring
:
profiles
:
active
:
dev
\ No newline at end of file
wj-common/pom.xml
View file @
8ea7a876
...
...
@@ -23,7 +23,7 @@
<fastjson.version>
1.2.56
</fastjson.version>
<dom4j.version>
1.6.1
</dom4j.version>
<ws.rs.version>
2.1.1
</ws.rs.version>
<dubbo.version>
2
.2.2.RELEASE
</dubbo.version>
<dubbo.version>
2
021.0.1.0
</dubbo.version>
</properties>
<dependencies>
...
...
wj-databus/pom.xml
View file @
8ea7a876
...
...
@@ -31,6 +31,15 @@
<groupId>
org.apache.tomcat.embed
</groupId>
<artifactId>
tomcat-embed-core
</artifactId>
</dependency>
<!--Nacos 配置中心-->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-bootstrap
</artifactId>
</dependency>
</dependencies>
<build>
...
...
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