
spring
文章平均质量分 63
Aldom
这个作者很懒,什么都没留下…
展开
-
【spring-security】/j_spring_security_logout 404
场景:使用spring-security时,请求/j_spring_security_logout报http404原因:spring-security4.x版本需要自己手动在logout标签加上logout-url=“/j_spring_security_logout”spring-security3.x版本不需要手动加,spring-security默认处理解决:原创 2015-12-28 17:23:14 · 2125 阅读 · 0 评论 -
【spring-security】j_spring_security_check 404
场景:http://localhost:8080/j_spring_security_check使用spring-security框架,自定义login页面时,发现上面的请求404原因:spring-security的版本问题,spring-security4.x版本,若需要自定义login页面时,需要自定login-processing-url=“/j_spring_secu原创 2015-12-28 17:07:58 · 3560 阅读 · 0 评论 -
【spring-security】InMemoryDaoImpl在spring-security4.x版本不存在
场景:使用spring-security4.x版本时InMemoryDaoImpl不存在原因:spring-security4.x版本中使用InMemoryUserDetailsManager替换了InMemoryDaoImpl参考:http://docs.spring.io/spring-security/site/migrate/current/3-to-4/html5原创 2015-12-29 11:38:21 · 1091 阅读 · 0 评论 -
【cas、spring-security】The error indicates the the CAS server is trying to post the single sign out re
场景:配置jasig cas和spring security的,注销功能。tomcat报如下错误The error indicates the the CAS server is trying to post the single sign out request to itself, localhost, rather than to the service.原因:注原创 2016-01-06 11:54:20 · 578 阅读 · 0 评论 -
【spring-security】Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.sprin
异常栈:Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springfr原创 2015-12-25 16:19:43 · 1286 阅读 · 0 评论 -
【spring-security】 Property or field 'ROLE_USER' cannot be found on object of type 'org.springframewo
异常栈:java.lang.IllegalArgumentException: Failed to evaluate expression 'ROLE_USER' org.springframework.security.access.expression.ExpressionUtils.evaluateAsBoolean(ExpressionUtils.java:15) org.spri原创 2015-12-25 16:26:35 · 5592 阅读 · 2 评论 -
【spring-security】nested exception is java.lang.ClassNotFoundException: org.springframework.security.
异常栈:Offending resource: class path resource [spring/applicationContext-security.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.security.web.FilterChainProxy a原创 2015-12-25 16:22:43 · 5957 阅读 · 0 评论 -
【spring】spring配置文件命名空间(如:xmlns:beans="http://www.springframework.org/schema/beans")
场景:<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema原创 2015-12-29 16:44:40 · 5679 阅读 · 0 评论 -
spring-framework 配置文件读取系统变量
spring-framework 配置文件读取系统变量使用过spring-boot的同学都知道,boot内置了很多特性,比如:配置文件随机值;其实boot是建立在framework之上的,底层用的都一样只是boot进行更多封装配置文件处理类PropertyPlaceholderConfigurerspring读取配置的内部实现类,简单使用可看 https://docs.原创 2018-02-07 15:38:57 · 586 阅读 · 0 评论