Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 유니티Material
- spring jpa 사이드프로젝트
- 유니티기초
- 스프링 게시판 만들기
- 파이썬 괄호 회전하기
- springboot 게시판만들기
- jpa 게시판
- spring jpa 게시판
- 타입스크립트 기초
- springboot 게시판 프로젝트
- 유니티
- 파이썬 기초
- springboot 미니프로젝트
- 타입스크립트 기초문법
- JS기초
- 스프링부트 게시판만들기
- 유니티Cube
- typescript 기초문법
- 스프링부트 update
- 스프링부트 회원가입
- 스프링게시판프로젝트
- 스프링부트 블로그
- 스프링부트 미니프로젝트
- python 괄호 회전하기
- 타입스크립트 기본문법
- 괄호 회전하기 파이썬
- 스프링부트 블로그만들기
- springboot 사이드프로젝트
- springboot 게시판
- 프로그래머스 괄호 회전하기 python
Archives
- Today
- Total
Digking's cave
SpringBoot 오류 해결 ] [ERROR] Failed to execute goal org.springframework.boot:Execution default-cli of goal org.springframework.boot:spring- boot-maven-plugin:2.7.5:run failed: Unable to find a single main class from the following candidates 본문
Spring/Spring 오류해결
SpringBoot 오류 해결 ] [ERROR] Failed to execute goal org.springframework.boot:Execution default-cli of goal org.springframework.boot:spring- boot-maven-plugin:2.7.5:run failed: Unable to find a single main class from the following candidates
디깅 2022. 11. 8. 15:59728x90
오류
Spring Boot 프로젝트 실행 중 다음과 같은 오류가 발생했다.
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.5:run (default-cli) on project demo: Execution default-cli of goal org.springframework.boot:spring-
boot-maven-plugin:2.7.5:run failed: Unable to find a single main class from the following candidates [com.example.securingweb.SecuringWebApplication, com.example.demo.DemoApplication]
main()이 2개로 설정되어 있어서 maven에서 단일 main class를 찾지 못해서 오류가 발생하였다.
해결방법
main을 하나로 유지하거나 혹은 main이 여러개 일 때 기본 main을 pom.xml 내에 설정할 수 있다.
spring-boot-main-pugin 플러그인 내에 configuration으로 메인이 되는 class를 지정해주면 된다.
반응형