zhilaohu32 commented on issue #15274: URL: https://github.com/apache/dubbo/issues/15274#issuecomment-2760571727
> > > > > > > remove the [@RequestMapping](https://github.com/RequestMapping) annotation from the class. > > > > > > > > > > > > > > > > > > remove the [@RequestMapping](https://github.com/RequestMapping) annotation from the class. > > > > > > Unable to start after removing the [@RequestMapping](https://github.com/RequestMapping) annotation from the class > > > > > > > > > > > > > > > remove TestService [@RequestMapping](https://github.com/RequestMapping) > > > > > > > > > > > > I'm sure I've removed it, but it's still an error. > > > > [@RestController](https://github.com/RestController) > > > > public interface TestService { > > > > ``` > > > > @GetMapping(value = "/test/sayHello") > > > > String sayHello(@RequestParam(name = "name") String name); > > > > > > > > @PostMapping(value = "/test/sayHello2") > > > > String sayHello2(@RequestBody TestVO testVO); > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > } > > > > > > > > > I’m sorry.and remove [@RestController](https://github.com/RestController) > > > > > > A new error has occurred > > org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is java.lang.reflect.UndeclaredThrowableException > > This looks like a Spring Boot error. In fact, after removing all [@RequestMapping](https://github.com/RequestMapping) and [@RestController](https://github.com/RestController), it runs normally on my MacBook. ok,Will the problem be optimized? Make @ReqeustMapping and @RestController tagable? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org