[카테고리:] 기술 탐방
-
![[Spring Error] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.autoconfigure.h2.H2ConsoleProperties' available 1 [Spring Error] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available](https://allhoneytip.com/wp-content/uploads/2023/12/image-47-e1703720795907-optimized.png)
[Spring Error] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.boot.autoconfigure.h2.H2ConsoleProperties’ available Spring에서 H2 Console을 설정할 때 H2ConsoleProperties 빈을 찾지 못하는 상황을 나타냅니다. 해결 방법은 간단하고 다양합니다. 🙂 해결 방법 2가지 1. dependencies 확인 build.gradle 혹은 pom.xml에 의존성 추가가 안 되어있을 수 있습니다. build.gradle (Gradle) pom.xml (Maven) 2. H2 Console 관련 코드 제거 보통 Spring Security 사용 시, Config 구현 단계에서…
-

우분투(Ubuntu)에 mongoDB 설치하는 방법
우분투(Ubuntu)에 mongoDB 설치하는 방법에 대해 알아보겠습니다. mongoDB(NoSQL)와 RDB의 차이점에 대해 궁금하신 분은, 링크를 참고해주세요 🙂 시작 전, 버전 확인 MongoDB 7.0은 64-bit Ubuntu LTS를 지원합니다. Ubuntu release 확인을 위해 putty에 아래 명령어를 붙여넣으세요. 전 22.04 LTS (“Jammy”)를 사용하기 때문에 설치할 수 있습니다 🙂 MongoDB Community Edition 설치 우선 gnupg, curl을 최신 버전으로 설치해주세요. MongoDB public GPG key를…
-
![[Git Error] LF will be replaced by CRLF the next time Git touches it 3 [Git Error] LF will be replaced by CRLF the next time Git touches it](https://allhoneytip.com/wp-content/uploads/2023/11/image-49-optimized.png)
[Git Error] LF will be replaced by CRLF the next time Git touches it
Git Error LF will be replaced by CRLF the next time Git touches it git add 시에 발생하곤 하는 에러입니다. Git이 개행(Line Endings)을 자동으로 변환하려고 할 때 나타나는 에러로 간단하게 해결할 수 있습니다. LF & CRLF Line Feed(\n)와 Carriage Return Line Feed(\r\n)로, 개행 기준이라할 수 있습니다. Git은 core.autocrlf 설정으로 시스템끼리의 개행 차이를 관리합니다. 해결 방법…
-

Spring Boot와 Swagger를 활용한 API 개발
Spring Boot와 Swagge를 활용한 API 개발 과정에 대해 다루겠습니다. 프로젝트 생성부터 Swagger 적용까지 차근차근 알아봅니다. 프로젝트 생성 1. Spring Initializr로 프로젝트 생성 Dependencies는 Spring Web, Spring Boot DevTools 등 필요한 의존성들을 담으세요. 나중에 추가하거나 제거할 수 있으니 대략적으로 생각하셔도 괜찮습니다. 기본 설정을 마치고 GENERATE 2. Swagger 의존성 추가 프로젝트를 열고 build.gradle에 아래 dependency를 추가합니다. Maven의…
-
![[포트(Port)] 프로세스 Kill 하는 방법 - 초간단 5 [포트(Port)] 프로세스 Kill 하는 방법 – 초간단](https://allhoneytip.com/wp-content/uploads/2023/11/image-42-e1699427638967-optimized.png)
[포트(Port)] 프로세스 Kill 하는 방법 – 초간단
특정 포트(Port) 사용 프로세스 Kill 하는 방법에 대해 알아보겠습니다. 프로세스 Kill 하는 방법 1. 특정 포트(Port) 사용 프로세스 찾기 우선, CMD를 키고 아래 코드의 findstr 다음 찾고자 하는 포트(Port)를 넣고 복사하여 붙여넣습니다.그럼 해당 포트(Port)를 사용하는 프로세스 아이디(PID)를 찾을 수 있습니다. 2. 프로세스 Kill 아래 코드의 pid 다음에 해당 PID를 넣고 사용하면 Kill하면 됩니다. CMD 명령어…
-
![[Spring Error] Web server failed to start. Port 8080 was already in use. 6 [Spring Error] Web server failed to start. Port 8080 was already in use.](https://allhoneytip.com/wp-content/uploads/2023/11/image-40-e1699424213651-optimized.png)
[Spring Error] Web server failed to start. Port 8080 was already in use.
Spring Error Web server failed to start. Port 8080 was already in use. 프로젝트 Build 시에 발생하는 에러입니다. default로 설정된 8080 Port가 이미 사용중이므로, 해당 프로세스를 Kill 하거나 포트 변경이 필요합니다. 해결 방법 2가지 1. 포트 변경 인텔리제이 기준 Ctrl + Shift + n 으로 application.properties 파일을 찾고, 아래 내용을 추가하여 원하는 미사용 port로 지정해주면…
-
![[Spring Error] Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 7 [Spring Error] Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled.](https://allhoneytip.com/wp-content/uploads/2023/11/image-37-e1699421169261-optimized.png)
[Spring Error] Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled.
Spring Error Error starting ApplicationContext. To display the condition evaluation report re-run your application with ‘debug’ enabled. 프로젝트 Build 시에 발생하는 에러입니다. Description을 확인해야합니다. 에러 메시지를 확인해보면 Failed to configure a DataSource 로 DB 연결 dependency가 존재하지만, 입력 정보가 없거나 잘못 되었기 때문에 발생합니다. 다른 메시지라면 아래 포스팅을 확인하세요! [Spring Error] Web server failed to…
-
![[Spring Error] Could not resolve all files for configuration ':classpath'. 8 [Spring Error] Could not resolve all files for configuration ‘:classpath’.](https://allhoneytip.com/wp-content/uploads/2023/11/image-35-e1699320800558-optimized.png)
[Spring Error] Could not resolve all files for configuration ‘:classpath’.
Spring Error Could not resolve all files for configuration ‘:classpath’. 프로젝트 Open 시에 발생하는 에러입니다. 에러 대표 메시지를 확인해보면, Gradle이 spring-boot-gradle-plugin을 찾지 못하고 있다는 것을 알 수 있습니다. 다양한 이유가 있을 수 있지만, 포스팅 전체 에러에서 아래 부분을 보면, Gradle이 Java 11과 호환되는 것을 찾고 있지만, Java17과 호환되려 한다는 것을 알 수 있습니다. 즉, 실행…
-
![[기술 면접] 10. Error와 Exception의 차이점이 무엇인가요? 9 [기술 면접] 10. Error와 Exception의 차이점이 무엇인가요?](https://allhoneytip.com/wp-content/uploads/2023/09/제목을-입력해주세요__복사본-19-001-e1695085418700-optimized.png)
[기술 면접] 10. Error와 Exception의 차이점이 무엇인가요?
저번 시간에 이어, 이번엔 Error와 Exception의 차이점이 무엇인가에 대한 면접 질문을 알아보겠습니다. 이 질문은 Spring을 다루는 직무 면접에서 자주 나오는데요, 서비스 플랫폼 회사 K사에서 받았던 기억이 납니다. Q: Error와 Exception의 차이점이 무엇인가요? Error는 Unchecked Type으로 컴파일 시점에 알 수 없고, 런타임에서 발견됩니다. 코드로 핸들링 할 수 없는 오류입니다. Exception은 Checked Type과 Unchecked Type으로 나뉘며, 코드로…
-
![[기술 면접] 7. JVM이 무엇인가요? 13 [기술 면접] 7. JVM이 무엇인가요?](https://allhoneytip.com/wp-content/uploads/2023/09/제목을-입력해주세요__복사본-16-001-e1694740964240-optimized.png)
[기술 면접] 7. JVM이 무엇인가요?
저번 시간에 이어, 이번엔 JVM에 대한 면접 질문을 알아보겠습니다. JVM에 관련된 질문은 서비스 플랫폼 회사인 K사와 게임 회사 C사에서 마주했던 기억이 있습니다. 중요한 내용이니 반드시 숙지하고 가시길 권해드립니다. Q: JVM이 무엇인가요? Java Virtual Machine으로, 자바 프로그램이 실행되는 가상 컴퓨터입니다. Java는 OS에서 실행되는 것이 아닌, JVM에서 실행됩니다. Q: JVM의 주요 구성 요소는 무엇인가요? JVM은 총 5가지로…