본문 바로가기

Spring

(8)
스프링 MVC 패턴 어플리케이션 개요 스프링 MVC 는 스트럿츠 등 웹 어플리케이션 프레임워크와 동일하게 Front Controller 패턴을 채용하고 있다. FrontController 패턴이란 핸들러 오브젝트를 매개로 하여 요청을 분배함으로써 요청을 통합하고, 요청에 대해 통일된 처리를 기술할 수 있도록 하기 위한 패턴이다. 스프링에서 브라우저로부터 송신된 요청은 모두 스프링 MVC 에 의해 제공되는 DispatcherServlet 클래스에 의해 관리되고 있다. 웹 브라우저로부터의 Request 는 DispatcherServlet 인스턴스로 보내진다. Request 를 받은 DispatcherServlet 인스턴스는 어플리케이션 안에서 공통처리를 실행한 다음, RequestURL 고유의 처리를 실행하는 Request Controller ..
AOP Alliance [ aopalliance.jar ] aopalliance.jar AOP 를 사용하기 위해서 필요한 라이브러리 Advice 용 Class 작성시 사용됨. 부언하기는 org.springframework.aop.MethodBeforeAdvice and AfterRunningAdvice and ThrowsAdvice 위 세가지 Advice 를 하나로 묶음. 즉, 메서드 실행 전, 후 도는 예외박생 시점에 공통기능을 실행할 수 있다. http://www.jarfinder.com/ http://sourceforge.net/projects/aopalliance/ AOP Alliance (Java/J2EE AOP standards) MotiviationsAspect-Oriented Programming (AOP) is a programming techn..
Spring cglib The cglib library is not included in Spring 3.0 distribution. So, you have to manually download and include in your project. Spring cglibIn this section we will learn about Spring cglib library and understand the importance of it. You will also find the url to download cglib libraryWhat is cglib? The cglib is high performance library in Java. It is used to extend Java classes and implement inter..
Spring fw AOP and Paypal soap http://en.wikipedia.org/wiki/Aspect-oriented_programming aspect Logger { void Bank.transfer(Account fromAcc, Account toAcc, int amount, User user, Logger logger) { logger.info("transferring money..."); } void Bank.getMoneyBack(User user, int transactionId, Logger logger) { logger.info("User requested money back"); } // other crosscutting code... } https://cms.paypal.com/us/cgi-bin/?cmd=_render-c..
자바 - Log4j 사용법 ( 설명 자세히 잘 되어 있음 ) 자바 - Log4j 사용법 개발 2011/06/30 17:17 http://blog.naver.com/gh2501/131642061 출처 : http://narrowway.tistory.com/78 첨부파일 : 압축해제후 log4j-1.2.14.jar 파일을 JDK설치된 폴더의 lib/ext 디렉토리에 카피후 프로젝트 properties 의 Java Build Path > Library > Add External Jars ... 에서 추가시킴 LOG4J I. 들어가면서.. 그리고 log4j log4j는 자바 어플리케이션에서 빠르고 효과적으로 로깅 할 수 있도록 도와주는 오픈 소스 프로젝트입니다. 로깅(logging)은 코드의 가독성을 떨어뜨리는 단점이 있지만 애플리케이션에 문제가 있을 때 개발자가 자세한..
Java 연습 2008-1 Banking 2008년 여름 자바 교육받을 때 coding 했던 단순 Banking 프로그램이닷 ㅎㅎ최근에 Spring Framework 교육받다가 예전에 저장해 두었던 폴더에서 파일 발견...반가운 마음에 블로그로 가져와 파묻히지 않도록 ㅋㅋ import java.util.*; import java.io.*; import javax.swing.*; class Value{ int balance[] = new int[10]; // balance[numberofaccounts] int account_array[] = new int[10]; // 계좌번호 int secret_array[] = new int[10]; // 비밀번호 int numberofaccounts=0; // 등록된 계좌 넘버링 int secret_num..
Spring 과 iBatis 연동 Spring 과 iBatis 연동 http://www.mybatis.org/java.html Past Release 2.3.4 ibatis-2.3.4.726.jar 를 webcontent 의 lib 에 저장 // Default 생성자가 반드시 있어야 함. // 두번째 글자가 대문자인 경우 못찾는 경우 있음. ex. dName(x) // ibatis Mapper Class 를 만들어 줘야 함. ** ibatis sql Mapper framework SQL 을 실행한 결과를 담을 수 있는 Parameter Class 와 ResultSet 의 결과 값을 저장할 수 있는 Class 를 셋팅해 두어야 함. C:\springsource\ibaits download\ibatis-2.3.4.726\simple_exam..
스프링 First class 2010 .07 .03 (토) > http://www.springsource.com/ // 기본 반복되는 처리 : Logging Transaction Security Logging Transaction 처리 계속 반복 되나 è AOP 형태로 처리 가능 LoggingAdvice , TransactionAdvice , SecurityAdvice Container 가 설정파일에서 서로의 연결관계를 담당 객체끼리 의존 관계 – 어떤객체를 어떤 객체에 넣고 하는 부분을 설정파일에서 처리하겠다. *JEE Email 기능 D:\dev_Spring\spring-framework-2.5.4\dist\ spring.jar 기본구성 // MVC Frame work 불포함. 작업하면서 필요한 기능 추가 D:\dev_Spring\spring-framewor..