`
第一次写文章
下面展示一些 内联代码片
。
就记录一下学习javaweb时出现的bug吧:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#3': Unsatisfied dependency expressed through constructor parameter 2: Could not convert argument value of type [com.funtl.my.shop.web.admin.web.interceptor.PermisssionInterceptor] to required type [org.springframework.web.context.request.WebRequestInterceptor]: Failed to convert value of type 'com.funtl.my.shop.web.admin.web.interceptor.PermisssionInterceptor' to required type 'org.springframework.web.context.request.WebRequestInterceptor'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'com.funtl.my.shop.web.admin.web.interceptor.PermisssionInterceptor' to required type 'org.springframework.web.context.request.WebRequestInterceptor': no matching editors or conversion strategy found
**报Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#3’的错误,最后经过仔细检查,发现
public class PermisssionInterceptor没有实现HandlerInterceptor的接口。
**
实现HandlerInterceptor接口后成功解决