Stellar1999 commented on issue #15274: URL: https://github.com/apache/dubbo/issues/15274#issuecomment-2760470336
> > > > spring-boot-starter-web > > > > > > > > > Why an error occurs when spring-boot-starter-web is used? Will the problem be fixed? > > > > > > They both execute SpringMVC RequestMappingHandlerMapping. I don't think it's a Dubbo bug. We can consider optimizing it, but only as an optimization. > > I want it to be optimized. We need it. After communicating with others in the community, I realized that my previous explanation was incorrect, and I sincerely apologize for the misunderstanding. In fact, this error occurs because the @RequestMapping annotation is parsed by Spring's RequestMappingHandlerMapping, which causes both testServiceImpl and testService beans to be detected as duplicates. A better solution is to remove the @RequestMapping annotation from the class. -- 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