Spring2 [Spring] 컨테이너 / DI / AOP 1. Spring Container: 사용자 정의 클래스 관리(생성, 소멸) =ApplicationContext =WebApplicationContext =AnnotationConfigApplicationContext 2. 생성시에 필요한 데이터 전송 DI==>setXxx(), 생성자의 매개변수 p: c: 3. AOP: 중복 제거(자동호출) =>시점(JoinPoint), 메소드 호출(PointCut) Aspect: 공통모듈 ex) public MovieVO movieData(){ =>PointCut getConnection(); :@Before try{ setAutoCommit(false) :@Around insert(); update(); commit(); }catch(Exception ex){ rol.. 2020. 11. 18. [Spring] Legacy Project 생성시 기본세팅 1. 버전 수정하기 2. 수정 .m2가 없어도 이 소스가 있으면 다운로드까지 받아옴. 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 11.. 2020. 10. 21. 이전 1 다음