提问人:kim 提问时间:11/18/2023 更新时间:11/18/2023 访问量:17
SpringBoot3.1.5 - RequestMappingHandlerMapping映射重复
SpringBoot3.1.5 - RequestMappingHandlerMapping Repetition
问:
迁移到 Spring 3.1.5 后,RequestMapping HandlerMapping 会重复发生。我不认为这是正常情况,我可以征求你的意见吗?
下面是 API 调用后立即显示的日志。
我不认为这是浏览器问题,因为我是作为邮递员做的
我不确定为什么 getHandler 继续在日志级调试模式或更高模式下遍历,导致总共 9 个日志。
我正在单独学习,但这部分让我很困扰。请帮帮我ᅮ_ᅲ
2023-11-18T01:43:47.678+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.679+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.679+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.679+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.680+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.680+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.680+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.680+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.681+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
2023-11-18T01:43:47.681+09:00 DEBUG 89627 --- [p-nio-80-exec-4] o.s.web.servlet.DispatcherServlet : GET "/api/v1/member/info", parameters={}
2023-11-18T01:43:47.681+09:00 DEBUG 89627 --- [p-nio-80-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.template.server.domain.member.controller.MemberController#getMemberInfo(Authentication)
是过滤器问题吗?
答: 暂无答案
评论