본문 바로가기

Memo/Note7

[Error] unknown enum constant When.MAYBE 문제 스프링 컨테이너 코드를 컴파일 하니 unknown enum constant When.MAYBE라는 경고가 출력되었다. @Nullable 어노테이션을 사용할 때 발생하는 문제라고 한다. 해결 이 경고는 javax.annotation.meta.When 프로젝트 런타임에서 열거형을 사용할 수 없기 때문에 발생한다. 이 경고를 수정하려면 JSR305 구현을 가져와야 한다. Google 버그 찾기 저장소에는 문제를 해결해야 하는 JSR305 구현이 포함되어 있다. https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305 build.gradle에 의존성 추가 ... dependencies { ... implementation 'com.google... 2022. 8. 16.
[Error] cannot resolve symbol 'springbootapplication' 보호되어 있는 글 입니다. 2022. 8. 14.
[Error] error: unmappable character (0xEC) for encoding | Build Gradle와 IntelliJ IDEA 문제 인텔리제이에서 테스트를 돌리자 error: unmappable character (0xEC) for encoding 에러가 발생했다. 컴파일러의 인코딩 방식이 주석의 한글을 인식하지 못한 것이다. 해결 🍎 첫 번째 방법 File Encodings 설정 변경 File → Settings → Editor → File Encodings 네모 박스의 설정을 UTF-8로 변경한다 Help → Edit Custom VM Options... 아래 코드를 추가해 준다 -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 🍎 두 번째 방법 File → Settings → Build, Excution, Deployment Build and run using 설정을 IntelliJ IDE.. 2022. 7. 23.
[Error] Java main 실행 안 됨 | Java file outside of source root 문제 1. 자바 소스 파일 작성 후 Run 실행이 안 됨 2. 자바 파일이 소스 루트에 있지 않다는 메시지! 해결 https://stackoverflow.com/questions/63521181/java-file-outside-of-source-root-intellij Java file outside of source root intelliJ I have cloned a spring boot project from GitLab having multiple branches in IntelliJ. I checkout to the branch in which I want to work. But I am getting "Java file outside of source root"... stackoverflow... 2022. 7. 10.
[Error] iml 파일을 GitHub에 올려야 하는가? | gitignore 문제 Git에서 Clone을 받은 후 소스 코드 수정 후에 보니 iml 파일과 .idea 파일이 생성된 것을 확인할 수 있었다 · .idea: IntelliJ의 IDE 옵션 저장 · iml(IntelliJ IDEA Module): 자바 응용 프로그램을 생성 시 IDE가 모듈 구성을 xml 형태로 기술한 것 ※ out 폴더는 생성된 class 파일을 저장한다! 해결 💡 다른 컴퓨터 환경에서 작업 시 문제가 발생할 수 있으므로 IDE 관련 파일은 ignore 하여 공유한다 .gitignore Backup File이나 Log File, 혹은 컴파일 된 파일들을 Git에서 제외할 수 있는 파일 2022. 7. 8.
인프런 스프링 강의 보호되어 있는 글 입니다. 2022. 3. 9.