johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484801596
 
 
   I know the reason. 
   
   I wanted to use different microservice.yaml in different  test case.
   so I set the "servicecomb.configurationSource.defaultFileName" to different 
name in different test case.
   
   so the microservice.yaml in java-chassis-core-1.xx.xx.jar is missed,  which 
contains "servicecomb.microserviceVersionFactory",  so it use the 
"DefaultMicroserviceVersionFactory".
   
   我找到原因了, 我是想在不同的测试用例里使用不同的microservice.yaml , 
所以我想在每次测试用例之前改下"servicecomb.configurationSource.defaultFileName”  以达到目的。
   
   但是因为修改"servicecomb.configurationSource.defaultFileName,导致 
java-chassis-core-1.xx.xx.jar包里的 microservice.yaml没有加载。 
而这个microservice.yaml包含servicecomb.microserviceVersionFactory=org.apache.servicecomb.core.definition.PrivateMicroserviceVersionMetaFactory的配置。
   
   既然microservice.yaml的名字可以换,servicecomb包里又预置microservice.yaml好像,是不是有点不太合适?
   
   此外我想在不同的单元测试用例里使用不同的微服务配置, 官方有什么好的建议呢?
   
   
   
   
   
   
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to