본문 바로가기

ProblemSolving

(6)
[SpringBoot] 프로젝트 생성 후 빌드 실패 Java 11 Spring Boot 3.0.1 오류 메세지 A problem occurred configuring root project 'shop'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.1. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.1 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3...
[IntelliJ] 메세지, 국제화 테스트 중 한글 깨짐 한글이 ?? 로 표시됨 해결 방법 https://www.inflearn.com/chats/242157 설정 변경 후 메세지 설정 파일 ( messages.properties ) 를 다시 열어보면 한글이 깨진 상태로 기록돼있는데 이것을 다시 한글로 입력해서 저장
[IntelliJ] Java file outside of source root 외부 프로젝트 불러온 후 세팅 중 오류로 자바 파일의 경로를 IDE가 인식 못하는 문제 > 해결 방법 Project Structure > Modules > java folder Marks as "Sources"
[Servlet] Error creating bean with name 'servletComponentRegisteringPostProcessor' org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletComponentRegisteringPostProcessor': Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: javax/servlet/annotation/WebServlet JSP를 사용하기 위해 패키징을 War로 설정한 프로젝트에서 SpringApplication 실행 중 오류 발생 해결 방법 IntelliJ 무료 버전의 경우 해당 설정을 IntelliJ IDEA가 아니라 Gradle로 설정해야 한다. Jar 파..
[Querydsl] Execution failed for task ':compileQuerydsl'. com/mysema/codegen/model/Type Querydsl 설정 검증 중 querydsl.Tasks.other.compileQuerydsl 실행 불가 해결 방법 최신 스프링 부트에서는 build.gradle에 Querydsl 버전을 명시해야 한다. (스프링 부트 2.6부터는 Querydsl 5.0을 사용) dependencies{ //Querydsl 버전 명시 필요 implementation "com.querydsl:querydsl-jpa:${queryDslVersion}" annotationProcessor "com.querydsl:querydsl-apt:${queryDslVersion}" }
[Git] refusing to merge unrelated histories 이미 존재하는 원격 저장소에 새로운 로컬 프로젝트 동기화 IDE 세팅 문제로 오류가 발생하여 새로운 프로젝트를 생성한 후 기존 코드를 복사하여 문제를 해결했다. 그런데 git 원격 저장소에 새로운 프로젝트를 동기화하려고 하니 연결된 기존 프로젝트와 연관 기록이 없어 merge, push가 전부 안먹었다. (commit까진 됨) 해결 방법 프로젝트 병합 명령(pull)에 아래 옵션 추가 > git pull origin 브런치명 --allow-unrelated-histories git pull origin master --allow-unrelated-histories