일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- cors
- Application Event
- Spring Security
- 알고리즘
- 브루트포스
- 스프링 부트
- 백기선
- JsonSerializer
- 다익스트라
- 스프링부트
- WebApplication Type
- @Profile
- JPA
- EnableAutoConfiguration
- AuthenticationPrincipal
- 리소스핸들러
- rest api
- 백준
- OAuth2
- 외부설정
- @ConfigurationProperties
- webjar
- HttpMessageConverters
- HATEOAS
- application.properties
- Application Argument
- 리소스 서버
- 정적 리소스
- 백트래킹
- Application Runner
- Today
- Total
목록전체 글 (114)
아카이브
JpaRepository의 save()는 단순히 새 엔티티를 추가하는 메서드가 아닙니다 Transient(새로운) 상태의 객체라면 EntityManager.persist() Detached(이미 있는) 상태의 객체라면 EntityManager.merge() Transient인지 Detached 인지 어떻게 판단하는가? 엔티티의 @Id 프로퍼티가 null이면 Transient 상태로 판단하고 id가 null이 아니면 Detached 상태로 판단한다. @Id == null? Transient : Detached 엔티티가 Persistable 인터페이스를 구현하고 있다면 isNew() 메서드에 위임한다 JpaRepositoryFactory를 상속받는 클래스를 만들고 getEntityInfomration()을 ..
@EnableJpaRepositories spring data의 Repository 인터페이스를 상속받은 인터페이스로부터 구현 객체를 생성해준다. @EnableJpaRepositories 애노테이션을 사용해야 JpaRepository 인터페이스를 상속받은 Repository 인터페이스 타입의 Proxy 빈들을 등록 해준다 스프링 부트 사용할 때는 사용하지 않아도 자동 설정 됨 스프링 부트 사용하지 않을 때는 @Configuration과 같이 사용 스프링 @Repository SQLExcpetion 또는 JPA 관련 예외를 스프링의 DataAccessException 계층구조 하위클래스중 하나로 변환 해준다. 예외만 보더라도 어떤일이 발생했는지 이해하기 쉽도록 변환해줌 기본적인 스프링 프레임워크의 기능 D..

메서드 이름 기반의 자동 쿼리 만들기 방식은 너무 알아보기 힘들다는 단점이 있다. findByFirstNameIngoreCaseAndLastNameStartsWithIgnoreCase(String firstName, String lastName) 여러 쿼리 메서드는 대부분 두 가지 중 하나 Optional findOne(Predicate): 이런 저런 조건으로 무언가 하나를 찾는다. List|Page|.. findAll(Predicate): 이런 저런 조건으로 무언가 여러 개를 찾는다 QuerydslPredicateExecutor 인터페이스 QuerydslPredicateExecutor (Spring Data Core 2.4.3 API) Iterable findAll(com.querydsl.core.ty..