본문 바로가기

IT/Spring21

[Spring] Intellij에서 Spring + Maven 시작하기 (Mac) Mac에서 Intellij에서 Spring과 Maven을 사용하여 서버를 구동해보기 intellij - https://www.jetbrains.com/idea/ openjdk17 - brew // 18 버전을 사용할 경우 (https://jdk.java.net/18/) tomcat 10.0.22 - (https://tomcat.apache.org/download-10.cgi) 1. Homebrew를 이용해 openjdk를 설치한 후 설치 확인한다. Homebrew가 없다면 (https://kkkkang1009.tistory.com/8)에서 마지막의 설치 커맨드를 입력 brew install openjdk@17 brew list 2. brew로 설치한 Openjdk를 intellij에서 사용할 수 있도록 .. 2022. 7. 14.
[Spring][Error] The dependencies of some of the beans in the application context form a cycle Spring 혹은 Spring boot를 사용하여 서버 개발을 하다보면 아래와 같은 오류가 발생하며 실행이 안될 때가 있다. Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | userService (field private xxxxx) ↑ ↓ | securityService (field private xxxxx) └─────┘ Action: Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency.. 2022. 7. 10.
[Java][Error] java.nio.charset.MalformedInputException: Input length = 1 프로젝트 실행시 java.nio.charset.MalformedInputException: Input length = 1 오류가 발생하는 경우가 종종 있는데 인코딩 타입이 UTF-8이 아닌 경우에 발생하여 타입 변경시 해결 되는 경우가 있다. Eclipse 사용시 1. menu > run > run configurations 2. Arguments Tab > VM arguments 에 아래 문구 추가 -Dfile.encoding=UTF-8 VS Code 사용시 1. 하위 방법 중 하나 선택하여 동작 1-1. 우측 하단 Encoding 부분 클릭하거나 1-2. F1 > encoding 입력 > Change File Encoding 선택하거나 2. Reopen With Encoding > UTF-8 선택 추.. 2022. 7. 10.
반응형