본문 바로가기
Debugging&Solution/Debugging

[Debugging] IntelliJ 에서 SpringBoot (Gradle ) 실행 시 Unnecessarily replacing a task that does not exist is not supported 에러 발생할 때.

by 코딩의성지 2020. 6. 26.

Gradle로 빌드한 Springboot를 돌려보려고 할때.

Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead.

위와 같은 에러가 발생했다.

 

빌드와 실행환경이 Gradle로 설정되어있어서, 일반 자바 처럼 실행이 안되는 것이다.

Build and run using: 부분을 Gradle -> Intellij IDEA로 변경해주자. 그리고 Run tests using 역시 아래와 같이 IntellJ IDEA로 변경해주자.

 

이렇게 해주면 IntelliJ에서 Gradle을 통하지 않고 바로 자바를 실행시켜준다. 만약 이렇게 해도 안되면 그냥 프로젝트를 다시 생성해주자.

반응형

댓글