org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘shiroFilter’ defined in class path resource [spring-shiro.xml]:
Cannot resolve reference to bean ‘securityManager’ while setting bean property ‘securityManager’;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘securityManager’ defined in class path resource [spring-shiro.xml]:
Cannot resolve reference to bean ‘sessionManager’ while setting bean property ‘sessionManager’;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘sessionManager’ defined in class path resource [spring-shiro.xml]:
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property ‘sessionIdUrlRewritingEnabled’ of bean class [org.apache.shiro.web.session.mgt.DefaultWebSessionManager]:
Bean property ‘sessionIdUrlRewritingEnabled’ is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
项目里有许多jar都飘红,明明引入了,但是还是提醒can‘t resolve symbol ***
**
接下来就是解决方法:
**
很多报错的jar我都是删了,又引入好多遍,神奇的是有的提示没有的jar,我把maven库里的jar解压之后,她就不飘红了。
最后我实在是搞不定了,我老大出马,给我改了一下maven的配置文件settings.xml中的镜像。另外把jdk版本由jdk1.8.0_202换成了jdk1.8.0_171,然后就解决了