spring.session.store-type = none关键之后出错
来源:4-2 SpringSecurity基本原理

tidhy
2017-12-11
spring.session.store-type = none把这段代码屏蔽掉之后,运行项目就出错了,
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2017-12-11 14:09:46.689 ERROR 8796 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.session.SessionAutoConfiguration$SessionRepositoryValidator': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No Spring Session store is configured: set the 'spring.session.store-type' property at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
不知道怎么搞好了,正常应该访问localhost弹出登录框的
写回答
1回答
-
tidhy
提问者
2017-12-11
已解决,少个自动配置的注解
00
Spring Security技术栈开发企业级认证与授权
Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全
2662 学习 · 1561 问题
相似问题