Commit d6a3d89842e7003557a690d02ccbc5568b48de20
1 parent
d9d872f5
1、添加dubbo的config-prod.properties配置
2、修改application-dev配置,修改dubbo=false,方便测试
Showing
2 changed files
with
14 additions
and
1 deletions
src/main/resources/application-dev.properties
| @@ -5,7 +5,7 @@ management.security.enabled=false | @@ -5,7 +5,7 @@ management.security.enabled=false | ||
| 5 | management.context-path=/manage | 5 | management.context-path=/manage |
| 6 | 6 | ||
| 7 | # dubbo服务化使用开关flag | 7 | # dubbo服务化使用开关flag |
| 8 | -dubbo.use=true | 8 | +dubbo.use=false |
| 9 | 9 | ||
| 10 | spring.jpa.hibernate.ddl-auto= update | 10 | spring.jpa.hibernate.ddl-auto= update |
| 11 | spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | 11 | spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy |
src/main/resources/dubbo/config-prod.properties
| 1 | +# application名字 | ||
| 2 | +spring.dubbo.application.name=bsth_control_v2 | ||
| 3 | +# zookeeper注册中心地址 | ||
| 4 | +spring.dubbo.registry=zookeeper://127.0.0.1:2181 | ||
| 5 | + | ||
| 6 | +#----------- dubbo:consumer 性能调优选项 -------------# | ||
| 7 | +# 远程服务调用超时时间,单位毫秒,这里设置30分钟 | ||
| 8 | +spring.dubbo.consumer.timeout=1800000 | ||
| 9 | +# 远程服务调用重试次数,0表示不需要重试 | ||
| 10 | +spring.dubbo.consumer.retries=0 | ||
| 11 | +#----------- dubbo:consumer 服务治理选项 -------------# | ||
| 12 | +# 启动不检查提供者是否存在 | ||
| 13 | +spring.dubbo.consumer.check=false | ||
| 0 | \ No newline at end of file | 14 | \ No newline at end of file |