[IntelliJ] contextLoads() error
Tools/IntelliJ2024. 2. 6. 22:32[IntelliJ] contextLoads() error

배경 평소와 다를것 없이 스프링부트 프로젝트를 만들고 실행을 시키려던중, 다음과 같은 에러가 발생하였습니다. contextLoads() 이런 에러가 발생한 것이였습니다. 원인 main에는 application.properties 파일이 존재하지만 test에는 application.properties 파일이 없어서 발생하는 문제 해결과정 밑줄표시가 되어있는 파일의 위치에 들어가면 이렇게 코드가 작성되어 있을 것입니다. package com.example.practicespringboot; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class Pract..

[GitHub]  ! [rejected]        main -> main (fetch first) 에러 발생
Tools/GitHub2024. 2. 4. 21:10[GitHub] ! [rejected] main -> main (fetch first) 에러 발생

배경 git status git add . git commit -m "커밋 메시지 작성" git push origin main 프로젝트를 진행도중 터미널로 푸시를 하려던때, 위와 같이 명령어를 입력하니 이런 에러가 발생하였습니다. ! [rejected] main -> main (fetch first) 결국 강제로 푸시하는 명령어를 입력하여 푸시를 하였지만, 원인과 그 이유를 해결하고 싶어 이렇게 블로그를 작성하게 되었습니다. 원인 원격저장소와 현재 작업중인 로컬저장소가 동기화되지 않았을 때 발생 해결방법 두가지의 명령어 중 하나만 선택하여 해결을 할 수 있습니다. git pull --rebase origin main git push origin +main 이렇게 한 뒤 다시 푸시를 해보니 깔끔하게 푸시까..

image