You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support for Dubbo's Service Provider in Spring Web MVC application without any @Controller.
Service Provider demo code :
@Service(
version = "${demo.service.version}",
application = "${dubbo.application.id}",
protocol = "${dubbo.protocol.id}",
registry = "${dubbo.registry.id}"
)
@RestServicepublicclassDefaultDemoServiceimplementsDemoService {
@RequestMapping("/say-hello")
publicStringsayHello(Stringname) {
return"Hello, " + name + " (from Spring Boot)";
}
}
@RestService that is a meta-annotation declares current Dubbo's service exporting HTTP REST under Spring WebMVC, and it's required enabled by @EnableRestService in your @Configuration class , as follow:
Adding support for Dubbo's Service Provider in Spring Web MVC application without any
@Controller
.Service Provider demo code :
@RestService
that is a meta-annotation declares current Dubbo's service exporting HTTP REST under Spring WebMVC, and it's required enabled by@EnableRestService
in your@Configuration
class , as follow:The text was updated successfully, but these errors were encountered: