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();
	}

}
上一篇:tomcat源码剖析


下一篇:【Head First Servlets and JSP】笔记6:什么是响应首部 & 快速搭建一个简单的测试环境