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
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]