개발/개발환경설정12 Tiles 설정 1. POM.xml 설정 org.apache.tiles tiles-servlet ${org.apache.tiles-version} org.apache.tiles tiles-api ${org.apache.tiles-version} org.apache.tiles tiles-jsp ${org.apache.tiles-version} org.apache.tiles tiles-core ${org.apache.tiles-version} org.apache.tiles tiles-template ${org.apache.tiles-version} 2. servlet-context.xml 설정 classpath:/spring/tiles/tiles-def.xml 3. tiles-def.xml 설정 4. jsp 설정 4-1) .. 2020. 8. 10. Filter 설정 1. web.xml 필터 설정 MainFilter secretary.common.filter.MainFilter MainFilter /* 2. Filter Class 생성 package secretary.common.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.Htt.. 2020. 3. 18. Interceptor 설정 1. servlet-context.xml 2. Interceptor 개발 package secretary.common.filter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; /** * 모든 Controller 수행 전후를 Interceptor 하여 공통처리가 가능한 class */ public class CommonInterceptor extends Hand.. 2020. 3. 17. Aspectj + 어노테이션으로 로그남기기 1. pom.xml org.aspectj aspectjrt ${org.aspectj-version} org.aspectj aspectjweaver ${org.aspectj-version} org.aspectj aspectjtools ${org.aspectj-version} 2. servelt-context.xml aspectJ설정 3. Annotation Interface 설정 package secretary.common.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annota.. 2020. 3. 17. 이전 1 2 3 다음