
1. 업무에서의 상황- 로컬에서 컴파일한 class파일을 서버에 올려서 실행시키고 있음- Log4j 1버전 (아주 구버전)을 사용하고 있었음- System.out.println을 놔둔상태로 개발팀이 나감 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ진짜 .. 2. 방향- Log4j 업데이트를 하려다보니 총체적 난국이다 싶었다.- Slf4j + logback 으로 아예 개편하기로 결정함- 확인하다보니 이상한걸 발견... 3. 문제점- WEB-INF 구조의 톰캣웹서버 설정을 해놓고, 서버를 띄우면 SpringBOOT가 뜸.........(???)- pom.xml 도 있는데 내용이 비어있네? maven + 스프링부트인가?했는데 applicationContext.xml이 있음(?)- Slf4j 랑 logback 라..
이 과정을 거쳐야 하는 이유가 뭘까? 로직이 명확하다. 초기 구현 시간은 더 들지만 추후에 수정이 필요한 경우 오히려 수정시간이 짧아진다. 프론트엔드가 요구하는 정보가 변경되었다면, ResDTO 만 수정하면 된다. 프론트엔드에서 들어오는 정보가 변경되었다면 ReqDTO 만 수정하면 된다. 엔티티 field 와 controller 에서 다룰 data 가 100% 동일한 경우는 거의 없을 것이다. 필드명도, 주어지는 정보도 주어야 할 정보도 다르다. 그래서 유지보수 측면에서 Transfer 객체를 만들어주는 것이다. package com.ssafy.db.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax...

ResponseEntity 는 HttpEntity 를 상속받는 클래스로, HTTP 요청 또는 응답에 해당하는 HttpHeader 와 HttpBody를 포함하는 클래스입니다. ResponseEntity 의 생성자를 봅시다. HttpStatus 는 필수이고, 그 외에 body, headers(Map) 은 선택적으로 넣을 수 있습니다. 이 세 가지 파라미터를 가진다고 생각하면 되겠습니다. body – the entity body headers – the entity headers status – the status code /** * Create a {@code ResponseEntity} with a status code only. * @param status the status code */ public ..
RuntimeException RuntimeException은 주로 프로그래머의 실수에 의해 발생될 수 있는 예외를 의미합니다. 코드를 수정하여 해결할 수 있는 예외이기 때문에 잘 숙지하고 있어야 합니다. 예시는 다음과 같습니다. 배열을 벗어난 경우 ArrayIndexOutOfBoundsException 값이 null 인 참조변수의 멤버를 호출하려 한 경우 NullPointerException 클래스간 형변환을 잘못한 경우 ClassCastException 정수를 0으로 나누려고 한 경우 ArithmeticException 입력한 데이터 형식이 잘못된 경우 DataFormatException 예외처리(Exception Handling) 이러한 예외들을 미리 처리하여 실행중인 프로그램이 비정상적으로 종료되..
Jpa package org.springframework.data.jpa.repository; import java.util.List; import javax.persistence.EntityManager; import org.springframework.data.domain.Example; import org.springframework.data.domain.Sort; import org.springframework.data.repository.NoRepositoryBean; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.QueryByE..

영문 자료출처 21.1 Using Bean Validation Constraints - Java Platform, Enterprise Edition: The Java EE Tutorial (Release 7) Java Platform, Enterprise Edition: The Java EE Tutorial Menu 21.1 Using Bean Validation Constraints The Bean Validation model is supported by constraints in the form of annotations placed on a field, method, or class of a JavaBeans component, such as a man docs.oracle.com
- Total
- Today
- Yesterday
- 싸피
- 무료폰트추천
- 폰트추천
- 스프링부트
- 개발언어순위
- 한글무료폰트추천
- 코딩도서
- 개발자
- 개발자책추천
- 개발언어추천
- intj여자
- 폰트
- 클린코더
- ssafy6기
- 깃허브계정
- 상업용무료폰트
- 개발도서추천
- ssafy합격후기
- 디즈니얼굴
- 싸피6기
- 브왈라
- ssafy결과
- 개발자커리
- 개발자도서추천
- SSAFY
- 맥과윈도우로깃허브
- 개발자로드맵
- 임대차3법
- ssafy후기
- 깃허브계정2개
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |