集成spring与Web容器教程

2016-12-19 00:00:00嘉辉 J2EE培训

  spring框架的主要优势之一就是其分层架构,分层架构允许使用者选择使用哪一个组件,同时为 J2EE 应用程序开发提供集成的框架。下面yjbys小编为大家准备了关于集成spring与Web容器教程,欢迎阅读。

  1.创建HelloWorld 接口类

  package com.googlecode.garbagecan.cxfstudy.helloworld;

  import javax.jws.WebMethod;

  import javax.jws.WebParam;

  import javax.jws.WebResult;

  import javax.jws.WebService;

  @WebService

  public interface HelloWorld {

  @WebMethod

  @WebResult String sayHi(@WebParam String text);

  }

  2.创建HelloWorld实现类

  package com.googlecode.garbagecan.cxfstudy.helloworld;

  public class HelloWorldImpl implements HelloWorld {

  public String sayHi(String name) ..........

阅读全文

[J2EE培训]相关推荐

[J2EE培训]相关栏目推荐
查看更多
上一篇:软件开发中常见的十大系统瓶颈 下一篇:J2EE Web架构与CS架构命名上的差异