4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WebJarsのすすめ

Last updated at Posted at 2018-04-14

WebJarsとは何か?

  • JavaScript や CSS などのフロントサイドのライブラリの依存関係を、javaのライブラリと同様に、Maven(Gradle)で管理できるようになった仕組み。

WebJarsの使い方

  • mavenの設定
pom.xml
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>3.3.5</version>
</dependency>

  • htmlでの設定
html
<script src="/webjars/bootstrap/3.3.5/js/bootstrap.min.js" ></script>

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?