org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry异常的解决方法
2017-12-22 10:40
686 查看
使用基于注解的AOP的时候报出异常,导致服务不能启动:
同样的方法在之前写的其他工程里是没问题的,查找一些资料说是Spring与aspectJ的版本不兼容导致的,我的aspectJ版本是1.8.10,Spring的版本是4.2.7.RELEASE,有两种方案:
1.升级Spring的版本,有说法是升级到4.3.5以上,试了报出其他的错误,没有继续尝试;
2.降级aspectJ的版本为1.8.9或升级到1.8.11,尝试了可行。参考:https://jira.spring.io/browse/SPR-15019
Expected raw type form of org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry
同样的方法在之前写的其他工程里是没问题的,查找一些资料说是Spring与aspectJ的版本不兼容导致的,我的aspectJ版本是1.8.10,Spring的版本是4.2.7.RELEASE,有两种方案:
1.升级Spring的版本,有说法是升级到4.3.5以上,试了报出其他的错误,没有继续尝试;
2.降级aspectJ的版本为1.8.9或升级到1.8.11,尝试了可行。参考:https://jira.spring.io/browse/SPR-15019
相关文章推荐
- spring:org.springframework.web.servlet.DispatcherServlet noHandlerFound解决方法
- org.springframework.web.servlet.handler.SimpleUrlHanderMapping异常处理
- Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'webSocketHan
- org.springframework.web.se rvlet.DispatcherServlet.noHandlerFound No mapping found for HTTP request
- 废弃的org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
- org.springframework.web.servlet.PageNotFound noHandlerFound 警告: No mapping found for HTTP request w
- 二月 14, 2018 2:00:20 下午 org.springframework.web.servlet.PageNotFoundnoHandlerFound 警告: No mapping fou
- org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告: No mapping found for HTTP reque
- spring MVC关于org.springframework.web.servlet.handler.SimpleUrlHandlerMapping的使用
- 解决SpringMvc中org.springframework.web.servlet.DispatcherServlet noHandlerFound的错误
- org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
- Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
- [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver]-[DEBUG] Re
- 废弃的org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
- 解决SpringMvc中org.springframework.web.servlet.DispatcherServlet noHandlerFound的错误
- org.springframework.web.servlet.PageNotFound noHandlerFound错误原因
- SpringMVC环境搭建问题:org.springframework.web.servlet.DispatcherServlet noHandlerFound
- org.springframework.web.servlet.DispatcherServlet noHandlerFound
- [无异常,才正常]java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
- org.springframework.web.servlet.DispatcherServlet noHandlerFound