@FunctionalInterface public interface RowMapper { @Nullable T mapRow(ResultSet rs, int rowNum) throws SQLException; } rowNum은 현재 행의 번호를 나타내는 변수인데, 실제로 이 변수를 어떻게 사용해야 하는지에 대한 고민을 해봤지만, 사용처에 대한 명확한 아이디어가 떠오르지 않았다. 그래서 어떤 목적으로 RowMapper를 설계한 것인지 궁금하여 관련된 이슈를 찾아보았다. RowMapper - mapRow method, rowNum does not need to be in the method signature [SPR-3109] #7796 spring framwork lead인 Juergen Hoeller의 주..
Attribute Converter 란?A class that implements this interface can be used to convert entity attribute state into database column representation and back again이 인터페이스를 구현하는 클래스는 엔티티 속성 상태를 데이터베이스 열 표현으로 변환하고 다시 변환하는 데 사용할 수 있습니다.즉, 엔티티에서의 Boolean 값이 데이터베이스에서는 0과 1로 이루어진 Int 값으로 표현되어야 할 경우 사용할 수 있습니다. 프로젝트에 도입한 이유현재 프로젝트에서 Music Entity에 SuperGenres 와 SubGenres 가 있습니다.@Getter@Entity@NoArgsConstructo..

검증 과정 실제 예제 auth0 java-jwt 라이브러리를 사용한 예제 implementation 'com.auth0:java-jwt:3.19.0' implementation 'com.auth0:jwks-rsa:0.21.1' // JwkProvider 객체를 싱글톤 객체로 구현해주세요. // 성능 문제가 발생할 수 있으며, 요청이 차단될 가능성도 있습니다. public static final JwkProvider jwkProvider = new JwkProviderBuilder(new URL("https://www.googleapis.com/oauth2/v3/certs")) .cached(10, 7, TimeUnit.DAYS) .build(); public Map resolve(final String ..
- Total
- Today
- Yesterday
- 유저 시나리오
- DispatcherServletInitializer
- java 17
- dto 위치
- feignClient
- User Scenario
- 레이어드 아키텍처
- WebFlux 의존성
- setDateFormat
- ValidateException
- 구글 OpenID
- 유저 스토리
- entity 검증
- org.springframework:spring-webflux
- @ElementCollection
- HTTPInterface
- FormProperty
- JPA SQL Injection
- defer-datasource-initialization
- Attribute Converter
- @FormProperty
- ServletContainerInitializer
- BasicBinder
- Spring Boot 3
- HandlesTypes
- @Converter
- 구글 소셜로그인
- dto 검증
- CreationTimestamp
- CreatedDate
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |