You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "adriancole (GitHub)" <gi...@apache.org> on 2018/12/10 01:25:08 UTC

[GitHub] [incubator-dubbo-spring-boot-project] adriancole opened issue #322: Don't require EnableDubbo when your application is already annotated with Service

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 {
```



[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/322 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #322: Don't require EnableDubbo when your application is already annotated with Service

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/322 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] adriancole commented on issue #322: Don't require EnableDubbo when your application is already annotated with Service

Posted by "adriancole (GitHub)" <gi...@apache.org>.
can you please try? I was unable to have the service advertised until I added ` @EnableDubbo` this is the only reason I took time to raise the issue

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/322 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #322: Don't require EnableDubbo when your application is already annotated with Service

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
The `@EnableDubbo` is not a required annotation for Spring Boot, and was included in `dubbo-config-spring`.

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/322 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org