spring mvc cxf整合实现WEBSERVICE 和 CXF实现WEBSERVICE 各有什么特点

spring + springmvc + cxf 实现webservice restful - 推酷
spring + springmvc + cxf 实现webservice restful
web.xml 配置
&?xml version=&1.0& encoding=&UTF-8&?&
&web-app xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&
xmlns=&/xml/ns/javaee& xmlns:web=&/xml/ns/javaee/web-app_2_5.xsd&
xsi:schemaLocation=&/xml/ns/javaee /xml/ns/javaee/web-app_3_0.xsd&
id=&WebApp_ID& version=&3.0&&
&display-name&workflow&/display-name&
&context-param&
&param-name&webAppRootKey&/param-name&
&param-value&jeecg&/param-value&
&/context-param&
&context-param&
&param-name&log4jConfigLocation&/param-name&
&param-value&classpath:log4j.properties&/param-value&
&/context-param&
&listener&
&listener-class&org.springframework.web.util.Log4jConfigListener&/listener-class&
&/listener&
&!-- 默认的spring配置文件是在WEB-INF下的applicationContext.xml --&
&context-param&
&param-name&contextConfigLocation&/param-name&
&param-value&/WEB-INF/applicationContext.xml,/WEB-INF/cxf-server.xml&/param-value&
&/context-param&
&listener&
&listener-class&org.springframework.web.context.ContextLoaderListener&/listener-class&
&/listener&
&!-- 防止内存溢出监听器 --&
&listener&
&listener-class&org.springframework.web.util.IntrospectorCleanupListener&/listener-class&
&/listener&
&filter-name&openSessionInViewFilter&/filter-name&
&filter-class&org.springframework.orm.hibernate4.support.OpenSessionInViewFilter&/filter-class&
&init-param&
&param-name&singleSession&/param-name&
&param-value&true&/param-value&
&/init-param&
&filter-mapping&
&filter-name&openSessionInViewFilter&/filter-name&
&url-pattern&*.do&/url-pattern&
&/filter-mapping&
&listener&
&description&Introspector缓存清除监听器&/description&
&listener-class&org.springframework.web.util.IntrospectorCleanupListener&/listener-class&
&/listener&
&listener&
&description&request监听器&/description&
&listener-class&org.springframework.web.context.request.RequestContextListener&/listener-class&
&/listener&
&!-- 配置spring mvc的相关内容,此处的servlet-name任意,但必须有&your servlet-name&-servlet.xml与之对应 --&
&servlet-name&workflow&/servlet-name&
&servlet-class&org.springframework.web.servlet.DispatcherServlet&/servlet-class&
&load-on-startup&1&/load-on-startup&
&/servlet&
&servlet-mapping&
&servlet-name&workflow&/servlet-name&
&!-- 配置所有的页面 --&
&url-pattern&*.do&/url-pattern&
&/servlet-mapping&
&!-- 配置过滤器,同时把所有的请求都转为utf-8编码 --&
&filter-name&Spring character encoding filter&/filter-name&
&filter-class&org.springframework.web.filter.CharacterEncodingFilter&/filter-class&
&init-param&
&param-name&encoding&/param-name&
&param-value&utf-8&/param-value&
&/init-param&
&filter-mapping&
&filter-name&Spring character encoding filter&/filter-name&
&url-pattern&/*&/url-pattern&
&/filter-mapping&
&!-- 配置cxfservlet --&
&servlet-name&CXFService&/servlet-name&
&servlet-class&org.apache.cxf.transport.servlet.CXFServlet&/servlet-class&
&/servlet&
&servlet-mapping&
&servlet-name&CXFService&/servlet-name&
&url-pattern&/ws/*&/url-pattern&
&/servlet-mapping&
&session-config&
&session-timeout&30&/session-timeout&
&/session-config&
&welcome-file-list&
&welcome-file&index.jsp&/welcome-file&
&/welcome-file-list&
&/web-app&
&applicationContext.xml spring的配置
&?xml version=&1.0& encoding=&UTF-8&?&
&beans xmlns=&http://www.springframework.org/schema/beans&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance& xmlns:aop=&http://www.springframework.org/schema/aop&
xmlns:tx=&http://www.springframework.org/schema/tx& xmlns:context=&http://www.springframework.org/schema/context&
xsi:schemaLocation=&
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd&&
&!-- 引用文件 --&
&context:property-placeholder location=&WEB-INF/classes/jdbc.properties& /&
&context:component-scan base-package=&com.workflow.dao,com.workflow.service,com.workflow.api.service,com.workflow.business.service,com.weir.webservice& /&
&bean id=&dataSource& class=&com.mchange.boPooledDataSource&
destroy-method=&close&&
&property name=&driverClass&&
&value&${c3p0.driverClass}&/value&
&/property&
&property name=&jdbcUrl&&
&value&${c3p0.jdbcUrl}&/value&
&/property&
&property name=&user&&
&value&${c3p0.user}&/value&
&/property&
&property name=&password&&
&value&${c3p0.password}&/value&
&/property&
&!--连接池中保留的最小连接数。 --&
&property name=&minPoolSize&&
&value&${c3p0.minPoolSize}&/value&
&/property&
&!--连接池中保留的最大连接数。Default: 15 --&
&property name=&maxPoolSize&&
&value&${c3p0.maxPoolSize}&/value&
&/property&
&!--初始化时获取的连接数,取值应在minPoolSize与maxPoolSize之间。Default: 3 --&
&property name=&initialPoolSize&&
&value&${c3p0.initialPoolSize}&/value&
&/property&
&!--最大空闲时间,60秒内未使用则连接被丢弃。若为0则永不丢弃。Default: 0 --&
&property name=&maxIdleTime&&
&value&${c3p0.maxIdleTime}&/value&
&/property&
&!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数。Default: 3 --&
&property name=&acquireIncrement&&
&value&${c3p0.acquireIncrement}&/value&
&/property&
&!--JDBC的标准参数,用以控制数据源内加载的PreparedStatements数量。但由于预缓存的statements 属于单个connection而不是整个连接池。所以设置这个参数需要考虑到多方面的因素。
如果maxStatements与maxStatementsPerConnection均为0,则缓存被关闭。Default: 0 --&
&property name=&maxStatements&&
&value&${c3p0.maxStatements}&/value&
&/property&
&!--每60秒检查所有连接池中的空闲连接。Default: 0 --&
&property name=&idleConnectionTestPeriod&&
&value&${c3p0.idleConnectionTestPeriod}&/value&
&/property&
&!--定义在从数据库获取新连接失败后重复尝试的次数。Default: 30 --&
&property name=&acquireRetryAttempts&&
&value&${c3p0.acquireRetryAttempts}&/value&
&/property&
&!--获取连接失败将会引起所有等待连接池来获取连接的线程抛出异常。但是数据源仍有效 保留,并在下次调用getConnection()的时候继续尝试获取连接。如果设为true,那么在尝试
获取连接失败后该数据源将申明已断开并永久关闭。Default: false --&
&property name=&breakAfterAcquireFailure&&
&value&${c3p0.breakAfterAcquireFailure}&/value&
&/property&
&!--因性能消耗大请只在需要的时候使用它。如果设为true那么在每个connection提交的 时候都将校验其有效性。建议使用idleConnectionTestPeriod或automaticTestTable
等方法来提升连接测试的性能。Default: false --&
&property name=&testConnectionOnCheckout&&
&value&${c3p0.testConnectionOnCheckout}&/value&
&/property&
&bean id=&sessionFactory&
class=&org.springframework.orm.hibernate4.LocalSessionFactoryBean&&
&property name=&dataSource&&
&ref bean=&dataSource& /&
&/property&
&property name=&packagesToScan&&
&value&com.workflow.entity&/value&
&value&com.workflow.api.entity&/value&
&value&com.workflow.business.entity&/value&
&/property&
&property name=&hibernateProperties&&
&prop key=&hibernate.dialect&&${hibernate.dialect}&/prop&
&prop key=&hibernate.show_sql&&true&/prop&
&prop key=&hibernate.query.substitutions&&
true 'T', false 'F'
&prop key=&hibernate.hbm2ddl.auto&&update&/prop&
&/property&
&bean id=&transactionManager& class=&org.springframework.orm.hibernate4.HibernateTransactionManager&&
&property name=&sessionFactory& ref=&sessionFactory& /&
&!-- 注解方式配置事物 --&
&tx:annotation-driven transaction-manager=&transactionManager& /&
&cxf-server.xml& cxf 服务器端的配置& 这里我没有和spring的配置放在一起,而是独立出来的
&?xml version=&1.0& encoding=&UTF-8&?&
&beans xmlns=&http://www.springframework.org/schema/beans&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&
xmlns:jaxws=&http://cxf.apache.org/jaxws&
xmlns:jaxrs=&http://cxf.apache.org/jaxrs&
xsi:schemaLocation=&http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd&&
&import resource=&classpath:META-INF/cxf/cxf.xml& /&
&import resource=&classpath:META-INF/cxf/cxf-extension-soap.xml& /&
&import resource=&classpath:META-INF/cxf/cxf-servlet.xml& /&
&!-- &jaxws:endpoint id=&userExit& implementor=&com.weir.webservice.UserExitImpl& address=&/userExit& /& --&
&!-- http://172.168.1.172:8080/workflow/ws --&
&jaxrs:server id=&userExit& serviceClass=&com.weir.webservice.UserExitImpl& address=&/api&&&/jaxrs:server&
&workflow-servlet.xml sprinmvc 配置文件也贴出来吧
&?xml version=&1.0& encoding=&UTF-8&?&
&beans xmlns=&http://www.springframework.org/schema/beans&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&
xmlns:context=&http://www.springframework.org/schema/context&
xmlns:mvc=&http://www.springframework.org/schema/mvc&
xsi:schemaLocation=&http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd&&
&context:component-scan base-package=&com.workflow.controller,com.workflow.api,com.workflow.business& /&
&!-- 避免IE执行AJAX时,返回JSON出现下载文件 --&
&bean id=&fastJsonHttpMessageConverter& class=&com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter&&
&property name=&supportedMediaTypes&&
&value&application/json&/value&
&/property&
&!-- 启动Spring MVC的注解功能,完成请求和注解POJO的映射 --&
&bean class=&org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter&&
&property name=&messageConverters&&
&ref bean=&fastJsonHttpMessageConverter& /&
&/property&
&!-- 对模型视图名称的解析,即在模型视图名称添加前后缀 --&
&bean class=&org.springframework.web.servlet.view.InternalResourceViewResolver&&
&property name=&viewClass& value=&org.springframework.web.servlet.view.JstlView&/&
&property name=&prefix& value=&/&&&/property&
&property name=&suffix& value=&.jsp&&&/property&
所需要的jar包& 全部截图:
&例子很简单& 没有涉及业务
package com.weir.
import javax.jws.WebS
import javax.ws.rs.GET;
import javax.ws.rs.P
//@WebService
@Path(value=&/userexit&)
public interface UserExit {
@Path(&/exitUser&)
public boolean exitUser();
package com.weir.
import javax.jws.WebS
import javax.ws.rs.GET;
import javax.ws.rs.P
//@WebService(endpointInterface=&com.weir.webservice.UserExit&)
@Path(value=&/userexit&)
public class UserExitImpl implements UserExit {
@Path(&/exitUser&)
public boolean exitUser() {
System.out.println(&lllll&);
启动tomcat就可以了:
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
没有分页内容
图片无法显示
视频无法显示
与原文不一致tony_action 的BLOG
用户名:tony_action
文章数:70
评论数:415
访问量:611575
注册日期:
阅读量:5863
阅读量:12276
阅读量:300739
阅读量:1020270
51CTO推荐博文
提示:下面有代码请耐心阅读,代码以图片形式展现,个别图片由于尺寸的原因显示不清,可以点击图片在新窗口中打开以进行查看.
注意:源码已经提供下载,解压缩之后先看readme.
CXF 继承了 Celtix 和 XFire 两大开源项目的精华,提供了对 JAX-WS 全面的支持,并且提供了多种 Binding 、DataBinding、Transport 以及各种 Format 的支持,并且可以根据实际项目的需要,采用代码优先(Code First)或者 WSDL 优先(WSDL First)来轻松地实现 Web Services 的发布和使用。Apache CXF 是一个开源的 Services 框架,CXF 帮助您利用 Frontend 编程 API 来构建和开发 Services ,像 JAX-WS 。这些 Services 可以支持多种协议,比如:SOAP、XML/HTTP、RESTful HTTP 或者 CORBA ,并且可以在多种传输协议上运行,比如:HTTP、JMS 或者 JBI,CXF 大大简化了 Services 的创建,同时它继承了 XFire 传统,一样可以天然地和 Spring 进行无缝集成。
2.功能特性CXF 包含了大量的功能特性,但是主要集中在以下几个方面:1.支持 Web Services 标准:CXF 支持多种 Web Services 标准,包含 SOAP、Basic Profile、WS-Addressing、WS-Policy、WS-ReliableMessaging 和 WS-Security。 2.Frontends:CXF 支持多种“Frontend”编程模型,CXF 实现了 JAX-WS API (遵循 JAX-WS 2.0 TCK 版本),它也包含一个“simple frontend”允许客户端和 EndPoint 的创建,而不需要 Annotation 注解。CXF 既支持 WSDL 优先开发,也支持从 Java 的代码优先开发模式。 3.容易使用: CXF 设计得更加直观与容易使用。有大量简单的 API 用来快速地构建代码优先的 Services,各种 Maven 的插件也使集成更加容易,支持 JAX-WS API ,支持 Spring 2.0 更加简化的 XML 配置方式,等等。 4.支持二进制和遗留协议:CXF 的设计是一种可插拨的架构,既可以支持 XML ,也可以支持非 XML 的类型绑定,比如:JSON 和 CORBA。5.支持多种标准:&a.支持 JAX-WS、 JAX-WSA、JSR-181 和 SAAJ; &b.支持 SOAP 1.1、1.2、WS-I BasicProfile、WS-Security、WS-Addressing、WS-RM 和 WS-Policy; &c.支持 WSDL 1.1 、2.0; &d.支持 MTOM; 6.多种传输方式、Bindings、Data Bindings 和 Format:&&a.Bindings:SOAP、REST/HTTP; &b.Data Bndings:目前支持 JAXB 2.0、Aegis 两种,默认是 JAXB 2.0。XMLBeans、Castor 和 JiBX 数据绑定方式将在 CXF 2.1 版本中得到支持; &c.格式(Format):XML、JSON; &d.传输方式:HTTP、Servlet、JMS 和 Jabber; &e.可扩展的 API 允许为 CXF 增加其它的 Bindings,以能够支持其它的消息格式,比如:CSV 和固定记录长度。 7.灵活部署&a.轻量级容器:可在 Tomcat 或基于 Spring 的容器中部署 Services; &b.集成 JBI:可以在如 ServiceMix, OpenESB or Petals 等等的 JBI 容器中将它部署为一个服务引擎; &c.集成 SCA:可以部署在如 Tuscany 之类的 SCA 容器中; &d.集成 J2EE:可以在 J2EE 应用服务器中部署 Services,比如:Geronimo、JOnAS、JBoss、WebSphere Application Server 和 WebLogic Application Server,以及 Jetty 和 Tomcat; &e.独立的 Java 客户端/服务器。 8.支持多种编程语言&a.全面支持 JAX-WS 2.0 客户端/服务器编程模型; &b.支持 JAX-WS 2.0 synchronous、asynchronous 和 one-way API's; &c.支持 JAX-WS 2.0 Dynamic Invocation Interface (DII) API; &d.支持 wrapped and non-wrapped 风格; &e.支持 XML messaging API; &f.支持 JavaScript 和 ECMAScript 4 XML (E4X) ,客户端与服务端均支持; &g通过 Yoko 支持 CORBA; &h.通过 Tuscany 支持 SCA; &i.通过 ServiceMix 支持 JBI ; 9.代码生成&a.Java to WSDL; &b.WSDL to Java; &c.XSD to WSDL; &d.WSDL to XML; &e.WSDL to SOAP; &f.WSDL to Service;&
3.轻松与Spring集成
1.定义WebService所需暴露的接口:接口中只有一个方法public String vote,只需在接口定义处添加@WebService注明此接口将要提供服务.
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/965053.jpg" border="0" />
2.编写接口实现类:vote方法中判断username入参是否为Michael,如果是将返回重复投票
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/050613.jpg" border="0" />
3.服务器端配置文件:需要注意两个地方,将CXF所需的配置文件import到Spring容器中,但所需的3个配置文件并不在工程里,而是在Spring容器初始化时自动创建,这里需要显示的将其import进来;&定义了一个Webservice的端点,其中id是其存放在Spring容器中的标识, implementor用于标注实现类, address提供服务的地址.
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/112673.jpg" border="0" />
&4.web.xml配置:在web.xml中只需定义Spring容器的监听器,CXFServlet和CXFServlet mapping
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/193655.jpg" border="0" />
1.客户端配置文件(仅供客户端使用Spring框架):和服务器端得配置一样,也需要import相关CXF配置文件到Spring容器;同时还要使用定义客户端的bean,其中id为其存在Spring容器中的标识, serviceClass为WebService暴露接口的完全限定名, address为提供服务的地址.
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/312558.jpg" border="0" />
2.客户端调用(使用Spring容器):只需创建Sping容器根据ID获取ISurveyService并调用所需方法
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/375149.jpg" border="0" />
3. 客户端调用(java语言客户端):初始化代理工厂并将接口类型和服务地址设置近工厂类,就可获得所需服务
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/434132.jpg" border="0" />
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/487989.jpg" border="0" />
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/516520.jpg" border="0" />
下面将包结构和运行环境贴出来
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/327953.jpg" border="0" />
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/387640.jpg" border="0" />
其实最庞大的是他依赖的包
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/469140.jpg" border="0" />
650) this.width=650;" onclick='window.open("/viewpic.php?refimg=" + this.src)' alt="" src="/attachment/526953.jpg" border="0" />
&本文出自 “” 博客,请务必保留此出处
了这篇文章
附件下载:  
类别:┆阅读(0)┆评论(0)
11:08:08 11:09:09 11:11:50 11:14:48 11:25:47 11:28:37 11:47:40 12:26:46 16:28:58 16:51:50 17:25:13 17:47:15 17:52:44 18:15:40 18:35:17 23:52:26 23:52:50 16:04:11 14:51:44 09:58:06 &&1&
&&页数 ( 1/2 ) &
请输入验证码:WebService之CXF注解之三(Service接口实现类)
ITeacherServiceImpl.java:
* @Title:ITeacherServiceImpl.java
* @Package:com.you.service.impl
* @Description:
* @author:Youhaidong(游海东)
* @date: 下午11:08:39
* @version V1.0
package com.you.service.
import com.you.model.T
import com.you.service.ITeacherS
* 类功能说明
* 类修改者 修改日期
* 修改说明
* Title:ITeacherServiceImpl.java
* Description:游海东个人开发
* Copyright:Copyright(c)2013
* @author:游海东
* @date: 下午11:08:39
* @version V1.0
public class ITeacherServiceImpl implements ITeacherService
/* (non-doc)
* Title:findTeacherInfo
* Description:
* @param teacher
* @see com.you.service.ITeacherService#findTeacherInfo(com.you.model.Teacher)
public String findTeacherInfo(Teacher teacher)
return "教师工号:" + teacher.getTeacherNum() + "\n" +"教师名字:" + teacher.getTeacherName() + "\n" + "教师年龄:" + teacher.getTeacherAge() + "\n" + "教师性别:" + teacher.getTeacherSex() + "\n" + "教师QQ:" + teacher.getTeacherQQ();
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&二次元同好交流新大陆
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
让别人为因为我才快乐,我才会真的快乐!
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(1529)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'CXF3问题解决 CXF+Spring----轻松实现webservice',
blogAbstract:'本文章解决:轻松实现webservice服务
1.环境变量配置配置与检查环境变量
CXF_HOME=/opt/Java/CXFJAVA_HOME=/opt/JDK/1.5.0ANT_HOME=/opt/Java/Antexport PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$CXF_HOME/bin:$PATHexport CLASSPATH=.:$CXF_HOME/lib/cxf-manifest-incubator.jar:./build/classes&
Windows 上:
set CXF_HOME=C:\\Java\\CXFset JAVA_HOME=C:\\JDK\\1.5.0set ANT_HOME=C:\\Java\\Ant',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:3,
publishTime:1,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'让别人为因为我才快乐,我才会真的快乐!',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}

我要回帖

更多关于 spring4.2 mvc cxf3.1 的文章

 

随机推荐