방법1 ) gradle 에 다음을 추가한다.
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.apache.httpcomponents:httpclient:4.5.7'
implementation 'commons-collections:commons-collections'
implementation 'org.springframework.boot:spring-boot-configuration-processor'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
=======================================
방법2) maven 에 다음을 추가한다.
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.1</version>
<scope>compile</scope>
</dependency>
=======================================
방법3) 직접 jar 다운로드후 sts에 추가한다.
http://apache.tt.co.kr//httpcomponents/httpclient/binary/httpcomponents-client-4.5.10-bin.zip
=> 위의 jar 파일 다운로드후 압축풀기
=> Package Explorer 우클릭
=> properties
=> JAVA BuildPath
=> Add external JARs
=> jar파일 찾아서 추가
=> 완료
=========================================
위의 방법중 골라서 적용후 자동 import 해보면 import 가 된다.
'Spring' 카테고리의 다른 글
AOP 핵심비즈니스에 붙일 어노테이션 사용해서 만들기 (0) | 2020.01.16 |
---|---|
AOP란? (개념 + ProxyFactory 사용하여 설정) (0) | 2020.01.15 |
No converter for [class com.example.Model.ResponseNaverMovie] with preset Content-Type 'application/json;charset=UTF-8' 에러 (0) | 2020.01.14 |
Spring Lazy Initialization (0) | 2020.01.14 |
jsp_ajax_json_practice (1) (0) | 2020.01.14 |