일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- springboot
- Spring
- elasticsearch
- Git
- devops
- java
- AWS
- 요리
- Oracle
- javascript
- ReactJS
- php
- redis
- IntelliJ
- docker
- Web Server
- Gradle
- db
- Spring Boot
- MySQL
- laravel
- 맛집
- jenkins
- tool
- ubuntu
- linux
- JPA
- it
- jsp
- Design Patterns
- Today
- Total
목록2021/01/16 (3)
아무거나
Entity Graph 쿼리 메서드마다 연관 관계의 fetch모드를 유연하게 설정할 수 있는 기능을 제공 EAGER: 끝이 One으로 끝나는 연관관계는 기본값이 EAGER 모드이다. 참조하고 있는 다른 Entity의 값도 가져온다. LAZY: 끝이 Many로 끝나는 연관관계는 기본값이 LAZY 모드이다. 자기 자신만 가져온 후 참조하고 있는 다른 Entity에 접근하면 그때야 다시 쿼리 실행 예제코드 기본은 EAGER지만 LAZY로 정보를 가져올 때 @Entity public class Reply { @Id @GeneratedValue private Long id; private String reply; /** @ManyToOne 은 참조하고 있는 다른 Entity의 값도 가져온다(Reply를 조회하였지..
소스: base-document/springsecurity.md at master · bkjeon1614/base-document (github.com) Spring Security + H2 DB + Swagger 연동시 페이지 접근 예외 처리 [SecurityConfig.java] import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configura..
JPA 사용할 때 @Table(name = "example") 로 지정한 부분에 에러 표시가(=Cannot resolve table '테이블명') 되는 부분 해결 방법1: File > Setting > Editor > Inspection > JPA > Unresolved database references in annotations 체크 해제 방법2: 데이터 베이스 연결 View > Tool Windows > Database > Data Source > 사용할 Sql 종류 선택 > Download missing driver files 클릭 및 접속 정보 입력 View > Tool Windows > Persistence 마우스 우클릭 > Assign Data Sources... 클릭 관련 테이블 정보 매핑