문제
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.com
1. 모듈 우클릭 후 Project Structure에 들어간다
2. Sources에 소스 파일이 있는 src 폴더 지정
해결 완료!
'Memo > Note' 카테고리의 다른 글
[Error] cannot resolve symbol 'springbootapplication' (0) | 2022.08.14 |
---|---|
[Error] error: unmappable character (0xEC) for encoding | Build Gradle와 IntelliJ IDEA (0) | 2022.07.23 |
[Error] iml 파일을 GitHub에 올려야 하는가? | gitignore (0) | 2022.07.08 |
인프런 스프링 강의 (0) | 2022.03.09 |
IntelliJ 단축키 (0) | 2022.03.02 |
댓글