This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 6961c1af470 Fix platform-http reload issues (#1298) 6961c1af470 is described below commit 6961c1af470eeedd9205bcb39ee1576bb85e4594 Author: Federico Mariani <34543311+cro...@users.noreply.github.com> AuthorDate: Fri Nov 29 17:58:42 2024 +0100 Fix platform-http reload issues (#1298) --- .../component/platform/http/springboot/CamelRequestHandlerMapping.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/CamelRequestHandlerMapping.java b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/CamelRequestHandlerMapping.java index b528eecd3b1..33f43b30e8f 100644 --- a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/CamelRequestHandlerMapping.java +++ b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/CamelRequestHandlerMapping.java @@ -79,6 +79,9 @@ public class CamelRequestHandlerMapping extends RequestMappingHandlerMapping imp Method m = ReflectionHelper.findMethod(SpringBootPlatformHttpConsumer.class, "service", HttpServletRequest.class, HttpServletResponse.class); for (RequestMappingInfo info : requestMappingInfos) { + // Needed in case of context reload + unregisterMapping(info); + registerMapping(info, model.getConsumer(), m); } }