我想写个小项目 用springboot 然后输入地址和端口号:localhost:8080 就会自动跳转到index.html页。
加了spring security该怎么方行这个呢?http.authorizeRequests()
.antMatchers(“/index.html”).permitAll()
.anyRequest().authenticated();
或者
http.authorizeRequests()
.antMatchers(“/indexl”).permitAll()
.anyRequest().authenticated();
都没什么用。
请问spring security怎么放行
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
悬赏问题
- ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
- ¥15 (关键词-阻抗匹配,HFSS,RFID标签)
- ¥50 sft下载大文阻塞卡死
- ¥15 机器人轨迹规划相关问题
- ¥15 word样式右侧翻页键消失
- ¥15 springboot+vue 集成keycloak sso到阿里云
- ¥15 win7系统进入桌面过一秒后突然黑屏
- ¥30 backtrader对于期货交易的现金和资产计算的问题
- ¥15 求C# .net4.8小报表工具
- ¥15 安装虚拟机时出现问题