소스 검색

用户端发现页面接口免登录

wangzhijun 1 개월 전
부모
커밋
e2bf2adbe6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      nightFragrance-framework/src/main/java/com/ylx/framework/config/SecurityConfig.java

+ 1 - 1
nightFragrance-framework/src/main/java/com/ylx/framework/config/SecurityConfig.java

@@ -120,7 +120,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                         "/technician/technician/getTechnician", "/technician/technician/getTechnicianInfo", "/technician/technician/getTechnicianList",
                         "/technician/technician/apply", "/technician/technician/resetPassword",
                         "/customer/banner/page", "/customer/service/category/**", "/technician/technician/profile",
-                        "/customer/city/**","/home/hot/recommend","/home/search/**").permitAll()
+                        "/customer/city/**","/home/hot/recommend","/home/search/**","/discover/moment/**").permitAll()
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.txt", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()