错误信息
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'SpFilterWrapper' defined in class path resource [org/jeecg/config/shiro/SsoFilterRegistration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'SpFilterWrapper' threw exception;
nested exception is java.lang.NoClassDefFoundError: org/loushang/bsp/security/sp/service/SpFilterWrapper
解决方案
在启动类Application.java中 使用注解导入ben类
@Import(value = {SpFilterWrapper.class})