修改代码

master
王皓雯 6 years ago
parent 4f1225d92f
commit 1927fe497d

@ -11,7 +11,6 @@ import org.springframework.validation.BindingResult;
/** /**
* HibernateValidator * HibernateValidator
* Created by macro on 2018/4/26.
*/ */
@Aspect @Aspect
@Component @Component

@ -21,7 +21,6 @@ import java.io.IOException;
/** /**
* JWT * JWT
* Created by macro on 2018/4/26.
*/ */
public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class); private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class);

@ -13,7 +13,6 @@ import java.io.IOException;
/** /**
* token访 * token访
* Created by macro on 2018/5/14.
*/ */
@Component @Component
public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint {//密码输入错误 public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint {//密码输入错误

@ -13,7 +13,6 @@ import java.io.IOException;
/** /**
* 访 * 访
* Created by macro on 2018/4/26.
*/ */
@Component @Component
public class RestfulAccessDeniedHandler implements AccessDeniedHandler{//没有访问权限 public class RestfulAccessDeniedHandler implements AccessDeniedHandler{//没有访问权限

@ -30,7 +30,6 @@ import java.util.Map;
/** /**
* *
* Created by macro on 2018/4/26.
*/ */
@Aspect//将java类定义为切面类 @Aspect//将java类定义为切面类
@Component @Component

@ -5,9 +5,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/**
* Created by macro on 2018/5/17.
*/
@Configuration @Configuration
public class OssConfig {//阿里云OSS配置类用来获取基本信息 public class OssConfig {//阿里云OSS配置类用来获取基本信息
@Value("${aliyun.oss.endpoint}") @Value("${aliyun.oss.endpoint}")

@ -32,7 +32,6 @@ import java.util.List;
/** /**
* SpringSecurity * SpringSecurity
* Created by macro on 2018/4/26.
*/ */
@Configuration//Configure方法用来配置访问资源对应的权限 @Configuration//Configure方法用来配置访问资源对应的权限
@EnableWebSecurity//开启Spring Security:在配置类头上加注解@EnableWebSecurity @EnableWebSecurity//开启Spring Security:在配置类头上加注解@EnableWebSecurity

@ -12,7 +12,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/** /**
* Swagger2API * Swagger2API
* Created by macro on 2018/4/26.
*/ */
@Configuration @Configuration
@EnableSwagger2 @EnableSwagger2

@ -15,7 +15,6 @@ import java.util.List;
/** /**
* Controller * Controller
* Created by macro on 2018/6/1.
*/ */
@Controller//控制器处理由DispatcherServlet分发的请求 @Controller//控制器处理由DispatcherServlet分发的请求
@Api(tags = "CmsPrefrenceAreaController", description = "商品优选管理") @Api(tags = "CmsPrefrenceAreaController", description = "商品优选管理")

@ -16,7 +16,6 @@ import java.util.List;
/** /**
* Controller * Controller
* Created by macro on 2018/6/1.
*/ */
@Controller @Controller
@Api(tags = "CmsSubjectController", description = "商品专题管理") @Api(tags = "CmsSubjectController", description = "商品专题管理")

Loading…
Cancel
Save