프로그램/java 41

10 Object Oriented Design Principles Java Programmer should know

펌입니다... 좋은 내용 같네요. 10 Object Oriented Design Principles Java Programmer should know Read more: http://javarevisited.blogspot.com/2012/03/10-object-oriented-design-principles.html#ixzz3AEWwGios Though best way of learning any design principle or pattern is real world example and understanding the consequences of violating that design principle, subject of this article is Introducing Object orient..

프로그램/java 2014.08.13

String 이 List안에 있는지 확인하는 Utility

String 이 List안에 있는지 확인하는 Utility apache common collections 의 CollectionUtils 이용하는 방법을 소개 합니다. 3가지 많이쓰는 매칭 방법을 이용하도록 하였습니다. :) import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; /** * List안에 checkString 이 있는지 확인, * * @param list * @param checkString * @param checkMethod -1: startsWidth, 0: equals , 1: endsWith * @return */ public static boolean..

프로그램/java 2014.04.22

Basic Servlet Program by Eclipse

Eclipse 기반 IDE에서 J2EE Servlet을 아주 간단히 개발하는 전형적인 방법을 소개 합니다.Very Very Simple Example)---------------------------------------------------------------------------------------------------------- Part 1) Project > New > Web > Dynamic Web Project 1.1. Project Name setup 1.2. Source Folder Setup : 기본은 src 폴더만 있다. resource 폴더를 분리 추가 하는걸 추천 합니다. Part 2) New > Web > Servlet : 신규 서블릿 추가 하기 2.1. Servlet Nam..

프로그램/java 2013.06.04

apache tomcat diagram

아파치 톰캣에 대해서 아주 잘 설명된 그림이라고 생각 됩니다.출처 : http://marakana.com/s/post/106/tomcat_architecture_diagram 위 그리믈 보시면 Server > Service > Engine > Host > Context 의 계층을 보실 수 있습니다.또한 각 계층의 갯수도 주의 깊게 보시기 바랍니다. Listener, Resource, JNDI 등등 ... Global Part등 상위단의 설정은 하위단에서 사용이 가능하거나 영향을 미칩니다.

프로그램/java 2013.05.15

StringUtils. delimitedListToStringArray : 간단히 문자열 나누기

java 에서 문자열을 나눌때... 더구나 SpringFramework를 사용하신다면.아래와 같이 처리 하시면 됩니다. (구분자(delimiter) 로 아무 문자나 다... 쓸 수 있습니다.) String[] stringArray = StringUtils.delimitedListToStringArray(String sourceString, String delimeterString); ex) String[] sets = StringUtils.delimitedListToStringArray(bcset, "^"); 위와같이 '^'는 정규표현식의 특정 문자로 취급되지만, 위 함수에서는 그냥 구분자로 사용가능 합니다.

프로그램/java 2013.04.30