提交 2695e2d1 编写于 作者: 7 7wc98#14

Modify

上级 1bb5d5e6
......@@ -32,6 +32,18 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/campus").permitAll()
.antMatchers("/aboutLearn").permitAll()
.antMatchers("/aboutEnglish").permitAll()
.antMatchers("/aboutMath").permitAll()
.antMatchers("/aboutPhilosophy").permitAll()
.antMatchers("/sign").permitAll()
.antMatchers("/toCheckFrozen").permitAll()
.antMatchers("/static/**").permitAll()
.antMatchers("/static/**/**").permitAll()
.antMatchers("/static/**/**/**").permitAll()
.antMatchers("/images/**/**").permitAll()
.anyRequest().authenticated()
.and().formLogin()
.loginPage("/login")
.failureUrl("/login?error")
......
......@@ -226,6 +226,7 @@
</div>
</div>
</div>
</div>
<script type="text/javascript">
function check(value) {
if(value!=="")
......@@ -234,13 +235,13 @@
}
</script>
<div id="footer">
<div style="text-align: center">
<p>
<span>@2020 御承扬Copyright&copy;2020-05-04</span>
</p>
</div>
<div id="footer">
<div style="text-align: center">
<p>
<span>@2020 御承扬Copyright&copy;2020-05-04</span>
</p>
</div>
</div>
<div id="scroll">
<div class="scrollItem" id="toTop">顶部</div>
<div class="scrollItem" id="toBottom">底部</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册