|
|
@@ -109,17 +109,18 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
// 过滤请求
|
|
|
.authorizeRequests()
|
|
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
|
|
- .antMatchers("/login", "/register", "/captchaImage", "/technician/technician/getValidateCaptcha","/technician/technician/sendMsg","/wx/login",
|
|
|
+ .antMatchers("/login", "/register", "/captchaImage", "/technician/technician/getValidateCaptcha", "/technician/technician/sendMsg", "/wx/login",
|
|
|
"/api/lbt/v1/getAll", "/api/js/v1/select", "/api/xiangmu/v1/wx/getAll", "/api/order/v1/getStatus",
|
|
|
"/api/xiangmu/v1/getByid", "/api/xiangmu/v1/highlights", "/api/js/v1/wx/getByid", "/api/js/v1/wx/select", "/api/js/v1/wx/add", "/api/recharge/v1/test",
|
|
|
- "/wx/pay/payNotify", "/wx/pay/refundNotify", "/weChat/getAccessToken","/weChat/phoneLogin","/weChat/sendMsg", "/weChat/getCode", "/weChat/verifyToken", "/sq/getAccessToken",
|
|
|
- "/area/select", "/system/dept/list", "/api/xiangmu/v1/wx/recommend", "/product/category/create","/area/code","/area/city","/product/category/list",
|
|
|
- "/wx/pay/query/order/{outTradeNo}","/api/products/**","/api/user/point/**","/userCenter/userApp/queryBind","/weChat/uuidLogin","/couponReceive/getShareVolutionDetail",
|
|
|
- "/userCenter/ugit credential rejectserApp/bind/update","/serviceCategory/h5List","/api/lbt/v1/select","/sq/getTechnicianToken"
|
|
|
- ,"/technician/technician/clientLogin","/technician/technician/wait/list","/technician/technician/getServiceCategoryList"
|
|
|
- ,"/technician/technician/getTechnician" ,"/technician/technician/getTechnicianInfo","/technician/technician/getTechnicianList",
|
|
|
- "/technician/technician/apply","/technician/technician/resetPassword",
|
|
|
- "/customer/banner/page","/customer/service/category/**","/technician/technician/profile").permitAll()
|
|
|
+ "/wx/pay/payNotify", "/wx/pay/refundNotify", "/weChat/getAccessToken", "/weChat/phoneLogin", "/weChat/sendMsg", "/weChat/getCode", "/weChat/verifyToken", "/sq/getAccessToken",
|
|
|
+ "/area/select", "/system/dept/list", "/api/xiangmu/v1/wx/recommend", "/product/category/create", "/area/code", "/area/city", "/product/category/list",
|
|
|
+ "/wx/pay/query/order/{outTradeNo}", "/api/products/**", "/api/user/point/**", "/userCenter/userApp/queryBind", "/weChat/uuidLogin", "/couponReceive/getShareVolutionDetail",
|
|
|
+ "/userCenter/ugit credential rejectserApp/bind/update", "/serviceCategory/h5List", "/api/lbt/v1/select", "/sq/getTechnicianToken",
|
|
|
+ "/technician/technician/clientLogin", "/technician/technician/wait/list", "/technician/technician/getServiceCategoryList",
|
|
|
+ "/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").permitAll()
|
|
|
// 静态资源,可匿名访问
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.txt", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|