当前位置:   article > 正文

【异常】SpringMVC提示ClassCastException: ResourceHttpRequestHandler cannot be cast to HandlerMethod

【异常】SpringMVC提示ClassCastException: ResourceHttpRequestHandler cannot be cast to HandlerMethod

一、报错内容

Caused by: java.lang.ClassCastException: org.springframework.web.servlet.resource.ResourceHttpRequestHandler cannot be cast to org.springframework.web.method.HandlerMethod
	at com.cccc.module.common.interceptor.SessionInterceptor.preHandle(SessionInterceptor.java:35)
	at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:148)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1062)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
	at org.springframework.web.servlet.FrameworkServlet.proce
  • 1
  • 2
  • 3
  • 4
  • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/604645
推荐阅读
相关标签
  

闽ICP备14008679号