Struts2.1.8 Project Dependencies

struts2
commons-logging-1.0.4.jar 主要用于日志处理
freemarker-2.3.8.jar 模板相关操作需要包
ognl-2.6.11.jar ognl表达示所需包,
xwork-2.0.7.jar xwork核心包
struts2-core-2.0.14.jar struts2核心包
struts2-spring-plugin-2.0.14.jar struts2整合spring所需要的包

commons-fileupload-1.2.1.jar 文件上传必须用的包
commons-io-1.3.2.jar 文件上传必须用的包
如果还需要整合其它框架或者插件,再导入其它的包

hibernate
Hibernate3.jar hibernate核心包
antlr-2.7.6.jar 一个语言转换工具
Hibernate利用它实现 HQL 到 SQL 的转换模板相关操作需要包
commons-collections-3.1.jar collections Apache 的工具集
javassist-3.9.0.GA.jar 代码生成工具,
Hibernate用它在运行时扩展 Java类和实现,同cglib包
dom4j-1.6.1.jar dom4j XML 解析器
jta-1.1.jar 标准的 JAVA 事务处理接口
slf4j-api-1.5.8.jar和slf4j-log4j12-1.5.0.jar hibernate使用的一个日志系统
cglib.jar CGLIB 字节码解释器
asm.jar ASM字节码库 如果使用“cglib”则必要
asm-attrs.jar ASM字节码库 如果使用“cglib”则必要
如果想使用缓存需要加入:ehcache.jar EHCache缓存
连接数据库加入相关包....

spring
spring-beans.jar 访问配置文件、创建和管理bean 以及进行Inversion of Control / Dependency Injection(IoC/DI)操作相关的所有类
spring-context.jar 可以找到使用Spring ApplicationContext特性时所需的全部类,JDNI 所需的全部类,instrumentation组件以及校验Validation 方面的相关类
spring-core.jar Spring 框架基本的核心工具类
spring-jdbc.jar 包含对Spring 对JDBC 数据访问进行封装的所有类
spring-orm.jar 对映射框架的一些支持
spring-tx.jar 提供对事务的支持
如果还需要AOP的支持,还要加上aspectjrt.jar和aspectjweaver.jar


其它可选包:
commons-beanutils-1.6.jar
commons-dbcp-1.2.2.jar
commons-pool-1.4.jar

 

提供的办法:将struts-2.1.8-all.zip中apps 文件夹中struts2-blank-2.1.8.war文件解压。进入struts2-blank-2.1.8"WEB-INF"lib,只将该文件夹下的6个jar包导入到项目工程中即可,其余的包如果没有用到切不可轻易导入

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
==================================================================== * The OpenSymphony Software License, Version 1.1 * * (this license is derived and fully compatible with the Apache Software * License - see http://www.apache.org/LICENSE.txt) * * Copyright (c) 2001-2004 The OpenSymphony Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * OpenSymphony Group (http://www.opensymphony.com/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "OpenSymphony" and "The OpenSymphony Group" * must not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact license@opensymphony.com . * * 5. Products derived from this software may not be called "OpenSymphony" * or "XWork", nor may "OpenSymphony" or "XWork" appear in their * name, without prior written permission of the OpenSymphony Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIB

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值