본문 바로가기

프로그래밍

@Valid annotation을 위한 Maven (POM) 설정 javax.validation validation-api 1.0.0.GA org.hibernate hibernate-validator 4.3.0.Final org.hibernate hibernate-validator-annotation-processor 4.3.0.Final 더보기
@ModelAttribute와 @SessionAttributes의 이해와 한계 http://springmvc.egloos.com/535572 http://springmvc.egloos.com/ 더보기
@Autowired 와 @Resource 특정 Bean의 기능 수행을 위해 다른 Bean을 참조해야 하는 경우 사용하는 Annotation으로는 @Autowired 또는 @Resource가 있다. @Autowired Spring Framework에서 지원하는 Dependency 정의 용도의 Annotation으로, Spring Framework에 종속적이긴 하지만 정밀한 Dependency Injection이 필요한 경우에 유용하다. @Resource JSR-250 표준 Annotation으로 Spring Framework 2.5.* 부터 지원 가능한 Annotation이다. Annotation 사용으로 인해 특정 Framework에 종속적인 어플리케이션을 구성하지 않기 위해서는 @Resource를 사용할 것을 권장한다. @Resource를 사.. 더보기
이클립스에서 SpringMVC 테스트(JUnit) 환경 구축하기 http://valley.egloos.com/viewer/?url=http://springmvc.egloos.com/438345 더보기
스프링 게시판 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.. 더보기
java.lang.OutOfMemoryError: PermGen space in Tomcat 7 이클립스에서 톰켓을 더블클릭.OverView가 나오면,, General information에서 Open launch configuration 을 클릭.팝업이 뜨면, Argument 탭에 VM Argument 부분에-------------------------Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m------------------------------------위와 같은 부분 추가.. 위 내용은 참고 사이트에 적힌 내용이고,우리 프레임워크에서 사용하는 건, ------------------------------------XX:MaxPermSize=128m -Xms512m -Xm.. 더보기
spring에서 ibatis사용시 콘솔에 log 찍기 http://jakarta.apache.org/log4j/"> 더보기
SimpleFormController http://theeye.pe.kr/175 더보기
SCOTT/Tiger User does not exist in 11g http://www.club-oracle.com/forums/scott-tiger-user-does-not-exist-in-11g-t4535/ 더보기
AspectJ의 Pointcut 표현식 □ POJO 클래스를 이용하여 AOP를 적용하는 두 가지 방법 - XML 스키마를 이용하여 Aspect를 설정하는 방법. - @Aspect 어노테이션을 이용하여 Aspect를 설정하는 방법. ■ 두 방법의 공통점 - AspectJ의 문법을 이용하여 Pointcut을 설정. ■ 를 이용하여 Aspect를 설정하는 경우 - execution 명시자를 이용하여 Advice가 적용될 Pointcut을 설정. □ AspectJ의 Pointcut 표현식 - AspectJ는 Pointcut을 명시할 수 있는 다양한 명시자를 제공. - 스프링은 메서드 호출과 관련된 명시자만을 지원. ■ execution 명시자 - Advice를 적용할 메서드를 명시할 때 사용. ○ 기본 형식 execution(수식어패턴? 리턴타입패턴.. 더보기