Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
shiro の許可されていないページをオーバーライドする方法を知る必要があります。つまり、ユーザーが保護された URL に対する何らかの許可を持っていない場合、shiro はページ 401 を返します。事前に定義された許可されていないページにユーザーを転送するにはどうすればよいでしょうか?
ありがとう...
使用しているテクノロジ スタックは不明ですが、Java Web アプリケーションでは、タグ内の web.xml でこれを構成できます。
<error-page> <error-code>401</error-code> <location>{path to custom page}</location> </error-page>