JAVA(65)
-
03. Eclipse 환경설정
1. Eclipse에서 CXF 홈 연결 Add 버튼을 눌러서 한출 추가시키고 CXF 홈을 2단계서 다운받은 CXF ZIP을 푼 디렉토리를 맞춰 주면된다. (apache-cxf-2.3.4 폴더 바로 아래에 lib 폴더가 보여야 정상이다.) 2. Eclipse에서 Web Service의 주체인 Tomcat 서버와 연결
2015.08.06 -
02. 개발환경
1. Tomcat 서버 : apache-tomcat-7.0.12 2. CXF : apache-cxf-2.3.4 3. Eclipse : eclipse-jee-helios-SR2-win32 위의 세가지 설치 파일들은 아시다시피 다운받은 zip 파일을 풀기만 하면 된다
2015.08.06 -
01. WebService를 위한 Framework 선택
가장 잘 알려진 자바 진영의 Web Service 프레임웤은 Apache AXIS2이다. AXIS때 부터 시작해서 JAX-WS(Web Service를 위한 Java Open API)를 손쉽게 이용할 수 있도록 잘 만들어 져있다. 하지만 Web Service는 HTTP 기반이지만 SOAP 프로토콜을 이용하고 있다. 따라서 기존의 AXIS의 Web Service를 이용하기 위해서는 SOAP을 자유자재로 핸들링 할 수 있는 모듈이 필요했다. 여기서 RESTful이란 개념이 생겨나기 시작했다. (RESTful이란 가장 보편화 되어 있는 HTTP를 이용해서 서비스에 접근하고 결과를 리턴 받는 방법을 말한다.) 여기서 JAX-RS(RESTful Web Service를 위한 Java Open API)가 등장 했고 이..
2015.08.06 -
형 변환 모음...
Dealing with nulls UtilFactory.convertNull Java - comparing strings Use == for primitive data types like int If (mystring == null) Use the equals() method to compare objects Use .equals for strings : if (a.equals(“cat”)) Java - Converting int to string String myString = Integer.toString(my int value) or String str = "" + i Java - Converting String to int int i = Integer.parseInt(str); or int i =..
2015.05.28 -
@PropertySource를 이용하여 Property 등록
@PropertySource로 Property 파일을 Evnironment로 로딩을 합니다. 아래는 예제 Sample입니다. package com.intercast.schedule.dao; import javax.annotation.Resource; import org.springframework.context.MessageSource; import org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; import org.springframework.stereotype.Repository; @Repository("excelDao") @PropertySource("classp..
2015.05.19 -
Spring4 Scheduling - Application
이제 마지막으로 자바를 구동하는 Application 파일입니다. package com.intercast.schedule.stater; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import com.intercast.config.AppConfig; public class Application { @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method stub new AnnotationConfigApplicationContext(AppConfig.class); } } Annotat..
2015.05.19