deason 7 anos atrás
pai
commit
ad245a9208

+ 2 - 3
src/main/java/cn/com/qmth/examcloud/app/config/InterceptorConfig.java

@@ -10,10 +10,10 @@ package cn.com.qmth.examcloud.app.config;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 
 @Configuration
-public class InterceptorConfig extends WebMvcConfigurerAdapter {
+public class InterceptorConfig implements WebMvcConfigurer {
 
     @Bean
     public AccessInterceptor accessInterceptor() {
@@ -25,7 +25,6 @@ public class InterceptorConfig extends WebMvcConfigurerAdapter {
         registry.addInterceptor(accessInterceptor())
                 .addPathPatterns("/api/**")
                 .excludePathPatterns("/", "/swagger-resources");
-        super.addInterceptors(registry);
     }
 
 }

+ 1 - 0
src/main/java/cn/com/qmth/examcloud/app/service/DeviceRecordService.java

@@ -39,6 +39,7 @@ public class DeviceRecordService {
     @Autowired
     private DeviceRecordRepository deviceRecordRepository;
 
+    @SuppressWarnings("unchecked")
     public Result<Page<DeviceRecord>> getDeviceRecordList(DeviceRecord params, Integer pageNo, Integer pageSize) {
         Specification<DeviceRecord> spec = null;
         if (params != null) {