IT/SPRING8 Q 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 package com.gucci.evalv.controller; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Control.. 2019. 7. 16. [Spring]AOP SqlMapConfig 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 에러 발생 처리 1 2 3 4 5 6 7 8 9 10 11 package com.json.jsonroot.common; // AfterThrowing(예외 발생했을 때 실행) //타켓 메소드가 수행 중 예외를 던지게 되면 어드바이스 기능을 수행 public class AfterThrowing { public void afterThrowingLog(Throwable exp) { //exp 일치 시켜줘야함 System.out.println("[AfterThrowing ] : 비즈니스 로직 수행 중 오류가 발생하면 동작이다."); System.out.println("ex : " + exp.toString()); } }.. 2019. 7. 4. AOP 용어 AOP(Aspect Oriented Programming)의 정의 - 여러 객체에 공통으로 적용할 수 있는 기능을 구분함으로써 재사용을 눂여주는 프로그래밍 기법이다. - AOP 핵심 기능과 공통 기능의 구현을 분리함으로써 핵심 기능을 구현한 코드의 수정 없이 공통 기능을 적용할 수 있게 만들어 준다. - 애플리케이션을 개발하기 위하여 관심을 가지고 구현 해야 하는 각각의 기능들을 관심 사항(Concern)이라 한다. AOP 용어 1) 공통 기능의 코드 : 횡단(공통) 관심 사항(cross-cutting concern) 예) 로깅, 트랜잭션 처리 2) 핵심 기능의 코드 : 핵심 관심 사항 (core concern) **************AOP의 주요 용어************************ 1... 2019. 7. 4. [Spring] 스프링 계층 구조 2019. 6. 26. [Spring] 값 보내기 정상적으로 작동 시키는 코드 1 2 3 http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white">cs index8.jsp LoginForm8.jsp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 로그인 입력 form { margin: auto; text-align: center } tr, td { text-align: center } 나이 http://colorscripter.com/info#e" target="_blank" style="color:#.. 2019. 6. 26. [SPRING]Spring MVC web.xml에 filter 기능 추가 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true CharacterEncodingFilter /* contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener appSe.. 2019. 6. 21. 이전 1 2 다음