300x250

개요


웹 어플리케이션 프로젝트에 직접 파일을 넣거나 CDN으로 연결하는 방법이 아닌

jar 패키징해서 사용

 

관련 사이트


www.webjars.org/

 

사용법


1. 위 사이트서 사용하고자 하는 라이브러리 탐색

2.  'Build tool ( Maven, Gradle....)' 선택

3. 프로젝트에 Dependency 추가 및 동기화

4.  라이브러리 확인 ( Spring -> External Librarily )

 

5. 웹 어플리케이션 리소스 맵핑 설정 점검

Spring boot에 경우 :

Resouce Mapping  -> classpath:/META-INF/resources/webjars/

 

6. 사용

<script src="/webjars/[라이브러리 파일]"></script>

반응형

+ Recent posts