Commit 8a706a2d9c27b5028c0315c1b810ff74eeec24f3
1 parent
e6e783d4
1、修改pom.xml,去除所有的log4j的相关依赖
2、修改dubbo相关配置文件,添加spring.dubbo.protocol相关配置
Showing
4 changed files
with
25 additions
and
0 deletions
pom.xml
| @@ -194,6 +194,12 @@ | @@ -194,6 +194,12 @@ | ||
| 194 | <groupId>net.sourceforge.jexcelapi</groupId> | 194 | <groupId>net.sourceforge.jexcelapi</groupId> |
| 195 | <artifactId>jxl</artifactId> | 195 | <artifactId>jxl</artifactId> |
| 196 | <version>2.6.12</version> | 196 | <version>2.6.12</version> |
| 197 | + <exclusions> | ||
| 198 | + <exclusion> | ||
| 199 | + <groupId>log4j</groupId> | ||
| 200 | + <artifactId>log4j</artifactId> | ||
| 201 | + </exclusion> | ||
| 202 | + </exclusions> | ||
| 197 | </dependency> | 203 | </dependency> |
| 198 | <dependency> | 204 | <dependency> |
| 199 | <groupId>rhino</groupId> | 205 | <groupId>rhino</groupId> |
| @@ -320,6 +326,10 @@ | @@ -320,6 +326,10 @@ | ||
| 320 | <version>3.4.5</version> | 326 | <version>3.4.5</version> |
| 321 | <exclusions> | 327 | <exclusions> |
| 322 | <exclusion> | 328 | <exclusion> |
| 329 | + <groupId>log4j</groupId> | ||
| 330 | + <artifactId>log4j</artifactId> | ||
| 331 | + </exclusion> | ||
| 332 | + <exclusion> | ||
| 323 | <groupId>org.slf4j</groupId> | 333 | <groupId>org.slf4j</groupId> |
| 324 | <artifactId>slf4j-log4j12</artifactId> | 334 | <artifactId>slf4j-log4j12</artifactId> |
| 325 | </exclusion> | 335 | </exclusion> |
| @@ -330,6 +340,12 @@ | @@ -330,6 +340,12 @@ | ||
| 330 | <groupId>com.101tec</groupId> | 340 | <groupId>com.101tec</groupId> |
| 331 | <artifactId>zkclient</artifactId> | 341 | <artifactId>zkclient</artifactId> |
| 332 | <version>0.3</version> | 342 | <version>0.3</version> |
| 343 | + <exclusions> | ||
| 344 | + <exclusion> | ||
| 345 | + <groupId>log4j</groupId> | ||
| 346 | + <artifactId>log4j</artifactId> | ||
| 347 | + </exclusion> | ||
| 348 | + </exclusions> | ||
| 333 | </dependency> | 349 | </dependency> |
| 334 | 350 | ||
| 335 | <!-- plan common工程依赖 --> | 351 | <!-- plan common工程依赖 --> |
src/main/resources/dubbo/config-dev.properties
| @@ -2,6 +2,9 @@ | @@ -2,6 +2,9 @@ | ||
| 2 | spring.dubbo.application.name=bsth_control_v_multi_service | 2 | spring.dubbo.application.name=bsth_control_v_multi_service |
| 3 | # zookeeper注册中心地址 | 3 | # zookeeper注册中心地址 |
| 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 | 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 |
| 5 | +# protocol配置 | ||
| 6 | +spring.dubbo.protocol.name=dubbo | ||
| 7 | +spring.dubbo.protocol.port=30881 | ||
| 5 | 8 | ||
| 6 | #----------- dubbo:consumer 性能调优选项 -------------# | 9 | #----------- dubbo:consumer 性能调优选项 -------------# |
| 7 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 | 10 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 |
src/main/resources/dubbo/config-prod.properties
| @@ -2,6 +2,9 @@ | @@ -2,6 +2,9 @@ | ||
| 2 | spring.dubbo.application.name=bsth_control_v_multi_service | 2 | spring.dubbo.application.name=bsth_control_v_multi_service |
| 3 | # zookeeper注册中心地址 | 3 | # zookeeper注册中心地址 |
| 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 | 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 |
| 5 | +# protocol配置 | ||
| 6 | +spring.dubbo.protocol.name=dubbo | ||
| 7 | +spring.dubbo.protocol.port=30881 | ||
| 5 | 8 | ||
| 6 | #----------- dubbo:consumer 性能调优选项 -------------# | 9 | #----------- dubbo:consumer 性能调优选项 -------------# |
| 7 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 | 10 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 |
src/main/resources/dubbo/config-prodtest.properties
| @@ -2,6 +2,9 @@ | @@ -2,6 +2,9 @@ | ||
| 2 | spring.dubbo.application.name=bsth_control_v2 | 2 | spring.dubbo.application.name=bsth_control_v2 |
| 3 | # zookeeper注册中心地址 | 3 | # zookeeper注册中心地址 |
| 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 | 4 | spring.dubbo.registry=zookeeper://127.0.0.1:2181 |
| 5 | +# protocol配置 | ||
| 6 | +spring.dubbo.protocol.name=dubbo | ||
| 7 | +spring.dubbo.protocol.port=30881 | ||
| 5 | 8 | ||
| 6 | #----------- dubbo:consumer 性能调优选项 -------------# | 9 | #----------- dubbo:consumer 性能调优选项 -------------# |
| 7 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 | 10 | # 远程服务调用超时时间,单位毫秒,这里设置30分钟 |