今天想写拦截器,但是出现问题。一直报org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Cannot create inner bean 'interceptor.PermissionInterceptor#0' of type [interceptor.PermissionInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [interceptor.PermissionInterce ptor] for bean with name 'interceptor.PermissionInterceptor#0' defined in file [D:\Documents\eclipseProjects\SIMS\target\SIMS-0.0.1-SNAPSHOT\WEB-INF\classes\spring-web.xml]; nested exception is java.lang.ClassNotFoundException: interceptor.PermissionInterceptor
配置文件中写的是我自己想写的拦截器类PermissionInterceptor就不行,换成springwebjar包下的interceptor类就可以启动不报错,请问这是什么原因?怎么样才能用我自己写的interceptor。(注:同事说jdk换成1.8就好了,我的jdk是1.6,1.6也支持interceptor哇,求大神给讲讲)
求解:<mvc:interceptors>标签问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答
悬赏问题
- ¥60 求一个简单的网页(标签-安全|关键词-上传)
- ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
- ¥15 基于卷积神经网络的声纹识别
- ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
- ¥100 为什么这个恒流源电路不能恒流?
- ¥15 有偿求跨组件数据流路径图
- ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
- ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
- ¥15 一直显示正在等待HID—ISP
- ¥15 Python turtle 画图