본문 바로가기
개발/Spring Boot

12.webjars 설정

by 카리3 2021. 2. 15.

1. pom.xml 설정

		<dependency>
		    <groupId>org.webjars</groupId>
		    <artifactId>jquery</artifactId>
		    <version>3.5.1</version>
		</dependency>	

2. JSP

<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ include file="/views/include/include-header.jsp" %>

<script type="text/javascript" src="${pageContext.request.contextPath}/webjars/jquery/3.5.1/jquery.js"></script>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Main</title>

</head>
<body>
  Hello World!!   <br>
  
  <kang:kangspan color="yellow" iterNum="5">
       ktw
  </kang:kangspan>
  <br>  
  
  <kangong:tospan color="blueviolet" iterNum="5">
      hello
  </kangong:tospan>
  
  ${kangfunc:out("abc")}; <br> 
  <br>
  ${kangfunc:getTest("ktw")}
  
  <script>
  $( document ).ready(function() {
	    console.log( "ready!" );
	});
  </script>
</body>
</html>

 

 

 

'개발 > Spring Boot' 카테고리의 다른 글

11.Tag Library  (0) 2021.02.15
10.SQL Log 설정  (0) 2021.02.12
9. Annotation 설정  (0) 2021.02.12
8. Spring Security 설정  (0) 2021.02.12
7.aop 설정  (0) 2021.02.11