Commit 6ae9d134f35a1990914c59108b0b1dc33a52e9e9

Authored by 徐烜
1 parent 715eb08b

iss提交3:

1、在applicationContext_dubbo_consumer.xml中添加日志服务定义
2、在applicationContext_dubbo_consumer.xml中添加排班明细查询服务
3、前两次提交是iss提交2和iss提交1,之后要cherry-pick到pudong主分支时注意顺序
src/main/resources/application-dev.properties
1 server.port=9088 1 server.port=9088
2 -management.port= 9001  
3 -management.address= 127.0.0.1 2 +#management.port= 9001
  3 +#management.address= 127.0.0.1
  4 +management.security.enabled=false
  5 +management.context-path=/manage
  6 +
  7 +# dubbo服务化使用开关flag
  8 +dubbo.use=true
4 9
5 spring.jpa.hibernate.ddl-auto= update 10 spring.jpa.hibernate.ddl-auto= update
6 spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy 11 spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy
src/main/resources/dubbo/applicationContext_dubbo_consumer.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
  3 + xsi:schemaLocation="http://www.springframework.org/schema/beans
  4 + http://www.springframework.org/schema/beans/spring-beans.xsd
  5 + http://code.alibabatech.com/schema/dubbo
  6 + http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
  7 +
  8 + <!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
  9 + <dubbo:application name="bsth_control_v2" />
  10 +
  11 + <!-- 使用zookeeper注册中心暴露服务地址 -->
  12 + <!-- 注册中心地址 -->
  13 + <dubbo:registry protocol="zookeeper" address="127.0.0.1:2181" check="false" />
  14 +
  15 + <!-- 时刻表班型明细服务 -->
  16 + <dubbo:reference interface="com.bsth.control_v2.plan_module.common.service.schedule.timetable.TTInfoBxDetailServiceFacade" id="tTInfoBxDetailServiceFacadeImpl" check="false" />
  17 + <!-- 时刻表明细服务 -->
  18 + <dubbo:reference interface="com.bsth.control_v2.plan_module.common.service.schedule.timetable.TTInfoDetailServiceFacade" id="tTInfoDetailServiceFacadeImpl" check="false" />
  19 + <!-- 日志服务 -->
  20 + <dubbo:reference interface="com.bsth.control_v2.plan_module.common.service.log.LogServiceFacade" id="logServiceFacadeImpl" check="false" />
  21 +
  22 + <!-- TODO:还有其他排班计划服务 -->
  23 + <!-- 排班明细查询服务 -->
  24 + <dubbo:reference interface="com.bsth.control_v2.plan_module.common.service.schedule.PlanInfoServiceFacade" id="planInfoServiceFacadeImpl" check="false" />
  25 +
  26 +</beans>
0 \ No newline at end of file 27 \ No newline at end of file