WebService之CXF注解之一(封装类)

Teacher.java:

/**
 * @Title:Teacher.java
 * @Package:com.you.model
 * @Description:老师封装类
 * @author:Youhaidong(游海东)
 * @date:2014-5-5 下午11:03:13
 * @version V1.0
 */
package com.you.model;

import java.io.Serializable;

/**
 * 类功能说明
 * 类修改者 修改日期
 * 修改说明
 * <p>Title:Teacher.java</p>
 * <p>Description:游海东个人开发</p>
 * <p>Copyright:Copyright(c)2013</p>
 * @author:游海东
 * @date:2014-5-5 下午11:03:13
 * @version V1.0
 */
public class Teacher implements Serializable
{
	/**
	 * @Fields  serialVersionUID:序列化
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 教师工号
	 */
	private String teacherNum;

	/**
	 * 教师姓名
	 */
	private String teacherName;

	/**
	 * 教师年龄
	 */
	private String teacherAge;

	/**
	 * 教师性别
	 */
	private String teacherSex;

	/**
	 * 教师QQ
	 */
	private String teacherQQ;

	/**
	 * @return the teacherNum
	 */
	public String getTeacherNum() {
		return teacherNum;
	}

	/**
	 * @param teacherNum the teacherNum to set
	 */
	public void setTeacherNum(String teacherNum) {
		this.teacherNum = teacherNum;
	}

	/**
	 * @return the teacherName
	 */
	public String getTeacherName() {
		return teacherName;
	}

	/**
	 * @param teacherName the teacherName to set
	 */
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	/**
	 * @return the teacherAge
	 */
	public String getTeacherAge() {
		return teacherAge;
	}

	/**
	 * @param teacherAge the teacherAge to set
	 */
	public void setTeacherAge(String teacherAge) {
		this.teacherAge = teacherAge;
	}

	/**
	 * @return the teacherSex
	 */
	public String getTeacherSex() {
		return teacherSex;
	}

	/**
	 * @param teacherSex the teacherSex to set
	 */
	public void setTeacherSex(String teacherSex) {
		this.teacherSex = teacherSex;
	}

	/**
	 * @return the teacherQQ
	 */
	public String getTeacherQQ() {
		return teacherQQ;
	}

	/**
	 * @param teacherQQ the teacherQQ to set
	 */
	public void setTeacherQQ(String teacherQQ) {
		this.teacherQQ = teacherQQ;
	}

}

WebService之CXF注解之一(封装类)

时间: 2024-11-07 21:02:07

WebService之CXF注解之一(封装类)的相关文章

WebService之CXF注解报错(一)

WebService之CXF注解 1.具体报错如下 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-5-4 22:42:12 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native li

WebService之CXF注解报错(二)

WebService之CXF注解 1.具体报错如下 五月 04, 2014 11:24:12 下午 org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass 信息: Creating Service {http://service.you.com/}IServiceService from class com.you.service.IService 五月 04, 2014 11:

WebService之CXF注解报错(三)

如果你对项目管理.系统架构有兴趣,请加微信订阅号"softjg",加入这个PM.架构师的大家庭 要成为WEB架构师,首先要找到通往成功的正确方向,接下来我们就要往这个方向努力.然而如唐僧去西天取经一样,要历经种种磨难,一路上打败各种妖魔鬼怪才能继续前行,所以唐僧取经,第一件事,就是招徒弟,遇见妖魔鬼怪就让技术高超的徒弟打败它,徒弟不听话就念紧箍咒,徒弟也搞不定的妖怪,就请观音菩萨搞定,这就是唐僧成功的法宝,没法宝上路,看来我们会死的比较惨啊,哈哈. 我们在通往架构师的路上,同样会遇到各

WebService之CXF注解之二(Service接口)

ITeacherService.java: /** * @Title:ITeacherService.java * @Package:com.you.service * @Description:教师Service接口 * @author:Youhaidong(游海东) * @date:2014-5-5 下午11:06:24 * @version V1.0 */ package com.you.service; import javax.jws.WebMethod; import javax.j

WebService之CXF注解之四(测试类)

TeacherTest.java: /** * @Title:TeacherTest.java * @Package:com.test.service * @Description: * @author:Youhaidong(游海东) * @date:2014-5-5 下午11:14:09 * @version V1.0 */ package com.test.service; import org.apache.cxf.interceptor.LoggingInInterceptor; imp

WebService之CXF注解之四(測试类)

TeacherTest.java: /** * @Title:TeacherTest.java * @Package:com.test.service * @Description: * @author:Youhaidong(游海东) * @date:2014-5-5 下午11:14:09 * @version V1.0 */ package com.test.service; import org.apache.cxf.interceptor.LoggingInInterceptor; imp

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; impor

【WebService】CXF拦截器的设置以及自定义CXF拦截器

WebService系列文章: [WebService]带你走进webservice的世界 [WebService]自定义WebService服务及其调用 [WebService]wsdl配置详解以及使用注解修改wsdl配置 [WebService]CXF处理javaBean等复合类型以及Map等复杂类型的数据 CXF的拦截器和以前学过的servlet的拦截器类似的,都是在开始或结束切入一段代码,执行一些逻辑之类的.我们可以在调用ws服务前设置拦截器,也可以在调用ws服务后设置拦截器,当然了,拦

Webservice与CXF框架快速入门

1. Webservice Webservice是一套远程调用技术规范 远程调用RPC, 实现了系统与系统进程间的远程通信.java领域有很多可实现远程通讯的技术,如:RMI(Socket + 序列化).Binary-RPC(Http+二进制, 代表Hessian).XML-RPC(Http+XML, 代表Burlap, WebService用的SOAP).JMS(使用消息机制).Mina(使用NIO)等, 底层都是基于http/socket和网络IO来实现的.从效率上来讲, RMI > Hes