@ -11,7 +11,6 @@ import org.springframework.validation.BindingResult;
/**
* HibernateValidator错误结果处理切面
* Created by macro on 2018/4/26.
*/
@Aspect
@Component
@ -21,7 +21,6 @@ import java.io.IOException;
* JWT登录授权过滤器
public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class);
@ -13,7 +13,6 @@ import java.io.IOException;
* 当未登录或者token失效访问接口时,自定义的返回结果
* Created by macro on 2018/5/14.
public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint {//密码输入错误
* 当访问接口没有权限时,自定义的返回结果
public class RestfulAccessDeniedHandler implements AccessDeniedHandler{//没有访问权限
@ -30,7 +30,6 @@ import java.util.Map;
* 统一日志处理切面
@Aspect//将java类定义为切面类
@ -5,9 +5,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
* Created by macro on 2018/5/17.
@Configuration
public class OssConfig {//阿里云OSS配置类,用来获取基本信息
@Value("${aliyun.oss.endpoint}")
@ -32,7 +32,6 @@ import java.util.List;
* SpringSecurity的配置
@Configuration//Configure方法:用来配置访问资源对应的权限
@EnableWebSecurity//开启Spring Security:在配置类头上加注解@EnableWebSecurity
@ -12,7 +12,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
* Swagger2API文档的配置
@EnableSwagger2
@ -15,7 +15,6 @@ import java.util.List;
* 商品优选管理Controller
* Created by macro on 2018/6/1.
@Controller//控制器,处理由DispatcherServlet分发的请求
@Api(tags = "CmsPrefrenceAreaController", description = "商品优选管理")
@ -16,7 +16,6 @@ import java.util.List;
* 商品专题Controller
@Controller
@Api(tags = "CmsSubjectController", description = "商品专题管理")