일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 선택적조인
- JSON
- Eclipse
- swingx
- phonegap
- jQuery
- node.js
- rowspan
- 전자정부프레임워크
- GPS
- dock
- tomcat
- Struts
- JDOM
- appspresso
- Android
- sencha touch
- jsr 296
- oracle
- 가우스
- MySQL
- ibsheet
- Ajax
- MFC
- PLSQL
- WebLogic
- Spring
- Google Map
- iBATIS
- PHP
- Today
- Total
목록Spring (12)
Where The Streets Have No Name
package egovframework.rte.test.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; public class RequestInitializeInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws E..
package egovframework.rte.test.web; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; @Service public class Scheduler { @Scheduled(cron="*/10 * * * * *") public void job(){ System.out.println("@@@@@@@@@@@@@@@@@ - scheduler job"); } }
@RequestMapping("/sale/listExcelVOCategory.do") public ModelAndView selectCategoryVOList() throws Exception { List lists = new ArrayList(); UsersVO users = new UsersVO(); //Map mapCategory = new HashMap(); users.setId("0000000001"); users.setName("Sample Test"); users.setDescription("This is initial test data."); users.setUseYn("Y"); users.setRegUser("test"); lists.add(users); users.setId("00000..
@RequestMapping(value = "/test/Test3Json.do") public ModelAndView test3json(@RequestParam(value="name", required=false) String name) { JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",null); ModelAndView model = new ModelAndView(new JsonView()); model.addObject(..
@RequestMapping(value = "/test/Test2Json.do") public void test2json(@RequestParam(value="name", required=false) String name, HttpServletResponse response) throws IOException{ System.out.println("name: "+name); JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",nul..
package egovframework.rte.job; import java.text.SimpleDateFormat; import java.util.Date; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; import org.springframework.stereotype.Service; public class SayHelloJob extends QuartzJobBean { private String name; public void setName (String name) { this.name = name..
context-datasource.xml에서 datasource설정부분입니다.
http://decoder.tistory.com/19 http://decoder.tistory.com/27
참고 : http://www.ibm.com/developerworks/kr/library/wa-spring1/ import org.springframework.context.support.ClassPathXmlApplicationContext; . . . ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] { "springexample-creditaccount.xml" }); CreateCreditCardAccountInterface creditCardAccount = (CreateCreditCardAccountInterface) appContext.getBean("createCreditCar..
http://gyumee.egloos.com/1471952
Step 1 : Mofify Spring-Config.xml Step 2 : Include the Spring-DAO-SQL-Config.xml = :MIN_SALARY AND SALARY SELECT * FROM EMP WHERE EMP_NO = :EMP_NO Step 3 : Introduce AbsBaseDAO.java package com.bea.dev2dev.dao.helper; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport; /** * * @author Dhrubo */ public class AbsBaseDAO extends NamedParameterJdbcDaoSupport{ private SQLCac..