修改代码

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

@ -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
* Created by macro on 2018/4/26.
*/
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.
*/
@Component
public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint {//密码输入错误

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

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

@ -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
* Created by macro on 2018/4/26.
*/
@Configuration//Configure方法用来配置访问资源对应的权限
@EnableWebSecurity//开启Spring Security:在配置类头上加注解@EnableWebSecurity

@ -12,7 +12,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Swagger2API
* Created by macro on 2018/4/26.
*/
@Configuration
@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
* Created by macro on 2018/6/1.
*/
@Controller
@Api(tags = "CmsSubjectController", description = "商品专题管理")

Loading…
Cancel
Save