반응형
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
- pds
- regressor
- APPEND
- 백준
- 웹앱
- SOUP
- Req
- 크롤링
- lombok
- AWS
- 정보처리기사
- list
- javascript
- dataframe
- 머신러닝
- java
- BeautifulSoup
- 자바
- 정처기
- 정보처리기사필기
- BS
- request
- springboot
- crawling
- ensemble
- 비전공자
- 자바스크립트
- pandas
- Intellij
- sklearn
Archives
- Today
- Total
No sweet without sweat
[DAY 1] SpringBoot, AWS로 웹서비스 구현 <의존성 주입을 위한 환경 설정> 본문
728x90
반응형
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 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility =1.8
repositories {
mavenCentral()
}
dependencies {
compileClasspath('org.springframework.boot:spring-boot-starter-web')
testCompileClasspath('org.springframework.boot:spring-boot-starter-test')
}
1. ext 키워드
- build.gradle에서 사용하는 전역변수를 설정하겠다는 의미
-> 여기서는 springBootVersion 전역변수를 생성하고 그 값을 '2.1.7.RELEASE'으로 하겠다는 의미
2. apply plugin
- 앞서 선언한 플로그인 의존성들을 적용할 것인지 결정하는 코드
- 'io.spring.dependency-management' : 스프링 부트 의존성들을 관리 해주는 플러그인
3. mavenCentral() / jcenter()
- 기본적으로 mavenCentral을 많이 사용하지만, 최근에는 라이브러리 업로드 난이도 때문에 jcenter를 많이 사용
- mavenCetnral : 본인이 만든 라이브러리를 업로드하기 위해서는 정말 많은 과정과 설정이 필요
728x90
반응형
'SpringBoot + AWS 프로젝트' 카테고리의 다른 글
JPA - API를 만들기 (0) | 2022.06.26 |
---|---|
[DAY 5] SpringBoot, AWS로 웹서비스 구현 <롬복 설치> (0) | 2022.04.26 |
[DAY 4] SpringBoot, AWS로 웹서비스 구현 <그 전 코드 롬복으로 전환> (0) | 2022.04.25 |
[DAY 3] SpringBoot, AWS로 웹서비스 구현 <TOD, 단위테스트 차이, API작성> (0) | 2022.04.24 |
[DAY 2] SpringBoot, AWS로 웹서비스 구현 <깃 커밋을 위한 환경 설정> (0) | 2022.04.04 |
Comments