![]() m.m.a.ExceptionHandlerExceptionResolver : Failed to invoke method: public final .(.NoHandlerFoundException.request.WebRequest) There seems to be a secondary SimpleUrlHandlerMapping in the one that works, which is catching the static resources. maps to ExceptionHandlerExceptionResolver.SimpleUrlHandlerMapping (again - different instance).Weirdly, different *HandlerMapping classes are checked on each. ![]() On the one that does not work, trace logging says:ġ5:04:53.713 TRACE .DispatcherServlet - Testing handler map in DispatcherServlet with name 'dispatcherServlet' 15:04:53.715 TRACE .handler.SimpleUrlHandlerMapping - No handler mapping found for 15:04:53.715 TRACE .DispatcherServlet - Testing handler map in DispatcherServlet with name 'dispatcherServlet' 15:04:53.715 DEBUG. - Looking up handler method for path /swagger-ui.html 15:04:53.727 DEBUG. - Did not find handler method for 15:04:53.727 TRACE .DispatcherServlet - Testing handler map in DispatcherServlet with name 'dispatcherServlet' 15:04:53.727 DEBUG. - Looking up handler method for path /swagger-ui.html 15:04:53.735 DEBUG. - Resolving exception from handler : : Request method 'GET' not supported On the one that works, trace logging says:ġ5:09:02.411 TRACE .DispatcherServlet - Testing handler map in DispatcherServlet with name 'dispatcherServlet' 15:09:02.411 DEBUG .handler.SimpleUrlHandlerMapping - Matching patterns for request are 15:09:02.412 DEBUG .handler.SimpleUrlHandlerMapping - URI Template variables for request are 15:09:02.415 DEBUG .handler.SimpleUrlHandlerMapping - Mapping to HandlerExecutionChain with handler, class path resource, class path resource, class path resource, class path resource ], and 1 interceptor 15:09:02.416 TRACE .DispatcherServlet - Testing handler adapter 15:09:02.416 TRACE .DispatcherServlet - Testing handler adapter 15:09:02.416 DEBUG .DispatcherServlet - Last-Modified value for is: -1 15:09:02.416 TRACE .resource.ResourceHttpRequestHandler - Applying "invalid path" checks to path: swagger-ui.html 15:09:02.417 TRACE .resource.PathResourceResolver - Resolving resource: requestPath="swagger-ui.html" 15:09:02.417 TRACE .resource.PathResourceResolver - Checking location: ServletContext resource 15:09:02.418 TRACE .resource.PathResourceResolver - No match for location: ServletContext resource 15:09:02.418 TRACE .resource.PathResourceResolver - Checking location: class path resource 15:09:02.418 TRACE .resource.PathResourceResolver - Found match: class path resource 15:09:02.419 TRACE .resource.ResourceHttpRequestHandler - Determined media type 'text/html' for class path resource One one, /swagger-ui.html returns a 405, on the other it works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |