package kr.co.kcc.pms.survey.common.util;
import kefj2ee.framework.web.spring.base.BaseDao;
import org.springframework.stereotype.Repository;
@Repository
public class AutoConnectionDao extends BaseDao
{
public void autoConnect()
{
getSqlMapClientTemplate().queryForObject("adm.autoConnect");
}
}
import kefj2ee.framework.web.spring.base.BaseDao;
import org.springframework.stereotype.Repository;
@Repository
public class AutoConnectionDao extends BaseDao
{
public void autoConnect()
{
getSqlMapClientTemplate().queryForObject("adm.autoConnect");
}
}
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
@Service
public class AutoConnection
{
@Autowired
private AutoConnectionDao autoConnectionDao;
@Scheduled(cron ="*/30 * * * * *")
public void autoConnect() throws Exception {
System.out.println("agagagagag");
autoConnectionDao.autoConnect();
}
}
'IT노트 > eGov&Spring F/W' 카테고리의 다른 글
Cors filter / Origin null is not allowed by Access-Control-Allow-Origin Chrome (0) | 2015.03.02 |
---|---|
스프링 프레임워크 강좌 (0) | 2015.02.20 |
EJB design pattern free book download (0) | 2015.02.18 |
AOP(Aspect Oriented Programmin) (0) | 2015.01.30 |
[IOC 제어의 역전] (0) | 2015.01.30 |