org.apache.shiro.authz.UnauthenticatedException: The current Subject is not authenticated. Access d

属于shiro安全框架的限制问题,我在这里写的是新用户注册的功能,但是shiro框架要求必须登录时候才能操作,为了解决这个矛盾的问题,只能给注册这个功能开放一个非安全的口
这里写图片描述
在Handler文件中,在1处添加全路径名,注意2处的“/”是默认值,不能删掉

猜你喜欢

转载自blog.csdn.net/guyu96/article/details/82657564
今日推荐