今天涉及到这个地方

1.登录请求需要带着username和password一起过去,这样的话发出的请求就是:http://localhost:8080/wxSecond/welcome/login.htmls?username=123&password=123

而shiro的配置中,还在担忧仅仅配置/welcome/login.htmls=anon能不能过去呢~

结果证明:

【shiro】关于shiro匹配URL的小用法

这样的请求地址,在shiro配置中配置如下:

【shiro】关于shiro匹配URL的小用法

是完全可以的~~~~~

 

相关文章:

  • 2021-11-04
  • 2022-01-13
  • 2021-07-25
  • 2021-08-14
  • 2022-12-23
  • 2021-09-27
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-06-23
  • 2021-08-13
  • 2021-06-06
  • 2021-10-09
相关资源
相似解决方案