일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 빅 오 표기법
- 스택 큐 차이
- WebClient
- 쿠키
- 마크다운 테이블
- 쿼리메소드
- 계산 검색 방식
- 클린
- mysql
- 선형 리스트
- 배열
- 클린코드
- 코드
- @ComponentScan
- 정렬
- 마크다운
- @RequiredArgsConstructor
- 내부 정렬
- 인터페이스
- 트리
- code
- java
- 클래스
- 리스트
- @NoArgsConstructor
- 연결 리스트
- JsonNode
- 자료구조
- CleanCode
- query
- Today
- Total
목록전체 글 (150)
Developer Cafe
게시글의 title과 content 속성에 특정한 문자열이 들어있는 게시물을 검색하려면... public interface BoardRepository extends CrudRepositroy { public Collection findByTitleContainingOrContentContaining(String title, String content); } findBy + TitleContaining + Or + ContentContaining과 같은 형태가 됩니다.

맨 아래에 쓰여진 매소드 정리해놨습니다. 2021/07/01 로 기본 세팅 int month = 7; int year = 2021; Calendar cal = Calendar.getInstance(); cal.set(year,month-1,1); 사례1. 연월일이 정확히 몇주차인지 알고싶다. System.out.println(getCurrentWeekOfMonth(2021,6,20)); 6월의 3주차라는 의미다. 사례2. 해당날짜의 마지막 날짜가 몇일인지 알고싶다. System.out.println(cal.getActualMaximum(Calendar.DAY_OF_MONTH)); 2021년 7월은 31일이 마지막 날짜다 라는 의미다. 사례3. 해당날짜의 마지막 주차가 몇주차인지 알고싶다. System.o..

1. 테스트용으로 두 테이블을 생성한다. CREATE TABLE parent ( pid INT AUTO_INCREMENT NOT NULL, name varchar(5), PRIMARY KEY(pid) ) ENGINE = InnoDB; CREATE TABLE child ( pid INT AUTO_INCREMENT PRIMARY KEY, parent_pid INT NOT NULL, title varchar(100), INDEX(parent_pid), FOREIGN KEY(parent_pid) REFERENCES parent(pid) ) ENGINE = InnoDB; 2. 제대로 들어가는지 테스트한다 INSERT INTO parent(name) VALUES('test'); INSERT INTO child(pa..
the server time zone value ' ѹα ǥ ؽ ' is unrecognized or represents more than one time zone. you must configure either the server or jdbc driver (via the servertimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. SELECT @@GLOBAL.time_zone, @@SESSION.time_zone; SET GLOBAL time_zone = '+9:00'; # 권한 필요 SET time_zone = '+9:00';