CXF之用spring整合web项目时, web.xml配置实例
2010-07-31 16:07
811 查看
这是一个通用的web.xml实例.
]<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>java_first_spring_support1_async</display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:beans.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/service/*</url-pattern> </servlet-mapping> </web-app>
相关文章推荐
- javaWeb项目SpringMVC3.2.1与Mybatis3.0.4整合实例(Mybaits-spring配置文件的几种方式)之一SqlSessionDaoSupport方式
- spring+springmvc+druid+oscache+mybatis整合web.xml 配置内容
- Maven项目配置spring时 出现Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方案
- struts2整合spring 时web.xml的配置
- ssh项目中,对于spring的bean.xml和web.xml文件的基本配置
- Spring整合Structs2 的web.xml 基本配置
- Spring整合Hibernate的XML文件配置,以及web.xml文件配置
- CXF3.0.4与spring整合开发Webservice功能的web项目
- Springboot整合dubbo构建maven多模块项目(一)- 项目创建和pom.xml中jar包配置
- CXF与SPRING的无缝整合时,为什么不用写CXF的配置文件cxf-servlet.xml?
- SSM(spring-springmvc-mybatis)整合开发xml配置文件内容springmvc-config.xml,application.xml,web.xml
- Struts2 + Spring + Hibernate 整合 web.xml的一般配置
- Web项目中使用XML配置加载Spring及Spring MVC的组件
- Web项目中使用Spring整合CXF发布Web Services
- eclipse 中创建 整合springmvc+mybatis+maven 的java web项目步骤,以及maven仓库配置
- ssm项目之web.xml,spring,springmvc,mybatis配置
- 关于搭建restful web service + springMVC + ibatis/hibernate的整合和XML配置意思和ssh+springMVC框架搭建
- spring 3.0配置实例-web.xml
- 关于项目中web.xml配置文件里面的spring的配置contextConfigLocation
- SpringMVC+Hibernate+jQuery+js+css+jsp+nginx整合时,(1)jsp引入js,css无效;(2)插入数据库时某字段为空;(3)web.xml配置完后,从数据库读数