Skip to content

Commit

Permalink
打开静态资源权限
Browse files Browse the repository at this point in the history
  • Loading branch information
TreasureJade committed Jan 17, 2020
1 parent a5cab09 commit 2993507
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
// 首页
.antMatchers("/getMsg").permitAll()
// 文章
.antMatchers("/article/uploadpic/","/article/getDetail","/article/selectArticleByTags","/article/selectArticleByTypes","/article/selectAll").permitAll()
.antMatchers("/article/uploadpic","/article/getDetail","/article/selectArticleByTags","/article/selectArticleByTypes","/article/selectAll").permitAll()
// 留言
.antMatchers("/leaveMsg/all").permitAll()
// 博客图片地址
Expand All @@ -101,6 +101,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
.antMatchers("/types/all").permitAll()
// 头像图片地址
.antMatchers("/home/hobo/blog/head-pic/*").permitAll()
// md编辑器
.antMatchers("/img/*","/fonts/*","/js/*","/css/*").permitAll()
.anyRequest().authenticated();

//配置自己的验证过滤器
Expand Down

0 comments on commit 2993507

Please sign in to comment.