|
@@ -27,7 +27,10 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
|
|
|
http.authorizeRequests()
|
|
|
.antMatchers("/task/**")
|
|
|
.hasIpAddress("0.0.0.0/0")
|
|
|
- .antMatchers("/v2/api-docs", "/news/list", "/news/query", "/news/homeList", "/news/typeList")
|
|
|
+ .antMatchers("/v2/api-docs",
|
|
|
+ "/news/page","/news/query/**","/news/app/home",
|
|
|
+ "/helpCenterContent/list","/helpCenterContent/get/**",
|
|
|
+ "/music/theory/detail/**","/music/theory/app/page","/music/theory/page")
|
|
|
.permitAll()
|
|
|
// 任何人不登录都可以获取的资源
|
|
|
// .antMatchers("/ipController/**").hasIpAddress("127.0.0.1") //特定ip可以不登录获取资源
|