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
- PODS
- TroubleShooting
- nvm
- Containers
- log
- annotation
- git
- Vue-CLI
- TypeScript
- subtree
- Scouter
- credential
- docker
- node
- 스카우터
- github
- Trouble
- VUE
- k8s
- 패턴
- MVVM
- 어노테이션
- jpa
- Shooting
- npm
- APM
- stern
- 트러블슈팅
- node버전
Archives
- Today
- Total
JSheep`s Album
[Spring Boot] 스프링부트 프로젝트 생성(gradle) 본문
1. 프로젝트 생성
- Name 입력
- 저장위치 선택
- Language 언어 선택
- Java
- Build system
- Gradle 선택
- JDK 선택
Create후 Gradle 프로젝트가 생성
2. Gradle 프로젝트를 스프링 부트 프로젝트로 변경
- build.gradle를 연다
buildscript {
ext {
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'com.jsheep.book'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.projectlombok:lombok')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('com.h2database:h2:')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
위와 같이 입력
- gradle 설정 변경 반영
- 최초 반영시 gradle에서 설정한 라이브러리들을 받고 있는 것을 확인 할 수 있다.
오른쪽 상단에 gradle 탭을 클릭 후 의존성들이 주입이 잘 되었는지 확인.
'1st Album - Dev > 02. Spring' 카테고리의 다른 글
[Spring Boot] 테스트 코드 작성하기 (0) | 2022.09.13 |
---|
Comments