Stellar1999 commented on issue #15274:
URL: https://github.com/apache/dubbo/issues/15274#issuecomment-2760555107

   > > > > > > 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 and @RestController, it runs normally on my MacBook.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to