개발/Spring Boot12 12.webjars 설정 1. pom.xml 설정 org.webjars jquery 3.5.1 2. JSP Hello World!! ktw hello ${kangfunc:out("abc")}; ${kangfunc:getTest("ktw")} 2021. 2. 15. 11.Tag Library 1. 커스텀태그 라이브러리 1) src/main/webapp/WEB-INF/taglib/customTag.tld 0.0 customTag http://customTag.com kangspan com.kangong.common.taglib.CustomTag scriptless color true true java.lang.String iterNum true true java.lang.Integer 2) CustomTag.java package com.kangong.common.taglib; import java.io.IOException; import java.io.StringWriter; import javax.servlet.http.HttpServletRequest; import javax.servle.. 2021. 2. 15. 10.SQL Log 설정 1.pom.xml 설정 org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4.1 1.16 2. application.properties 설정 spring.datasource.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.url: jdbc:log4jdbc:mysql://127.0.0.1:3306/SECKIMDB?useSSL=false&serverTimezone=Asia/Seoul spring.datasource.username=SECKIM spring.datasource.password=1234 mybatis.mapper-locations=classpath:mapper/mapping*.xml.. 2021. 2. 12. 9. Annotation 설정 1. Interface 만들기 package com.kangong.common.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface LogExecutionTime { } 2. Aspect 구현체 만들기 @Around("@annotation(com.kangong.common.annotation.LogExecut.. 2021. 2. 12. 이전 1 2 3 다음