Aithosa commented on issue #4572:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4572#issuecomment-2665648782

   我遇到了类似的情况:
   
   
consumer和provider都只引入了`solution-basic`,启动后consumer调用时报错,两边都加上`java-chassis-spring-boot-starter-standalone`就正常了,不过这个里面内容只有一个pom就比较奇怪。。。
   
   不用`solution-basic`只用`java-chassis-spring-boot-starter-standalone`也会报错
   
   
只引入了`solution-basic`时调用`http://127.0.0.1:8080/scb/management/schema/contents`,返回"message":
 "Method Not Allowed"。
   
   不过试的过程中也有两次只引入`solution-basic`也能成功调用provider,感觉很头疼。。。
   
   > 每次运行前都会clean然后在编译运行
   
   
**然后还有个疑问,consumer我看到是会调用provider的`/schema/contents`接口获取契约的,如果不引入`solution-basic`,会影响到接口调用吗?**
   
   启动类:
   ```java
   @SpringBootApplication
   public class TrustMain {
   
     public static void main(String[] args) {
       try {
         new SpringApplicationBuilder()
                 .web(WebApplicationType.NONE)
                 .sources(TrustMain.class)
                 .run(args);
       } catch (Exception e) {
         e.printStackTrace();
       }
     }
   }
   ```
   provider那边的接口用的`@RpcSchema(schemaId = "codeFirstCompute")`。
   
   
[provider.log](https://github.com/user-attachments/files/18845095/provider.log)
   
   
[consumer.txt](https://github.com/user-attachments/files/18844983/consumer.txt)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to