在我的应用程序要进行身份验证的索引页面,以便在上下文中我添加如何验证索引页:使用弹簧安全
<!-- Security -->
<security:http create-session="never" use-expressions="true">
<security:intercept-url pattern="/index.jsp" access="hasRole('MY_ROLE')" />
<security:http-basic entry-point-ref="basicAuthenticationEntryPoint" />
</security:http>
该工程确定,当我去地址:http://localhost:31103/my_app/index.jsp
问题当我输入地址http://localhost:31103/my_app/哪些重定向到索引然后没有验证。那么我应该如何验证这些情况呢?
我有没有登录页面。我正在使用基本身份验证 – hudi
@hudi尝试将索引页放在新文件夹中,让我们调用该文件夹的管理员,然后像这样设置安全性。 ' –
redMist
sory我不能移动索引页面 – hudi