WebService之CXF注解之三(Service接口实现类)

Posted liguangsunls

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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();
	}

}




以上是关于WebService之CXF注解之三(Service接口实现类)的主要内容,如果未能解决你的问题,请参考以下文章

cxf 调用webservice 时两句注解的意思

WebService系列二:使用JDK和CXF框架开发WebService

CXF方式搭建本地webservice服务和soap方式调用踩坑

Spring整合CXF之发布WebService服务

学习webservice之cxf:cxf自定义拦截器

WebService -- Java 实现之 CXF ( 使用:Spring+CXF+Tomcat发布webService)