You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Byron4j (GitHub)" <gi...@apache.org> on 2020/01/17 03:35:24 UTC
[GitHub] [dubbo] Byron4j opened issue #5679: why
org.apache.dubbo.config.AbstractInterfaceConfig#setApplication is
`@Deprecated`?
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.5
* Operating System version: Win10
* Java version: JDK8
### Steps to reproduce this issue
1. use dubbo API show provider application
```
ServiceConfig<GreetingsService> service = new ServiceConfig<>();
service.setApplication(new ApplicationConfig("first-dubbo-provider"));
```
3. but find this method is annotated by `@Deprecated`
If i want to show a demo with dubbo API to my students, where can i find a method which with no `@Deprecated` ?
-------
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
[ Full content available at: https://github.com/apache/dubbo/issues/5679 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org