1.写service类
TestSynchron.java
package com.ycinfo.dataSynchron;
import java.util.List;
import com.framework.common.utils.SpringContextHolder;
import com.ycinfo.database.dao.MlisBasicinfoDao;
import com.ycinfo.database.entity.MlisBasicinfo;
public class TestSynchron
{
private static MlisBasicinfoDao mlisBasicinfoDao = SpringContextHolder.getBean(MlisBasicinfoDao.class);
public List<MlisBasicinfo> getData(MlisBasicinfo mlisBasicinfo)
{
return mlisBasicinfoDao.findAllList(mlisBasicinfo);
}
}
2.在service类上点右键-->new-->Web Service,下图:
3.选择 next,(可以把client选择到test client,这