You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "tyler-whz (GitHub)" <gi...@apache.org> on 2018/11/14 10:17:15 UTC

[GitHub] [incubator-dubbo-spring-boot-project] tyler-whz opened issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235


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


[GitHub] [incubator-dubbo-spring-boot-project] li-keli commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "li-keli (GitHub)" <gi...@apache.org>.
@mercyblitz 
Hello, I'm not in Dubbo 2.6.5 version found ` @Service ` separate`protocols` of members, only to find the`protocol`

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


[GitHub] [incubator-dubbo-spring-boot-project] li-keli commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "li-keli (GitHub)" <gi...@apache.org>.
@mercyblitz 
Hello, I'm not in Dubbo 2.6.5 version found ` @Service ` separate`protocols` of members, only to find the`protocol`

#257 

我在springboot中直接开放web容器来实现http协议的支持,但是无法在dubbo中注册。希望组织上考虑一下把这个问题解决一下

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

[GitHub] [incubator-dubbo-spring-boot-project] li-keli commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "li-keli (GitHub)" <gi...@apache.org>.
@mercyblitz 
Hello, I'm not in Dubbo 2.6.5 version found ` @ Service ` separate`protocols` of members, only to find the`protocol`

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


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

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/305 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-spring-boot-project] tyler-whz commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "tyler-whz (GitHub)" <gi...@apache.org>.
现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种?新版本已经有计划了吗?

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

[GitHub] [incubator-dubbo-spring-boot-project] eonezhang commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "eonezhang (GitHub)" <gi...@apache.org>.
how can I invoke a rest service by http protocol.
here is my declaration
```
<dubbo:protocol name="rest" port="28080" server="netty" />
```

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


[GitHub] [incubator-dubbo-spring-boot-project] netsail commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "netsail (GitHub)" <gi...@apache.org>.
期待支持多协议配置!

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

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
It's will be planned and supported.

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


[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
You can export two protocols, please add those properties to your `application.properties`:

```properties
dubbo.protocols.dubbo.name = dubbo
dubbo.protocols.dubbo.port = 20880

dubbo.protocols.rest.name = rest
dubbo.protocols.rest.port = 8080
```

Then, declare above protocols on `@Service`:

```java
@Service(protocols={"dubbo","rest"})
public class UserServiceImpl implement UserService {
    @GET
    @Path("{id : \\d+}")
    @Produces({MediaType.APPLICATION_JSON})
    public User getUser(@PathParam("id") Long id) {
        // ...
    }
}
```

`UserServiceImpl` will be exported "dubbo" and "rest" services for consumers.






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


[GitHub] [incubator-dubbo-spring-boot-project] songzeyangHello commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "songzeyangHello (GitHub)" <gi...@apache.org>.
什么时候支持的呢?

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

[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
@eonezhang You could invoke this rest service by Http Client

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


[GitHub] [incubator-dubbo-spring-boot-project] li-keli commented on issue #305: 现在dubbo已经支持REST,这个配置怎么时间跟进,同时发布RPC和REST服务那种#235

Posted by "li-keli (GitHub)" <gi...@apache.org>.
@mercyblitz 
Hello, I'm not in Dubbo 2.6.5 version found ` @Service ` separate`protocols` of members, only to find the`protocol`

#257

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