Skip to content

Commit 98aaa06

Browse files
CLAP-214 Hotfix : WebMvcConfigurer addConverter 수정
* CLAP-110 Feature : 담당자별 작업 처리량 조회 API 구현 <footer> - 관련: #73 * CLAP-111 Refactor : 통계 조회 API 리팩토링 및 기능 수정 <footer> - 관련: #74 * 내 작업한 내용에 대한 설명 * 담당자 조회 API 구현 * CLAP-111 Refactor : 통계 조회 API 주소 통합, 리팩토링, 예외처리 <footer> - 관련: #74 * Bug : 프로퍼티파일 수정 * CLAP-104 CI/CD : CI에서 s3.yml 파일 생성하도록 수정 * CLAP-146 Feature : 카테고리 목록 조회 API 구현 <footer> - 관련: #118 * CLAP-147 Feature : 카테고리 수정 API 구현 <footer> - 관련: #119 * CLAP-147 Feature : 카테고리 추가, 수정 API 리뷰반영 수정 <footer> - 관련: #119 * CLAP-148 Feature : 카테고리 삭제 API 구현 <footer> - 관련: #120 * CLAP-148 Feature : 카테고리 삭제 API 수정 <footer> - 관련: #120 * CLAP-148 Docs : 카테고리 API 스웨거 수정 <footer> - 관련: #120 * CLAP-107 Bug : CI test yml파일 key 중복 수정 <footer> - 관련: #60 * CLAP-148 Feature : 카테고리 CUD 리뷰 반영 수정, 조회 반환 양식 수정 <footer> - 관련: #120 * CLAP-214 Cleanup : 통계, 카테고리 미흡한부분 리팩토링 <footer> - 관련: #216 * CLAP-214 Fix : 통계조회 API 파라미터 바인딩 오류 수정 <footer> - 관련: #216 * CLAP-214 Fix : addConverter 수정 <footer> - 관련: #216 --------- Co-authored-by: nano-mm <nano123@gachon.ac.kr>
1 parent 728959e commit 98aaa06

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/main/java/clap/server/config/web/WebConfig.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,17 @@
22

33
import clap.server.common.utils.StringToPeriodTypeConverter;
44
import clap.server.common.utils.StringToStatisticsTypeConverter;
5-
import org.springframework.context.annotation.Bean;
65
import org.springframework.context.annotation.Configuration;
7-
import org.springframework.context.support.ConversionServiceFactoryBean;
6+
import org.springframework.format.FormatterRegistry;
87
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
98

10-
import java.util.Set;
119

1210
@Configuration
1311
public class WebConfig implements WebMvcConfigurer {
14-
@Bean
15-
public ConversionServiceFactoryBean conversionService() {
16-
ConversionServiceFactoryBean conversionService = new ConversionServiceFactoryBean();
17-
conversionService.setConverters(Set.of(
18-
new StringToStatisticsTypeConverter(),
19-
new StringToPeriodTypeConverter()
20-
));
21-
return conversionService;
12+
13+
@Override
14+
public void addFormatters(FormatterRegistry registry) {
15+
registry.addConverter(new StringToStatisticsTypeConverter());
16+
registry.addConverter(new StringToPeriodTypeConverter());
2217
}
2318
}

0 commit comments

Comments
 (0)