IntelliJ

    [ SpringBoot + jsp + intellij ] jsp 사용을 위한 설정

    - 설치 환경 intellij: IntelliJ IDEA 2021.1.3 (Ultimate Edition) jdk: java17 spring boot: 2.6.4 1. spring boot 설정 Intellij Community 버전은 https://start.spring.io/ 에서 프로젝트르 세팅 1. *Packaging 방식을 War로 선택 (jar방식은 지원 안되는 듯) JSP Limitations When running a Spring Boot application that uses an embedded servlet container (and is packaged as an executable archive), there are some limitations in the JSP support...

    [ Intellj / 인텔리제이 ] Execution failed for task ':test'.

    1. 상황 Intellij를 통해 간단한 출력용 코드를 junit으로 돌리는데 에러가 발생 class를 public으로 변경해도 동일 에러 발생 메소드에 public으로 변경해도 동일 에러 발생 @SpringBootTest public class UserSearchRepositoryTest { @Test void 사용자_생성() { System.out.println("aaaa"); } } Execution failed for task ':test'. > There were failing tests. See the report at: file:///D:/sideProject/elastic-jdk17-toy/build/reports/tests/test/index.html * Try: > Run with --..

    [Intellij / 인텔리제이] jacoco를 이용한 테스트 커버리지 확인

    서론 jacoco는 무엇일까? Java code coverage tools(jacoco) : 테스트를 실행할 때 실행되는 코드 줄을 등록하여 코드의 어떤 부분이 테스트되는지 알아내는 것을 목표로하는 도구 참고 사이트: https://en.wikipedia.org/wiki/Java_code_coverage_tools 본론 개발 환경: Intellij 테스트 환경: jUnit5 1. build.gradle 파일을 열어서, plugins 하위에 id 'jacoco' 를 입력한다. 2. Intellij 우측에 Gradle을 클릭 후 새로고침을 하면 verification이 나타난다. 그 하위에 test를 실행한다. 3. test를 실행 후 모두 성공하면, jacocoTestReport를 클릭한다. build >..

    [Intellij / 인텔리제이] 프로젝트 버전 안맞는 현상 ( Execution failed for task ':compileJava'. )

    원인 - intellij를 설정할 때 기본 jdk 버전에 차이 때문에 빌드 에러가 발생했다. 집 - jdk 11 회사 - jdk 1.8 해결 1. File > Project Settings > Project > Project SDK SDK 버전을 새로 다운로드 받아서 버전을 맞춘다. ( jdk 1.8 -> jdk 11) 2. File > Settings > Build Tools > Gradle - Gradle JVM 버전 설정 ( jdk 1.8 -> jdk 11) 3. File > Settings > Compiler > Java Compiler - Project bytecode version이 맞는지 확인 결론 및 참고사항 jdk 버전을 맞추지 않으면, 피곤한 일이 생긴다. 참고로 프로젝트에 jdk 버전..