Spring Framework core 7

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (3)

3.4. Spring Type Conversion 더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#core-convert core.convert 패키지에서 일반적인 유형 변환 시스템을 제공한다. 시스템은 유형 변환 로직을 구현하기 위한 SPI와 런타임에 유형 변환을 수행하기 위한 API를 정의한다. Spring 컨테이너 내에서 이 시스템을 구현의 대안으로 사용하여 PropertyEditor외부화된 빈 속성 값 문자열을 필수 속성 유형으로 변환할 수 있다. 유형 변환이 필요한 애플리케이션의 모든 위치에서 공용 API를 사용할 수 있다. 3.4.1. Converter SPI SPI = Service Provid..

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (2)

3.3. Bean Manipulation and the BeanWrapper ~3.3.2. Built-in PropertyEditor Implementations 더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-beans 3.3. Bean Manipulation and the BeanWrapper org.springframework.beans 패키지는 JavaBeans 표준을 준수한다. JavaBean은 인수가 없는 기본 생성자를 가진 클래스이며 예를 들어 bingoMadness라는 속성이 setBingoMadness(..) setter 메서드와 getBingoMadness() getter 메서드..

[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (1)

더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#validation 3.1. Validation by Using Spring’s Validator Interface ~ 3.2. Resolving Codes to Error Messages Validation, Data Binding, and Type Conversion Validation을 business Logic으로 간주하면 장단점이 있고, Spring은 유효성 검사 및 데이터 바인딩을 위한 디자인을 제공하고 있다. Validation은 Web Layer에 연결되지않아야하고 localizer가 쉬워야하며 사용 가능한 모든 available validato..

[Spring Framework core] 1.10. Classpath Scanning and Managed Components (1)

https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-classpath-scanning Core Technologies In the preceding scenario, using @Autowired works well and provides the desired modularity, but determining exactly where the autowired bean definitions are declared is still somewhat ambiguous. For example, as a developer looking at ServiceConfig, how do docs.spring.io 틀린 해석이..

Web/spring 2023.03.10
728x90