일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Application Argument
- application.properties
- JPA
- 리소스 서버
- 다익스트라
- HttpMessageConverters
- 알고리즘
- 브루트포스
- 리소스핸들러
- JsonSerializer
- 백트래킹
- WebApplication Type
- 백준
- 스프링 부트
- @Profile
- cors
- @ConfigurationProperties
- rest api
- AuthenticationPrincipal
- OAuth2
- Application Event
- 백기선
- 스프링부트
- 외부설정
- HATEOAS
- Application Runner
- 정적 리소스
- webjar
- Spring Security
- EnableAutoConfiguration
- Today
- Total
목록전체 글 (114)
아카이브

스프링 데이터 Common Repository: 단순 Marker용 Interface로 Repository 용도로 쓰일 것을 암시하는 것. CrudRepository: 기본적인 CRUD 기능들을 제공. PagingAndSortingRepository : Sort, Pageable findAll 메서드 제공 @NoRepositoryBean spring data가 runtime시 bean을 이 어노테이션이 기입된 bean을 등록하지 않도록 방지하는 것 PostRepository에 사용자 메서드 추가 /** * JPA의 기본적인 동작 원리와 빈 등록 * * @Repository가 없어도 Bean으로 등록해 줌 * @EnableJpaRepositories 여기서부터 시작한다 * EnableJpaRepositor..

JpaRepository 인터페이스 매직 인터페이스 @Repository가 없어도 빈으로 등록해 줌. @EnableJpaRepositories 매직의 시작은 여기서 부터 매직은 어떻게 이뤄지나? 시작은 @Import( JpaRepositoriesRegistrar.class ) 핵심은 ImportBeanDefinitionRegistrar 인터페이스 Bean을 프로그래밍을 통해 등록할 수 있게 한다. JpaRepository를 상속받은 모든 인터페이스들을 찾아서 빈으로 등록해준다. ImportBeanDefinitionRegistrar를 통한 Bean 등록 과정 간략 예시 /** * ImportBeanDefinitionRegistrar를 통한 Bean 등록 과정 간략 예시 */ public class Jume..
JPQL (HQL) Java Persistence Query Language / Hibernate Query Language 데이터베이스 테이블이 아닌, 엔티티 객체 모델 기반으로 쿼리 작성 JPA 또는 하이버네이트가 해당 쿼리를 SQL로 변환해서 실행함 https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#hql Hibernate ORM 5.2.18.Final User Guide Fetching, essentially, is the process of grabbing data from the database and making it available to the application. Tuning ..