에러 해결

에러 해결

SpringBoot 3.X 인텔리제이 켜자마자 에러가 발생했을 때 해결 법

새로운 프로젝트를 실행해보고자 git에서 팀원이 올려놓은 프로젝트를 받아서 실행해보려 했는데 켜자마자 기다렸다는 듯이 에러가 우수수 떨어졌다. A problem occurred configuring root project 'tooit'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.0. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.1.0 > No matching variant of org.s..

에러 해결

[SpringBoot] I/O error on GET request for ~ : Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

토비의 스프링부트 테스트 관련 강의를 듣는 도중 실행만하면 이 에러가 터져 1시간 정도 넘게 찾아봤는데...ㅎ 되게 허무하게 고쳤다; 일단 상세한 에러 내용은 아래와 같다. 더보기 org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8080/hello": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused) at org.springframework.web.client.RestTemplate.doExec..

에러 해결

[SpringBoot] Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true 에러 해결

한이음 프로젝트의 변경사항이 생겨 프로젝트 이름과 경로를 변경하고 서버가 실행되나 테스트해봤는데 에러가 발생했다. *************************** APPLICATION FAILED TO START *************************** Description: The bean 'boardRepository', defined in com.salmal.board.repository.BoardRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration, could not be registered. A bean with that name ..

에러 해결

[SpringBoot] message.properties 파일에 한글이 아닌 외계어가 나올 경우 문제 해결

김영한님 강의를 듣다가 messages.properties 파일을 오픈할 일이 생겼는데 아니 한글이어야 할 내용들이 이상한 외계어로 바뀌어져 있었다. 저번에 message 관련 에러가 발생했을 때 해결 방법은 아니었지만 수 많은 해결 방법 중 하나였었는데 혹시 그 방법을 사용하면 될까 해서 해봤더니 해결이 되었다! [SpringBoot] No message found under code 'hello' for locale 'null'. 에러 해결 김영한님의 강의를 열심히 듣는 도중, 다음과 같은 에러가 발생했다. org.springframework.context.NoSuchMessageException: No message found under code 'hello' for locale 'null'. at..

에러 해결

[SpringBoot] No message found under code 'hello' for locale 'null'. 에러 해결

김영한님의 강의를 열심히 듣는 도중, 다음과 같은 에러가 발생했다. org.springframework.context.NoSuchMessageException: No message found under code 'hello' for locale 'null'. at org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:76) ... 생략 영알못이지만 대략 파악해보자면 해당 메시지를 찾을 수 없어 뜨는 에러 같아서 application.properties 설정을 다시 확인했다. spring.messages.basename=message --> 변경 spring.messages.base..

에러 해결

git remote: Invalid username or password token 관련 에러 해결

종강 후의 첫 강의를 듣고 push하려했더니 아.... 너무 오랜만에 해서 그런지 아래와 같은 에러가 뜨면서 push가 되지 않았다. remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/techhan/tempSpringBoot.git/' 뭔가 token이 만료된 거 같아 github 설정에 들어가서 보니까 빙고 5월 22일부로 만료되었단다. 주황색 글씨를 클릭하면 재발급? 유효기간 연장?을 할 수 있는 창으로 넘어간다. 원하는 기간을 선택하고 Regenerate token을 누르면 된다. 발급이 완료되면 token 키를 보여주는데 잃어버리면 또 발급받아야하니 복사해서 어딘가에 붙여두자. 그리고 ..

에러 해결

[Github] error: failed to push some refs to 'repository 경로' 에러 해결

강의를 다 듣고 깃에 push하려했는데 어...... 에러가 발생했다. 그래서 git status를 입력해 현재 상태를 봤는데.. 딱히 별 이상이 없어보인다. 검색해서 찾아보니 대부분 pull을 안 받아 충돌나는 경우에 발생하는 메세지라한다. 그래서 일단 안전하게 백업 후 git pull git add . git commit -m "블라블라" git push 위 순서로 명령어를 입력하니 정상적으로 push가 완료되었다.

에러 해결

[IntelliJ] 인텔리제이servletComponentRegisteringPostProcessor': Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: 에러 해결

김영한님의 강의를 이제 들어볼까 하면서 스프링부트를 실행했는데 에러가 발생했다. 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 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(..

에러 해결

[IntelliJ] Execution failed for task ':CoreApplication.main() 에러 및 8080 port 사용 문제

김영한님의 스프링 핵심 원리 기본편을 듣는 중 웹 라이브러리 설치 후 Application을 Tomcat으로 실행하는 부분에서 에러가 발생했다. Execution failed for task ':CoreApplication.main()'. > Process 'command '/Library/Java/JavaVirtualMachines/jdk-11.0.14.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 코드를 수정하거나 그런 부분은 없어서 뭔가 싶었는데 김영한님의 Console창이 뭔가 나랑 다른 걸 느껴서 혹시 몰라 빌드를 Gradle에서 IntelliJ로 변경해보니까 에러없이 잘 실행되었다. MAC 기준 IntelliJ IDEA > ..

에러 해결

[IntelliJ] 0 containers and 1 tests were Method or class mismatch 에러

김영한님의 스프링 핵심 원리 기본편을 듣는 중 테스트를 작성하고 돌려봤는데 다음과 같은 빨간 메시지가 보였다. 뭔가 테스트는 정상적으로 동작하는 거 같지만 그래도 개발자라면 빨간 메시지가 거슬리지 않을 수 없다. 서치 해본 결과 만약 한 클래스에 테스트 메서드를 두 개 작성했는데 하나만 사용하고 돌렸을 경우에 발생하는 메시지라고 나온다. 검증해보자. 일단 테스트 코드 안에는 @Test가 붙은 메서드가 두 개 존재한다. @Test void prototypeFind() {..생략..} ... @Test void singletonClientUsePrototype() {..생략..} 두 번째 메서드인 singletonClientUsePrototype() 메서드만 실행해보자. 여전히 기분 나쁜 빨간 메시지가 보인..

에러 해결

IntelliJ Cause: invalid source release: 11 에러

인프런 김영한님의 스프링 핵심원리 수강 중 프로젝트 import 후 서버를 실행하는 과정에서 Cause: invalid source release: 11 이란 에러가 발생했다. java 11에 관한 에러인 거 같아 cmd에서 자바 버전을 확인했다. 정상적으로 java 11은 설치되어 있는 거 같은데.... 혹시 몰라 환경 변수를 확인해봤다. 이런! 환경 변수 JAVA_HOME의 변수 값이 1.8 버전의 경로로 되어있었다. Intellij를 재실행하고 서버를 켜봤는데 얽 Execution failed for task ':CoreApplication.main()'. > Process 'command 'C:/Program Files/Java/jdk1.8.0_301/bin/java.exe'' finished w..

에러 해결

Spring JSON 파일 Expected value at 1:0 에러 해결

넥사크로를 연동하는 도중 JSON 파일에 X 표시가 떠있어 심히 거슬렸다. 실행되는 데는 아무 이상이 없어 그냥 넘어가줄라 했는데 프로젝트 창만 보면 X에 눈길이 가 해결했다. 먼저 상단 Window - preferences Validation - JSON Validator 체크를 모두 해제 - Apply Yes,,, Yes여요 JSON - JSON Files > Validation에서 Enable syntax validation과 Enable schema validation 체크 그리고 Missing start object, Missing end object 두 개 다 Ignore로 설정해주면 된다. ㅖ Apply and Close를 누르면 팝업창이 또 뜬다. 그럼 나는 또 Yes여요! 그럼 또 팝업이..

에러 해결

[스프링] Log4j 어노테이션 에러 해결

위와 같이 Log4j 어노테이션이 감빵에 가면서(빨간 줄) org.apache.log4j.Logger cannot be resolved to a type 이런 메세지가 뜬다면 당장 pom.xml 파일을 열어보자. 바로 저 빨간 네모 박스에 있는 runtime 놈이 범인이니 해당 코드를 주석처리해주면 말끔히 해결할 수 있다. 주석처리 후 저장해주면 이렇게 출소한 Log4j 어노테이션을 만날 수 있다. 왜 이런 에러가 날까? 개발자 답게 한 번 찾아봤다. dependency는 각각의 scope를 가진다. scope의 종류는 아래와 같다. compile : 기본 영역이며 컴파일 시점에 필요하고 배포할 때도 포함된다. provided : 컴파일 시점에 필요하지만 배포 시점에는 불필요한 라이브러리로 JDK, Se..

데부한
'에러 해결' 카테고리의 글 목록