Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeStyleNotSupportException,only support [jax-rs, spring-webmvc] annotation #13801

Closed
yx-Yaoxaing opened this issue Feb 27, 2024 · 6 comments

Comments

@yx-Yaoxaing
Copy link

@service
@slf4j
public class ProcedureGuideServiceImpl implements ProcedureGuideService {

}

@DubboService
public class RpcProcedureGuideService extends ProcedureGuideServiceImpl {
}

org.apache.dubbo.rpc.protocol.rest.exception.CodeStyleNotSupportException: service is: interface com.cqnews.xindian.api.service.gov.ProcedureGuideService, only support [jax-rs, spring-webmvc] annotation

org.apache.dubbo dubbo-spring-boot-starter 3.2.11
@yx-Yaoxaing
Copy link
Author

是不应该这样使用继承的方式去使用@DubboService

@yx-Yaoxaing
Copy link
Author

消费端的代码:

@DubboReference(check = false)
public ProcedureGuideService procedureGuideService;

然后消费端就报错:only support [jax-rs, spring-webmvc] annotation
但是不影响调用 能正常调用。

@AlbumenJ AlbumenJ changed the title org.apache.dubbo.rpc.protocol.rest.exception.CodeStyleNotSupportException: service is: interface com.cqnews.xindian.api.service.gov.ProcedureGuideService, only support [jax-rs, spring-webmvc] annotation CodeStyleNotSupportException,only support [jax-rs, spring-webmvc] annotation Feb 28, 2024
@AlbumenJ
Copy link
Member

@suncairong163 PTAL

@suncairong163
Copy link
Contributor

@suncairong163 PTAL

This case has been supported in the PR of #12700 ,But i can not find relative code aboute #12700 PR,Need merge or PR again?

@suncairong163
Copy link
Contributor

消费端的代码:

@DubboReference(check = false) public ProcedureGuideService procedureGuideService;

然后消费端就报错:only support [jax-rs, spring-webmvc] annotation 但是不影响调用 能正常调用。

Dubbo code style is not support at 3.2

@wangqing-github
Copy link

最后解决了吗,是不是版本的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants