main 함수 실행 버튼
1127
작성한 질문수 2
안녕하세요.
프로젝트를 열고 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에서 다운받은 버전과 cmd창에서 java -version, javac-version, intellij setting build에서 gradle version, JVM version java compile version 모두 비교하여 통일시켜주었습니다 :) 화이팅!
0
start.spring.io에서 packaging이나 java 버전 선택에서 문제가 있을까요? 8version을 받았습니다.
Gradle JVM은 1.8 version을 사용하여 build.gradle은 문제없이 run 이 되었습니다.
답변 부탁드립니다 ㅠㅠ
File>Setting>Build,Execution, Deployment>Build Tools>Gradle>Gradle
..
0
78
2
Unused property.....
0
102
2
project JDK is misconfigured
0
133
2
외부 API의 ID 타입(String/UUID)과 내부 도메인의 ID 타입(Long)이 불일치할 때의 설계 정석
0
83
2
단위/통합 테스트 버전충돌 문제
0
91
2
❗️springboot 4.0.2 버전 aspectj dependency 설정❗️
0
231
1
왜 컨트롤러는 변한게 없는데 새로 만든 html 파일이 뜨나요?
0
104
2
윈도우 build test오류 질문
1
103
2
테스트 관련 공부에 대한 조언을 얻고 싶습니다
0
101
2
테스트 실행 시 에러 질문
0
292
1
name을 통한 비교와 객체를 통한 비교
0
77
1
빌드 후 libs 없음
1
130
1
윈도우 gradlew.bat 에러
0
168
1
@PostMapping("/members/new")가 동작하지 않습니다
0
90
1
java static class와 kotlin class
0
79
1
스프링 DB연결
0
127
1
소요 시간
0
87
2
ddl.sql에 빨간 밑줄
1
102
2
welcome page 에러
0
183
3
잘 모르겠습니다.
0
164
2
fail을 똑같이 쳤는데 오류가 발생해요
0
158
2
index.html Welcome page
0
125
1
프로젝트 gradle-groovy ?
0
372
1
테스트코드 메서드명 한글
0
204
2





