본문 바로가기

JAVA

(37)
Spring Boot 프로젝트 시작(IntelliJ IDEA Community Edition https://start.spring.io/ generate하면 만들어짐
GC(Garbage Collection) Garbage Collection C와 C++을 공부 해봤던 사람이라면 객체나 메모리를 할당 할때 특정 명령어(malloc, new)를 사용하는 것을 알고 있을 것 입니다. 그리고 메모리를 해제하는 명령어(free, delete) 사실을 알고 있을 것 입니다. 그러나 자바에서는 개발자가 객체를 생성하는 것은 가능하지만 메모리에 할당된 객체를 삭제하는 것은 허락하지 않습니다. 자바가 추구하는 것들 중 하나가 메모리 관리의 편리성이기 때문이라고 알고 있습니다. Stop-The-World 자바는 멀티 스레드 환경이고 Garbage Collection 또한 특정 스레드에서 동작 하게 됩니다. Garbage Collection이 실행 될 때 애플리케이션의 모든 스레드는 정지하고 Garbage Collection ..
SOLID SRP(Single Responsibility) : 단일책임원칙 OCP(Oepn Cloased): 개방폐쇄원칙 LSP(the Liskov Substitution Principle): 리스코프 치환원칙 ISP(Interface Segregation Principle) : 인터페이스 분리설계원칙 DIP(The Dependency Inversion Principle): 의존성 주입
queryDSL JOIN 클래스만들때 join관계 설정하고 public class ProjectVO{ @ManyToOne @JoinColumn(name = "OCR_DEPT_ID",referencedColumnName = "DEPT_ID") private DeptVO ocrDeptVO; } 객체 생성한다음에 QProjectVO projectVO = QProjectVO.projectVO; QDeptVO deptVO = QDeptVO.deptVO; innerjoin leftjoin List result = (List) queryFactory .select(Projections.fields(ProjectVO.class, projectVO.ProjectId, ProjectVO.DeptVO ) ) .from(projectVO) .inne..
queryDSL case When, decode new CaseBuilder() .when(~) .then(~) .otherwise() .as(~) new CaseBuilder() .when(pointEvent.pointStatus.in(PointStatus.USE, PointStatus.USE_CANCEL)) .then(pointEvent.pointAmount.multiply(-1)) .otherwise(pointEvent.pointAmount).as("pointAmount")