定义了如下接口:
1 2 3 4 5 |
|
在Spring Boot下能够正常调用,切换CSE框架后,报告如下错误:
o.a.s.c.rest.locator.OperationLocator : locate path failed, status:Not Found, http method:GET, path:/v1/user111/ping/, microserviceName:user-service
出现这个原因是因为这个接口不是public的, CSE约束所有发布为接口的方法,必须是public,而spring boot则没这个限制。