ssm框架配置mvc的过滤器就报错了
在使用mvc的过滤器对访问请求进行过滤的时候,会发生bean报错
贴出源码
引入的包
过滤的代码
mvc过滤器的配置
文件目录
报错代码
Logging initialized using ‘class org.apache.ibatis.logging.stdout.StdOutImpl’ adapter.
20:03:24.215 [RMI TCP Connection(3)-127.0.0.1] ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#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 ‘com.cqg4.crm.settings.web.interceptor.LoginInterceptor#0’ of type [com.cqg4.crm.settings.web.interceptor.LoginInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cqg4.crm.settings.web.interceptor.LoginInterceptor] for bean with name ‘com.cqg4.crm.settings.web.interceptor.LoginInterceptor#0’ defined in class path resource [applicationContext-mvc.xml]; nested exception is java.lang.ClassNotFoundException: com.cqg4.crm.settings.web.interceptor.LoginInterceptor