작성
·
961
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
0
start.spring.io에서 packaging이나 java 버전 선택에서 문제가 있을까요? 8version을 받았습니다.
Gradle JVM은 1.8 version을 사용하여 build.gradle은 문제없이 run 이 되었습니다.
답변 부탁드립니다 ㅠㅠ
File>Setting>Build,Execution, Deployment>Build Tools>Gradle>Gradle
start.spring.io에서 다운받은 버전과 cmd창에서 java -version, javac-version, intellij setting build에서 gradle version, JVM version java compile version 모두 비교하여 통일시켜주었습니다 :) 화이팅!