spring3.x整合cxf2.7.12的maven依赖,并说出这些jar包的作用
时间: 2024-02-03 09:13:43 浏览: 75
以下是Spring 3.x整合CXF 2.7.12的Maven依赖配置:
```xml
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.18.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.18.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.18.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.18.RELEASE</version>
</dependency>
<!-- CXF -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.7.12</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.7.12</version>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
```
这些jar包的作用如下:
- `spring-core`、`spring-context`、`spring-web`、`spring-webmvc`:Spring框架的核心依赖,用于实现IoC和AOP等功能。
- `cxf-rt-frontend-jaxws`:Apache CXF框架的核心依赖,用于实现JAX-WS Web服务的开发和调用。
- `cxf-rt-transports-http`:Apache CXF框架的HTTP传输模块,用于支持HTTP协议的Web服务。
- `jcl-over-slf4j`:SLF4J的JCL适配器,用于将JCL日志转发到SLF4J中。
阅读全文