You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/12/10 01:25:08 UTC
[GitHub] adriancole opened a new issue #322: Don't require EnableDubbo when
your application is already annotated with Service
adriancole opened a new issue #322: Don't require EnableDubbo when your application is already annotated with Service
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/322
Goal of autoconfiguration is least work of user. In the other plugin, it can detect if it needs to start dubbo or not if there is an annotation. This starter requires me to redundantly add an annotation. I want dubbo to feel just as easy as other frameworks, and least work possible.
Please change so instead of this:
```java
@EnableAutoConfiguration
@EnableDubbo
@Service(interfaceClass = Api.class)
public class Backend implements Api {
```
I can skip the `@EnableDubbo` like this:
```java
@EnableAutoConfiguration
@Service(interfaceClass = Api.class)
public class Backend implements Api {
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org