클라이언트에서 사용하는 jquery, bootstrap, react, vue, angular 등을 jar로 추가 할 수 있다.

웹JAR 맵핑 /webjars/**

<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>jquery</artifactId>
    <version>3.3.1</version>
</dependency>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>
    Hello!
</h1>

<script src="/webjars/jquery/3.3.1/dist/jquery.min.js"></script>
<script>
    $(function() {
        alert('hello');
    });
</script>
</body>
</html>

버전 생략하고 사용하려면

<script src="/webjars/jquery/dist/jquery.min.js"></script>
<script>
   $(function() {
       console.log("ready!");
   });
</script>