카테고리 없음
Intellij 에서 사용하기 위해 환경설정
parkrams
2023. 3. 31. 15:38
728x90
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.7'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'hello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
- 보통 오류가 External Libraries 에 JDK가 설정이 안 돼 있어 오류가 생기는 경우가 많다.
그럴 때 build.gradle에 위에 코드를 입력 후 저장 해 주면 jdk 추가하기 위해 자동 업데이트를 실행한다.
--------------------------------------
다시 intellij + jdk 11 + maven 으로 다시 시작
- 환경 변수 JDK 11로 바꾼 뒤
- 인텔리J 내에서 쓰던 17을 JDK 11버전으로 바꾸고
!!!! 일단 지금은 시간이 아까우니 나중에 다시 시도 하곘음!!!!!!
그냥 sts로 실습해야지...
728x90