WebService它CXF这三个音符(Service接口实现类)
ITeacherServiceImpl.java:
/** * @Title:ITeacherServiceImpl.java * @Package:com.you.service.impl * @Description: * @author:Youhaidong(游海东) * @date:2014-5-5 下午11:08:39 * @version V1.0 */ package com.you.service.impl; import com.you.model.Teacher; import com.you.service.ITeacherService; /** * 类功能说明 * 类改动者 改动日期 * 改动说明 * <p>Title:ITeacherServiceImpl.java</p> * <p>Description:游海东个人开发</p> * <p>Copyright:Copyright(c)2013</p> * @author:游海东 * @date:2014-5-5 下午11:08:39 * @version V1.0 */ public class ITeacherServiceImpl implements ITeacherService { /* (non-Javadoc) * <p>Title:findTeacherInfo</p> * <p>Description:</p> * @param teacher * @return * @see com.you.service.ITeacherService#findTeacherInfo(com.you.model.Teacher) */ @Override public String findTeacherInfo(Teacher teacher) { return "教师工号:" + teacher.getTeacherNum() + "\n" +"教师名字:" + teacher.getTeacherName() + "\n" + "教师年龄:" + teacher.getTeacherAge() + "\n" + "教师性别:" + teacher.getTeacherSex() + "\n" + "教师QQ:" + teacher.getTeacherQQ(); } }