Skip to content

Commit

Permalink
Fix context reload in platform-http component
Browse files Browse the repository at this point in the history
  • Loading branch information
Croway committed Dec 2, 2024
1 parent d5978c1 commit 6539ff5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public void registerHttpEndpoint(HttpEndpointModel model) {
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);
}
}
Expand Down

0 comments on commit 6539ff5

Please sign in to comment.