Spring98 Spring Timer Sample /* * $Id: LawScheduleTimer.java ,v 1.1 2010. 12. 10. 오후 3:38:08 com.hynix.ecms Exp $ * created by : An Sang Kil * creation-date : 2010. 12. 10. * ========================================================= * Copyright (c) 2010 ManInSoft, Inc. All rights reserved. */ package com.dongbu.skan.schedule; /** * Law Batch job * @author ahn * */ public class LawScheduleTimer{ //1.2 SpingFreamWork JDK Time.. 2010. 12. 14. Ibitis ResultMap XML 자동 생성하기. DB가 결정이 안나서 resultClass를 못쓰게 생겼다. 그래서 생각해낸 안인고로, Class의 field값을 불러와서 이걸로 xml만들어놓으면 그나마 나중에 resultMapping시킬때 편할것 같아 하나 만들어 봤음. * 완전편한건아니지만 그나마 쓸만함. package test.jdom; import java.io.FileWriter; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import org.dom4j.Document; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; im.. 2010. 9. 14. Mail - Spring JavaMailSender(2/2) - Mail sender Test 지금까지 작성된 내용으로 ApplicationContext의 Bean을 호출해서 테스트해볼까, 하는김에 Junit 테스트도 해보고,,, * Junit 3.x version /* * $Id: MailControllerTest.java ,v 1.1 2010. 9. 9. 오전 11:53:33 dongbuFarm Exp $ * created by : An Sang Kil * creation-date : 2010. 9. 9. * ========================================================= * Copyright (c) 2010 ManInSoft, Inc. All rights reserved. */ package com.hynix.ecms.mail; import org.ap.. 2010. 9. 14. Junit Spring ApplicationContext (Applacation Bean Test, Spring Bean Call) 1.ClassPathXmlApplicationContext : classPath 에 있는 XML 빈 설정 파일을 이용할때 사용. 2.FileSystemXmlApplicationContext : 파일시스템에 있는 XML 빈 설정을 이용할때 사용한다. * sampel /* * $Id: mailSender.java ,v 1.1 2010. 9. 8. 오후 3:33:43 smrscvs1 Exp $ * created by : ahn * creation-date : 2010. 9. 8. * ========================================================= * Copyright (c) 2010 ManInSoft, Inc. All rights reserved. */ package t.. 2010. 9. 8. SpringFramework *.property 사용방법 1. 시스템 Property 사용시 1-1. 프로퍼티를 사용하기 위해선 선행 조건으로 다음과 같이 Class선언 classpath:jdbc.properties classpath:system.properties classpath:mail.properties 여러개의 프로퍼티를 사용하기 위해서는 테그로감싸주어 사용 한단다. 1-2. 사용 2. datasource 사용할때 2-1 선행 조건없이 다음과 같이 사용한다. 2010. 5. 6. Spring applicatioContext-*** 10000000 E:\Temp\fileupload\upload\ boardController getRateMasterList goCreateUpdateRateMasterPage getRateMasterDetail deleteRateMaster udpateRateMasterDetail createRateMasterDetail goRateMasterRegist goConditionSearch goCreateRateResultPage createRateResult getRateResult getYearInfo realOverAllDelete E:\Temp\fileupload\upload\ org.springframework.web.servlet.view.JstlView .jsp 2009. 1. 8. Spring + Tomcat + junit 테스트 _ 1 1. 이클립스에 스프링 플러그인을 설치하게 되면 xml생성시 오류없이 작성할수 있다. 2. 그럼이번에 스프링에사용될 jar파일 path를 걸어 주도록 하자. A. preferences> java > buildpath > user libraries 여기에서 새라이브러리를 만들어 사용할 .jar파일을 추가 해주도록한다. B. 사용할 .jar 파일 목록 Commons-dbcp.jar Commons-lang.jar Commons-logging.jar Commons-pool.jar mysql-connector-java-5.1.7 servlet-api.jar spring.jar 3. 유저라이브러리에 등록하여 프로젝트 properties > java build path > libraries에 추가해준다. 이정도로 셋.. 2008. 10. 29. Sping freamwork _ v1 셋팅 (setting) Eclipes *SVN Update Site http://subclipse.tigris.org/update http://subclipse.tigris.org/update_1.0.x http://subclipse.tigris.org/update_1.2.x * Spring plug in 1. 스프링 플러그인은 이클립스에서 help>Software Updates > Find and Install을 누른다. search for new feature to install 을 선택하고 next New Remote Site를 선택한후 Name에는 아무거나 적고 URL에 http://springide.org/updatesite 라고 적고 다음다음 누르면 설치끝.. 2. 스프링 프레임워크를 받는 사이트는 아래 http://sourcef.. 2008. 10. 20. 이전 1 ··· 8 9 10 11 다음