본문 바로가기

Java 웹 프로그래밍67

IntelliJ "Could not target platform" 에러 그레이들을 사용하여 자바11 스프링 프로젝트를 만들다가 다음과 같은 에러를 확인했다 Execution failed for task ':compileJava'. > Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 다음과 같이 프로젝트 설정을 확인하여 에러 해결 완료 File -> Project Structure -> Project 에서 Project .. 2021. 5. 13.
호다닥 정리할것들 모음 1. 서비스 순환참조의 해결 방법 - 우리는 레이어를 하나 더 추가하는 방식으로 해결을 하는데 그 외에는 어떤 방식이 있는지 2. @RequestHandlerMapping - isHandler - 빈으로 등록된 @Component들 중에 Controller 혹은 RequestMapping 어노테이션이 붙어 있는지 확인하고 붙어 있다면 핸들러로 인식한다. 3. Serlvet vs Spring 4. Spring vs SpringBoot 5. Spring Application Context - WebTestClient 6. async-profiler 7. Jackson Object Mapper 8. 테스트 커버리지 9. Controller vs RestController - RestController를 까보면.. 2021. 5. 8.
백기선 자바스터디 10주차 멀티쓰레드 프로그래밍 Thread 클래스와 Runnable 인터페이스 쓰레드의 상태 쓰레드의 우선순위 Main 쓰레드 동기화 데드락 Thread 클래스와 Runnable 인터페이스 Process와 Thread의 관계 Process? 메모리에 올라와 운영체제로부터 시스템 자원을 할당 받아 실행되고 있는 프로그램의 인스턴스 할당받는 시스템 자원의 예 운영되기 위해 필요한 주소 공간 Code, Data, Stack, Heap 구조의 독립된 메모리 영역 각각의 프로세스는 독립된 메모리 영역을 할당 받는다. 별도의 주소공간에서 실행되며 한 프로세스는 다른 프로세스의 변수나 자료 구조에 접근 불가하다. 만약 다른 프로세스의 자원에 접근 하려면 프로세스 간의 통신을 사용해야 한다. IPC( Inter Process .. 2021. 2. 27.
AllArgsConstructor, RequiredArgsConstructor에 staticName 옵션을 이용한 static factory 메소드 생성 staticName이라는 옵션을 사용하여 생성자를 private으로 생성하고, private 생성자를 감싸고 있는 static factory 메소드를 추가할 수 있다. // 롬복코드 @AllArgsConstructor(staticName = "of") public class TestDTO { private int price; private int discount; private final int amount; } // 자바 코드 @Getter public class TestDTO { private int price; private int discount; private final int amount; private TestDTO(int amount){ this.amount = amount; } publi.. 2021. 2. 14.
728x90