package hello.typeconverter; import hello.typeconverter.converter.IntegerToStringConverter; import hello.typeconverter.converter.IpPortToStringConverter; import hello.typeconverter.converter.StringToIntegerConverter; import hello.typeconverter.converter.StringToIpPortConverter; import hello.typeconverter.formatter.MyNumberFormatter; import org.springframework.context.annotation.Configuration; im..
컨버전 서비스에는 컨버터만 등록 할 수 있다. 포메터는 등록할 수 없다. 하지만 포메터는 객체 -> 문자, 문자 -> 객체로 변환하는 특별한 컨버터 일 뿐이다. 그래서 포메팅컨버젼서비스에 등록해서 사용 할 수 있다. package hello.typeconverter.formatter; import hello.typeconverter.converter.IpPortToStringConverter; import hello.typeconverter.converter.StringToIntegerConverter; import hello.typeconverter.converter.StringToIpPortConverter; import hello.typeconverter.type.IpPort; import org...
숫자 1000을 1,000모양으로 깔끔하게 표현하고 싶다면 포메터를 사용하면 된다. 또한 숫자 1000을 String으로 바꿔준다. package hello.typeconverter.formatter; import lombok.extern.slf4j.Slf4j; import org.springframework.format.Formatter; import java.text.NumberFormat; import java.text.ParseException; import java.util.Locale; @Slf4j public class MyNumberFormatter implements Formatter { @Override public Number parse(String text, Locale locale..
- Total
- Today
- Yesterday
- thymleaf
- 향해플러스
- rejectValue
- 로그인
- filter
- 백엔드 개발자 역량
- Java
- 향해플러스백엔드
- HTTP
- 컨트
- 예외처리
- ArgumentResolver
- 향해99
- 리터럴
- 스프링공부
- 항해플러스
- hypertexttransferprotocol
- BindingResult
- reject
- SpringBoot
- 스프링부트
- 항해99
- react실행
- exception
- JPA
- React
- 백엔드 개발자 공부
- 인터셉터
- jpa api
- Intercepter
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |