에러해결

에러 해결

[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..

에러 해결

[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() 메서드만 실행해보자. 여전히 기분 나쁜 빨간 메시지가 보인..

데부한
'에러해결' 태그의 글 목록