• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

main 함수 실행 버튼

21.04.28 15:47 작성 조회수 705

0

안녕하세요.

프로젝트를 열고 HelloSpringApplication.java의 main함수를 실행시키고 싶은데 함수 좌측에 실행버튼이 안뜹니다.

Configurations에서 Application을 추가하여 main class를 지정하려고해도 해당 main 함수를 찾을 수 없습니다.(아래사진)

아무설정 없이 기본으로 사진과 같이 settings.gradle의 해당프로젝트를 run하면 아래와 같이 출력됩니다. 실행설정을 어떻게 해야할까요?

rootProject.name = 'hello-spring'

오후 3:46:51: Executing task ' --scan --scan --scan'...


> Task :help

Welcome to Gradle 6.8.3.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see a list of command-line options, run gradle --help

To see more detail about a task, run gradle help --task <task>

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 922ms
1 actionable task: 1 executed

Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no]  yes

Gradle Terms of Service accepted.

Publishing build scan...

A network error occurred.

A valid SSL connection could not be established.
This is likely due to the server presenting an invalid or untrusted certificate.
Please consult the following URL for more information: https://gradle.com/help/plugin-ssl

If you require assistance with this problem, please report it via https://gradle.com/help/plugin and include the following information via copy/paste.

----------
Gradle version: 6.8.3
Plugin version: 3.5
Request URL: https://scans-in.gradle.com/scans/publish/gradle/3.5/token
Request ID: a5cf95a0-2899-469e-9927-20c63a7a403f
Exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
----------

오후 3:47:05: Task execution finished ' --scan --scan --scan'.

답변 3

·

답변을 작성해보세요.

0

윤한결님의 프로필

윤한결

2021.04.30

앗...혹시 어떻게 해결하셨나요 ㅜㅜ 저도 같은 문제로 실행조차 못하고 있습니다..

김소젬님의 프로필

김소젬

질문자

2021.05.02

start.spring.io에서 다운받은 버전과 cmd창에서 java -version, javac-version, intellij setting build에서 gradle version, JVM version java compile version 모두 비교하여 통일시켜주었습니다 :) 화이팅!

0

김소젬님의 프로필

김소젬

질문자

2021.04.28

스스로 해결하였습니다 : )

네 버전문제가 맞을거에요. 자바 특정 버전에서 해당 오류가 발생하는 경우가 있다고 들었습니다.

감사합니다.

0

김소젬님의 프로필

김소젬

질문자

2021.04.28

start.spring.io에서 packaging이나 java 버전 선택에서 문제가 있을까요? 8version을 받았습니다.

Gradle JVM은 1.8 version을 사용하여 build.gradle은 문제없이 run 이 되었습니다.

답변 부탁드립니다 ㅠㅠ

File>Setting>Build,Execution, Deployment>Build Tools>Gradle>Gradle