maven测试以及一些开发上遇到的问题

来源:互联网 发布:杭州java培训班多少钱 编辑:程序博客网 时间:2024/05/21 20:27
@Slf4j@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = "classpath:applicationContext_test.xml")public class TestInsertIntoStock {@Autowiredprivate PubService pubService;static {HSFEasyStarter.startFromPath(TestConstants.HSF_PATH);}


public interface TestConstants {public static final String HSF_PATH="D:/taobao-tomcat-7.0.59/deploy";}


Caused by: HSFServiceAddressNotFoundException-Desc info:[HSF-Consumer] The target address of the service that needs to be called is not found:com.bosideng.bsdyun.stock.service.IscCorpStockService:1.0.5_dev group:bsdHSFGroupTest ERR-CODE: [HSF-0001], Type: [ENV Problems], More: [http://console.taobao.net/help/HSF-0001]  at com.taobao.hsf.remoting.service.RPCProtocolTemplateComponent.invoke0(RPCProtocolTemplateComponent.java:456)  at com.taobao.hsf.remoting.service.RPCProtocolTemplateComponent.invokeWithMethodObject(RPCProtocolTemplateComponent.java:210)  at com.taobao.hsf.process.component.ProcessComponent$HSFServiceProxy.trueInvoke(ProcessComponent.java:309)  at com.taobao.hsf.process.component.ProcessComponent$HSFServiceProxy.invoke(ProcessComponent.java:294)  ... 43 more


这个错误是因为服务中心的代码没有部署到开发环境

0 0
原创粉丝点击