csrf的防护,如果不关闭,退出登录就没用,直接报500,token令牌只有用一次啊,我试了好几次才找到,时csrf没关闭
这里千万不要跟老师视频一样,复制文档的语句,执行会出错的
这个怎么打开的???............................
有对的语句吗,文档里的语句不能用
log4j:WARN No appenders could be found for logger (org.apache.shiro.io.ResourceUtils). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - zs, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException). at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:214) at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270) at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256) at com.bjsxt.shiro1.TestA.main(TestA.java:41) Caused by: java.lang.IllegalStateException: Configuration error: No realms have been configured! One or more realms must be present to execute an authentication attempt. at org.apache.shiro.authc.pam.ModularRealmAuthenticator.assertRealmsConfigured(ModularRealmAuthenticator.java:161) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:264) at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198) ... 4 more
上面是异常信息,我的代码和老师一样,而且我把老师的代码拷贝过去也是这个异常,我用的是MyEclipse
老师。账号密码都正确一直验证不通过 内存那个也验证不通过是为什么 只能验证通过他自动生成的那个密码
按照步骤来的,怎么访问报错404的,麻烦老师看一下哪里有问题的。
ssm-shiro2.zip
老师,为啥我在登录完后台会报这个错,但是我页面能正常登录和跳转。org.thymeleaf.exceptions.TemplateInputException: Error resolving template [favicon.ico], template might not exist or might not be accessible by any of the configured Template Resolvers
这个是把spring security导入进来就行了吗,我看也没配置啊
老师,静态资源放行,那里如果需要对js和images放行是否也是相类似的代码编写呢?
老师 数据库存的是加密后的数据 但是我们输入的是没有加密的数据 它是会自动帮我们把数据加密后在与数据库取出来的密码进行比对是吗?
老师,我输入错误的登录密码,报错了(源码我打包给你了
)
请问在认证和授权的参数当中的AuthenticationToken以及PrincipleCollection是如何获取表单信息的?又是如何在shiro.xml当中体现的?
登录认证时因为缓存问题,只能认证一次,第2次就报未知异常怎么解决?
老师为啥一开始我运行成功之后页面打不开,重启IDEA之后运行成功了呢
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637