본문 바로가기

스프링

스프링 게시판 PageNavigation import java.util.Enumeration; import javax.servlet.http.HttpServletRequest; public class PageNavigation { private int firstPageNo; private int lastPageNo; private int prevPageNo; private int nextPageNo; private int beginPageNo; private int endPageNo; private int beginRowNo; private int endRowNo; private int currentPageNo; private int pageRowCnt; private int totalCnt; private HttpServletRequest r.. 더보기
AspectJ의 Pointcut 표현식 □ POJO 클래스를 이용하여 AOP를 적용하는 두 가지 방법 - XML 스키마를 이용하여 Aspect를 설정하는 방법. - @Aspect 어노테이션을 이용하여 Aspect를 설정하는 방법. ■ 두 방법의 공통점 - AspectJ의 문법을 이용하여 Pointcut을 설정. ■ 를 이용하여 Aspect를 설정하는 경우 - execution 명시자를 이용하여 Advice가 적용될 Pointcut을 설정. □ AspectJ의 Pointcut 표현식 - AspectJ는 Pointcut을 명시할 수 있는 다양한 명시자를 제공. - 스프링은 메서드 호출과 관련된 명시자만을 지원. ■ execution 명시자 - Advice를 적용할 메서드를 명시할 때 사용. ○ 기본 형식 execution(수식어패턴? 리턴타입패턴.. 더보기
Spring Advice 태그 1. POJO 기반 AOP 구현 - POJO 기반 Advice 클래스 작성 - 설정파일에 AOP 설정 + Advice class를 Bean으로 설정 + 태그를 이용해 Advice, Pointcut을 설정한다. 2. 시점에 따른 5가지 태그 - before : 대상 객체의 메소드가 실행되기 전에 실행됨 + return type : 상관없으나 void로 한다. + argument : 없거나 JoinPoint 객체를 받는다. - after-returning : 대상객체의 메소드 실행이 정상적으로 끝난 뒤 실행됨 + return type : 상관없으나 void로 한다. + argument : 없거나 JoinPoint 객체를 받는다. + returning ++ B.L에서 리턴받은 값을 매개변수로 받을 수 있다.... 더보기
InitializingBean 인터페이스 InitializingBean 인터페이스 빈 객체의 라이프 사이클과 관련된 인터페이스 중에서 가장 많이 사용되는 것 중의 하나가 org.springframework.beans.factory.InitializingBean 인터페이다. 객체를 생성하고 프로퍼티를 초기화 하고, 컨테이너관련 설정을 완료한 뒤에 호출되는 메서드를 정의하고 있다. public interface InitializingBean { public void afterPropertiesSet() throws Exception } afterPropertiesSet() 메서드는 주로 빈 객체의 프로퍼티가 모두 올바르게 설정되었는지의 여부를 검사하는 용도 (프로퍼티 값을 검증하는 코드를 구현) public abstract class Abstrac.. 더보기
TIOBE Programming Community Index for June 2013 June Headline: JavaScript back in the top 10This month, JavaScript re-entered the top 10 of the TIOBE index. It is still a bit of a miracle why this ubiquitous language is not yet part of the top 5. JavaScript is the glue of client-side web page programming nowadays. But JavaScript is currently expanding its application domain. Node.js has made JavaScript a server-side programming language and t.. 더보기
스프링에서 <constructor-arg>사용 생성자를 통해 빈을 주입받는 경우는 태그를 이용하여 처리 빈(객체)를 주입 (전달)받는 경우는 를 사용하며 기본 데이터 타입이나 String타입이라면 를 사용한다. 즉 ref대신 value를 사용 또한, value로 전달된 값은 기본적으로 String 타입으로 처리 하지만 태그에 type속성을 추가하면 직접 파라미터의 타입을 명시 할 수도 있다. 또는 TEST TEST TEST 타입 설정 20000 더보기
이클립스에서 git pull 나는 오류중 The current branch is not configured for pull No value for key branch.master.merge found in configuration 해결법 To fix this problem in Eclipse, open the Windows menu and select Show View / Other / Git Repositories. From the Git Repositories tab:expand your local repositoryright click on Remoteclick on Create Remote...Remote name = originnext to IRI press the Change buttonCTRL+SPACE on URIselect the remote locationpress Finishpress Save and PushAgain, from the Git Repositories tab:right click on originsele.. 더보기
제이쿼리(jQuery) - $.ajax() - 예제 1 : getScript()메서드의 기능을 ajax()메서드로 대체 - 예제 2 : getJSON()메서드의 기능을 $.ajax()메서드로 대체 3. 만약에 한페이지에서 $.ajax()가 많다면 $.ajaxSetup()을 쓰는게 좋다. 아래는 그 예제. 더보기
제이쿼리(jQuery) - 조작 함수(manipulate) 1. clone(), insertBefore(), prependTo(), appendTo(), insertAfter() 홈 소개 상단메뉴를 하단메뉴에 복사 하단메뉴 2.replaceWith() First Second Third 더보기
제이쿼리(jQuery) - 폼 요소의 값 가져오기 및 설정 텍스트박스 : 라디오버튼 : 남 여 드롭다운리스트 자바스크립트 제이쿼리 프로토타입 더보기