Skip to content

Commit

Permalink
perf:移除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Java-Edge committed Aug 8, 2024
1 parent 40c0919 commit fc5b863
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.javagpt.back.entity.PermissionConfig;
import com.javagpt.back.interceptor.CheckTokenInterceptor;
import com.javagpt.back.interceptor.FuseInterceptor;
import com.javagpt.back.interceptor.MyAsyncHandlerInterceptor;
import com.javagpt.back.service.PermissionConfigService;
import com.javagpt.common.enums.PermissionConfigTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -26,9 +25,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
@Autowired
private PermissionConfigService permissionConfigService;

@Autowired
private MyAsyncHandlerInterceptor myAsyncHandlerInterceptor;

@Autowired
private FuseInterceptor fuseInterceptor;

Expand All @@ -41,9 +37,6 @@ public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(checkTokenInterceptor)
.addPathPatterns(paths);

// registry.addInterceptor(myAsyncHandlerInterceptor)
// .addPathPatterns("/**");

registry.addInterceptor(fuseInterceptor)
.addPathPatterns("/**");
}
Expand All @@ -60,4 +53,4 @@ public void configureAsyncSupport(AsyncSupportConfigurer configurer) {

configurer.setTaskExecutor(threadPoolTaskExecutor);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import java.util.List;


@Configuration
@MapperScan("com.javagpt.back.mapper")
public class MybatisPlusConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ public RedisCacheConfiguration customProtoStuffRedisCacheConfiguration(Duration
// disableCachingNullValues(). //若返回值为null,则不允许存储到Cache中
entryTtl(ttl); //设置缓存的超时时间
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
public void addCorsMappings(CorsRegistry registry) {

registry.addMapping("/**")
//允许所有方法
// 允许所有方法
.allowedMethods(CorsConfiguration.ALL);
}
}
}
2 changes: 0 additions & 2 deletions education-back/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ mybatis-plus:
logic-delete-value: 1 # 删除后设置成的值
logic-not-delete-value: 0 # 未删除的值


server:
port: 8088

# DataSource Config
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down

0 comments on commit fc5b863

Please sign in to comment.