Maven Spring2.5+ibatis2.3.4.276+xfire1.2.6 整合

简介:

pom.xml 管理依赖

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
< project  xmlns = "http://maven.apache.org/POM/4.0.0"  xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
< modelVersion >4.0.0</ modelVersion >
< groupId >com.asino</ groupId >
< artifactId >killws</ artifactId >
< packaging >war</ packaging >
< version >2.1</ version >
< name >killws</ name >
< description >init0;通过xfire官方例子改版而成</ description >
< properties >
< maven.test.skip >true</ maven.test.skip >
< spring.version >2.5.6</ spring.version >
</ properties >
< dependencies >
< dependency >
< groupId >org.codehaus.xfire</ groupId >
< artifactId >xfire-aegis</ artifactId >
< version >1.2.6</ version >
</ dependency >
< dependency >
< groupId >org.codehaus.xfire</ groupId >
< artifactId >xfire-core</ artifactId >
< version >1.2.6</ version >
</ dependency >
< dependency >
< groupId >org.codehaus.xfire</ groupId >
< artifactId >xfire-spring</ artifactId >
< version >1.2.6</ version >
< exclusions >
< exclusion >
< groupId >org.springframework</ groupId >
< artifactId >spring</ artifactId >
</ exclusion >
< exclusion >
< groupId >org.codehaus.xfire</ groupId >
< artifactId >xfire-annotations</ artifactId >
</ exclusion >
</ exclusions >
</ dependency >
<!-- spring -->
< dependency >
< groupId >org.springframework</ groupId >
< artifactId >spring-webmvc</ artifactId >
< version >${spring.version}</ version >
</ dependency >
< dependency >
< groupId >org.springframework</ groupId >
< artifactId >spring-aop</ artifactId >
< version >${spring.version}</ version >
</ dependency >
< dependency >
< groupId >org.springframework</ groupId >
< artifactId >spring-jdbc</ artifactId >
< version >${spring.version}</ version >
</ dependency >
< dependency >
< groupId >org.springframework</ groupId >
< artifactId >spring-orm</ artifactId >
< version >${spring.version}</ version >
</ dependency >
<!-- <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId>
<version>3.2.3</version> </dependency> -->
< dependency >
< groupId >org.aspectj</ groupId >
< artifactId >aspectjweaver</ artifactId >
< version >1.6.11</ version >
</ dependency >
< dependency >
< groupId >org.apache.ibatis</ groupId >
< artifactId >ibatis-sqlmap</ artifactId >
< version >2.3.4.726</ version >
</ dependency >
<!-- commons -->
< dependency >
< groupId >commons-chain</ groupId >
< artifactId >commons-chain</ artifactId >
< version >1.2</ version >
</ dependency >
< dependency >
< groupId >commons-io</ groupId >
< artifactId >commons-io</ artifactId >
< version >2.4</ version >
</ dependency >
< dependency >
< groupId >commons-pool</ groupId >
< artifactId >commons-pool</ artifactId >
< version >1.6</ version >
</ dependency >
< dependency >
< groupId >commons-dbcp</ groupId >
< artifactId >commons-dbcp</ artifactId >
< version >1.4</ version >
</ dependency >
< dependency >
< groupId >com.oracle</ groupId >
< artifactId >ojdbc14</ artifactId >
< version >10.2.0.1.0</ version >
</ dependency >
< dependency >
< groupId >commons-lang</ groupId >
< artifactId >commons-lang</ artifactId >
< version >2.4</ version >
</ dependency >
<!-- xml -->
< dependency >
< groupId >dom4j</ groupId >
< artifactId >dom4j</ artifactId >
< version >1.6.1</ version >
</ dependency >
<!-- test -->
< dependency >
< groupId >junit</ groupId >
< artifactId >junit</ artifactId >
< version >3.8.1</ version >
< scope >test</ scope >
</ dependency >
<!-- 日志 -->
< dependency >
< groupId >log4j</ groupId >
< artifactId >log4j</ artifactId >
< version >1.2.11</ version >
< scope >runtime</ scope >
</ dependency >
</ dependencies >
< build >
< defaultGoal >war</ defaultGoal >
< sourceDirectory >${basedir}/src/main</ sourceDirectory >
< resources >
< resource >
< directory >${basedir}/src/main</ directory >
< includes >
< include >**/*.xml</ include >
</ includes >
< filtering >false</ filtering >
</ resource >
</ resources >
< plugins >
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version> <configuration> <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory>
</configuration> </plugin> -->
< plugin >
< groupId >org.mortbay.jetty</ groupId >
< artifactId >maven-jetty-plugin</ artifactId >
< version >6.1.10</ version >
</ plugin >
</ plugins >
</ build >
< repositories >
< repository >
< id >codehaus</ id >
< name >Codehaus maven repository</ name >
< url >http://dist.codehaus.org/</ url >
< layout >legacy</ layout >
</ repository >
< repository >
< id >jboss</ id >
< name >jboss repository</ name >
< url >http://repository.jboss.com/maven2/</ url >
< layout >legacy</ layout >
</ repository >
< repository >
< id >maven</ id >
< name >maven repository</ name >
< url >http://repo1.maven.org/maven2/</ url >
< layout >legacy</ layout >
</ repository >
< repository >
< id >sonatype</ id >
< name >sonatype repository</ name >
< url >http://repository.sonatype.org/content/groups/public/</ url >
< layout >legacy</ layout >
</ repository >
< repository >
< id >ibiblio</ id >
< name >ibiblio repository</ name >
< url >http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/</ url >
< layout >legacy</ layout >
</ repository >
</ repositories >
</ project >

 

 加入spring 声明式事务

spring2.5.6 只能和ibatis2.3.4版本进行整合。不能与myibatis整合




本文转自 randy_shandong 51CTO博客,原文链接:http://blog.51cto.com/dba10g/1350286,如需转载请自行联系原作者

相关文章
|
5月前
|
Java 关系型数据库 MySQL
Maven——创建 Spring Boot项目
Maven 是一个项目管理工具,通过配置 `pom.xml` 文件自动获取所需的 jar 包,简化了项目的构建和管理过程。其核心功能包括项目构建和依赖管理,支持创建、编译、测试、打包和发布项目。Maven 仓库分为本地仓库和远程仓库,远程仓库包括中央仓库、私服和其他公共库。此外,文档还介绍了如何创建第一个 SpringBoot 项目并实现简单的 HTTP 请求响应。
412 1
Maven——创建 Spring Boot项目
|
5月前
|
Java 关系型数据库 MySQL
如何使用 maven 创建一个 Spring Boot项目
Maven 是一个强大的项目管理工具,通过配置 `pom.xml` 文件自动获取所需的 jar 包,提高开发效率。其核心功能包括项目构建和依赖管理。项目构建支持编译、测试、打包和发布等流程,而依赖管理则通过中央仓库、本地仓库和私有服务器获取和管理项目依赖。示例中展示了如何创建第一个 SpringBoot 项目并实现简单接口。
106 1
如何使用 maven 创建一个 Spring Boot项目
|
5月前
|
Java 应用服务中间件 Maven
idea+maven+tomcat+spring 创建一个jsp项目
这篇文章介绍了如何在IntelliJ IDEA中使用Maven和Tomcat创建一个JSP项目,包括配置Maven依赖、设置Tomcat服务器、编写JSP页面、创建控制器和配置文件,以及项目的运行结果。
324 0
idea+maven+tomcat+spring 创建一个jsp项目
|
7月前
|
XML JSON Java
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
本文介绍了如何使用IntelliJ IDEA和Maven搭建一个整合了Struts2、Spring4、Hibernate4的J2EE项目,并配置了项目目录结构、web.xml、welcome.jsp以及多个JSP页面,用于刷新和学习传统的SSH框架。
243 0
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
|
8月前
|
JavaScript Java Maven
理解固化的Maven依赖:spring-boot-starter-parent 与 spring-boot-dependencies
理解固化的Maven依赖:spring-boot-starter-parent 与 spring-boot-dependencies
3322 1
|
10月前
|
Java Maven Spring
maven打包插件maven-jar-plugin与spring-boot-maven-plugin
该内容介绍了两个Maven打包插件:`spring-boot-maven-plugin`和`maven-jar-plugin`。`spring-boot-maven-plugin`是Spring Boot项目的默认打包工具,它会包含项目类文件、资源和依赖的jar,但不会解编译依赖。而`maven-jar-plugin`则用于创建普通JAR包,不包含依赖。文中还展示了两个插件打包后的效果差异,并强调了持续练习以掌握这些技能的重要性。
403 0
|
10月前
|
Java Maven Windows
小唐开始学 Spring Boot——(1)IDEA 2021.3.2和Maven的安装配置
小唐开始学 Spring Boot——(1)IDEA 2021.3.2和Maven的安装配置
|
10月前
|
Java Maven Spring
【IntelliJ IDEA】使用Maven方式构建Spring Boot Web 项目(超详细)2
【IntelliJ IDEA】使用Maven方式构建Spring Boot Web 项目(超详细)
1486 2
|
10月前
|
Java Maven 开发工具
【IntelliJ IDEA】使用Maven方式构建Spring Boot Web 项目(超详细)1
【IntelliJ IDEA】使用Maven方式构建Spring Boot Web 项目(超详细)
177 2
|
10月前
|
IDE Java Maven
Spring Boot之如何解决Maven依赖冲突Maven Helper 安装使用
Spring Boot之如何解决Maven依赖冲突Maven Helper 安装使用
199 2

推荐镜像

更多