JokerMasks

导航

2017年10月9日 #

No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.配置文件找不到shiro安全配置

摘要: 首先查询web.xml是否配置shiroFilter的拦截,如果配置了,查看shiroFilter与struts2拦截的顺序,是否是struts2在前面 struts2的拦截器不能用在shiroFilter拦截器的前面,如果实在前面的时候就拦截不到,需要将shiroFilter放到前面就可以了. 阅读全文

posted @ 2017-10-09 09:18 JokerMasks 阅读(3468) 评论(0) 推荐(0)

2017年9月21日 #

空值的传递后判断为空的问题.

摘要: 从页面接收到空值,(页面的空值null传到后台后变成字符串的"null") 客户系统接收到空值后一直报错,然后才发现切割字符串之前的判断一直是false 本人进过的测试: System.err.println("customerIdStr:" + customerIdStr); System.out 阅读全文

posted @ 2017-09-21 18:28 JokerMasks 阅读(369) 评论(0) 推荐(0)