- 单元测试框架PowerMock
yzh_1346983557
Spring测试单元测试PowerMock
目录一、为何用?二、powermock的使用1.引入依赖2.单测代码1.普通public方法2.模拟构造器和final方法3.模拟static静态方法4.局部的final、private方法模拟其它Springboot集成测试:一、为何用?Mockito是一个针对Java的单元测试模拟框架,它与EasyMock和jMock很相似,都是为了简化单元测试过程中测试上下文(或者称之为测试驱动函数以及桩函
- 用powermock编写单元测试
左弦月
单元测试
1、pom文件引入jar包org.springframework.bootspring-boot-starter-testtestjunitjunittestorg.powermockpowermock-module-junit42.0.2testorg.powermockpowermock-api-mockito22.0.2testcom.github.jsonzoujmockdata4.1.2
- PowerMock简介
SeanPenn
Java单元测试框架主要有JUnit和TestNG,常用的Mock框架主要有EasyMock、Mockito和JMock等,那么为什么还要有PowerMock呢?实际上,PowerMock并不是发明了一套新的Mock框架,而是在原有的几种框架基础上进行扩充,补充完成原有框架所不能完成的工作,从PowerMock的ReadMe文档中可以看出这点:PowerMockisaframeworkthat
- 基于Spring Boot和Junit4的单元测试进阶教程
文景大大
一、教程目标学会基于AssertJ的断言技术;学会基于AssertJ-DB的数据库断言技术;学会基于JMockit的mock技术;学会内存和数据库的造数;学会集成Maven进行单元测试、集成测试的执行;学会查看测试覆盖率;二、断言技术断言库包含很多,比如junit自带的、hamcrest等,这里推荐使用AssertJ,看它的官网就知道了,宣称fluentassertionsjavalibrary。
- 单元测试相关问题
Hiper
找不到Slf4j的报错解决办法:在测试类上添加@MockPolicy(Slf4jMockPolicy.class)lodaerconstraintviolation解决办法:在测试类上添加@PowerMockIgnore("javax.management.**")
- powermockito测试私有方法
M.Rambo
单元测试java服务器单元测试
为什么要写单元测试优点:单元测试可以减少bug率,提升代码的质量。还可以通过单元测试来熟悉业务。公司硬性要求:有些公司可能还会强制要求,每次新增代码、或者变更代码单测覆盖率要达到多少比例才能申请代码合并请求。选择哪个单元测试框架目前应用比较普遍的java单元测试工具junit4+Mock(Mockito、jmock、EasyMock、powermock)。为什么会选择powermock?在做单元测
- test 系统学习-05-test jacoco 测试覆盖率与 idea 插件
老马啸西风
test学习测试覆盖率intellij-idea单元测试测试工具
1.idea中使用mavenjmockit,如何查看增量的代码覆盖率在使用Maven和JMockit进行单元测试时,你可以结合使用JaCoCo插件来查看增量的代码覆盖率报告。JaCoCo是一个流行的代码覆盖率工具,它与Maven集成良好,并且可以与JMockit一起使用。下面是在IntelliJIDEA中使用Maven和JMockit来查看增量的代码覆盖率的步骤:确保你的Maven项目已经正确配置
- test mock-03-wiremock 模拟 HTTP 服务的开源工具 flexible and open source API mocking
老马啸西风
testhttp开源网络协议单元测试unittesting
拓展阅读test之jmockit-01-overviewjmockit-01-test之jmockit入门使用案例mockito-01-overviewmockito简介及入门使用PowerMockMockServerChaosBlade-01-测试混沌工程平台整体介绍jvm-sandbox入门简介wiremockWireMock是一个流行的开源工具,用于API模拟测试,每月下载量超过500万次。
- mockito加junit实现单元测试笔记
minge0001
java单元测试
目录一、简介1.1单元测试的特点1.2mock类框架使用场景1.3常用mock类框架1.3.1mockito1.3.2easymock1.3.3powermock1.3.4JMockit二、mockito的单独使用2.1mock对象与spy对象2.2初始化mock/spy对象的方式初始化mock/spy对象第1种方式初始化mock/spy对象第2种方式初始化mock/spy对象第3种方式2.3参数
- springboot测试类如何自动注入
MrHamster
spring
在我们需要写单测的时候,因为环境配置或者其他问题,需要自动注入某些类,有时候我们会使用mockito或jmockit等工具进行模拟,但是模拟有时候也不能很好的生效,所以这个时候我们可以通过注解,设置在运行类的时候,启动整个springboot项目,从而达到自动注入的效果,在测试方法运行结束后,springboot项目也就会关闭了。在测试类上加上这个注解即可,就可以使用@Autowired注解了@R
- java 不同场景下的单测代码示例
kubeclub
单元测试kubeclubjmockit
笔者的文章同时发布于kubeclub云原生技术社区,一个分享云原生生产经验,同时提供技术问答的平台,前往查看前言以下所有的样例代码都是基于junit5+jmockit(推荐的单测基础框架选型),大部分是基于项目的真实代码片段POM依赖说明//主要pom说明<!--自己封装的工具类-->cn.kubeclubfastjunit1.0.1-releaseorg.jmockitjmockit
- SpringBoot单元测试及JMockit使用
愚愚是个大笨蛋
SpringBoot单元测试springboot
SpringBoot单元测试及JMockit使用记录一下我总结的SpringBoot单元测试的方法。1、功能方法代码首先贴一下用到的代码:1、目录结构2、pom.xml文件4.0.0com.java.ccsspringboottest1.0-SNAPSHOT1.85.2.0.RELEASEorg.springframework.bootspring-boot-starter-parent2.1.2
- Jmockit的使用总结
愚愚是个大笨蛋
JMockit单元测试
前言Deencapsulation.newUninitializedInstance(clazz)跳过构造函数创建对象我几乎都是参考JMockit中文网学习的Jmockit。在这必须得强烈安利一下啊。其实我刚开始看文档的时候,MockUp、@Mock、@Test、@Mocked、@Injectable、@Capturing、Expectations、Verifications那么多注解和类,傻傻分
- jmockit使用环境部署
花菜回锅肉
使用jmockit是由于工作中项目需要,要将这套测试环境搭建起来,结果花了一天时间,搜了N个教程,都以失败而告终。遇到的问题如下:按照网上的教程引入jmockit和junit的jar包,但是注解@Mocked和@Test死活不能用@Mocked修饰的实例死活不能在录制(Expectations)和验证(Verifications)内部类里使用后来经过自己的摸索和stackoverflow网站上的检
- 单元测试实践思考(junit5+jmockit+testcontainer)
陈晨_软件五千言
背景之前整理过一篇,基于(SpringCloud+Junit5+Mockito+DataMocker)的框架整理的单元测试。当时的项目是一个编排层的服务项目,所以没有涉及到数据库或者其他中间件的复杂问题。而且是项目刚开始,代码环境不复杂,当时的架构基本上能够满足需求。最近在一个较老项目,现在希望加强项目的代码质量,所以开始引入单元测试框架。于是乎先按照原本的设计引入了junit5的整套框架,同时引
- 转-AOP动态代理解析6-cglib代理的实现
小陈阿飞
https://www.cnblogs.com/wade-luffy/p/6077494.htmlCGLIB是一个强大的高性能的代码生成包。它广泛地被许多AOP的框架使用,例如SpringAOP和dynaop,为他们提供方法的Interception(拦截)。EasyMock和jMock是通过使用模仿(moke)对象来测试Java代码的包。它们都通过使用CGLIB来为那些没有接口的类创建模仿(mo
- JMockit官方文档:伪造Facking-part 3 伪造没有指定实现的类
yethyeth
为了展示这个特性,参考下面这个例子:publicinterfaceService{intdoSomething();}finalclassServiceImplimplementsService{publicintdoSomething(){return1;}}publicfinalclassTestedUnit{privatefinalServiceservice1=newServiceImpl
- jmockit使用的坑(with IDEA)
xerjava
jmockitjmockitIDEA
1.问题:编译org.omg无法识别原因:使用JDK11,某些类被removed掉了,详见https://gunnarmorling.github.io/jdk-api-diff/jdk10-jdk11-api-diff.html解决方法:使用JDK82.问题:Cannotresolvesymbol'jmockit'IDEA原因:引入包名错了解决方法:importmockit.*;3.问题:jav
- androidstudio gradle 解决包冲突的方法
亮亮_be3c
exclue:附录去掉全部依赖//依据构建名称排除excludemodule:'cglib'//依据组织名称排除excludegroup:'org.jmock'//依据组织名称+构件名称排除excludegroup:'org.unwanted',module:'iAmBuggy'eg:去除support-v4包的依赖(去掉全部)configurations{all*.excludegroup:'c
- mock 单元测试模拟数据
好菇娘の当自强
●【编程语言】单元测试mock
前言作为一个程序员,我们工作不可缺少的就是单元测试,当我们依赖第三方时,而三方还没有接口数据给我们时,这时候需要我们mock数据了正文what作为一个单元测试,独立且完整是核心,完整性如何保证,这时候就需要mock了,Mock框架可以很好的将被测功能与其他功能隔离开,市面上有很多的Mock框架,比如Mockito、Jmock、easyMock等。借助这些工具我们可以很轻松的Mock出我们想要的依赖
- 单元测试(UT)工具:一键测试所有Bean/DTO的SetGet方法
Mop.Duan
单元测试java数据库
1、引入依赖引入jmockdatacom.github.jsonzoujmockdata4.1.2test2、引入工具类importcom.fasterxml.jackson.core.JsonProcessingException;importcom.fasterxml.jackson.databind.ObjectMapper;importcom.fasterxml.jackson.datab
- 【UT学习】JMockit
xyy_496
学习
系列文章目录提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加Part1:MockPart2:PowerMockPart3:Junit提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录系列文章目录一、JMockit1.JMockito的两种测试方式2.Mock流程3.pom依赖4.基于JMockito实现代码覆盖率100%1Mock接口2Mock公共类commo
- 强大的Kotlin也能搞定,测试利器MockK你不能不知道
自由家
软件测试web自动化测试软件测试工具kotlin开发语言android运维正则表达式java测试工具
目录前言:为什么需要MockK关键字MockKotlin的类时报错静态方法如何MockJmockitMockK使用示例普通使用mockkObjectmockkStaticmockprivatemethodContextMock遇到的一些小坑最后前言:MockK是一个强大且易于使用的Kotlinmocking框架,用于编写单元测试和集成测试。它提供了一套简洁而灵活的API,允许您模拟对象的行为、验证
- 软件自动化测试
听微雨
功能测试测试工具
测试的目的:保证软件质量第一章JMock测试框架1.1简介Mock测试是一种常见的测试方法,通常在执行测试的时候,测试代码往往需要与一些真实对象进行交互,又或者被测代码的执行需要依赖真实对象的功能。此时,我们可以使用一个轻量级的、可控制的Mock对象来取代真实对象,模拟真实对象的行为和功能,从而方便我们测试。jMock便是这种方法的一种实现。jMock是一个利用Mock对象来测试Java代码的轻量
- 浅谈Jmockit使用
u011119684
转自http://blog.csdn.net/changsu4615/article/details/46802517。如有疑问请联系我删除。最近公司里要求使用Jmockit来辅助单元测试。之前也没接触过,研究了几天,今天就跟大家谈谈我怎么使用Jmockit。写一个小例子供大家参考。如有不对的地方还请大家多多指正对于Mock的作用这里就不详细介绍了,不清楚的可以自行百度。笔者使用的是1.15版本的
- Mockito5.2.0学习
langzitianya
JAVA测试学习Mockito笔记
Mockito是mocking框架,它让你用简洁的API做测试。而且Mockito简单易学,它可读性强和验证语法简洁。Mockito是一个针对Java的单元测试模拟框架,它与EasyMock和jMock很相似,都是为了简化单元测试过程中测试上下文(或者称之为测试驱动函数以及桩函数)的搭建而开发的工具相对于EasyMock和jMock,Mockito的优点是通过在执行后校验哪些函数已经被调用,消除了
- java使用jUnit,jMockit,dbunit做DAO层单元测试方法
iameyama
Djunit
第一步:准备数据先在MySQL数据库中填写测试数据和期望数据,然后导出到xml文件中。全表导出:DBUnitHelper.exportTable("t_dp_content_02001",TEST_DATA_FILE);条件查询导出:DBUnitHelper.exportQueryTable("t_dp_content_02001","select*fromt_dp_content_02001wh
- 通过Java Agent的redefineClasses实现Mock功能
向南wmco
A)最近组内项目有个模块进行了较大规模的重构,需要跑一下压力测试,看一下性能如何.但是介于产品的模式,在正常场景下需要向通道发送消息,然而在压测中,我们希望这段行为能被mock掉.当时想到的方案可以采用SpringAOP,JMockit或者自己通过Javasisit/ASM这种字节码框架来实现功能.由于项目中我自己很少使用SpringAOP来做一些功能,便没让它当首选方案,研究了一下JMockit
- GitHub 上最受欢迎的 5 大 Java 项目
OSC开源社区
本文列举了GitHub上最受欢迎的5个Java项目,从Mockitos到Guava,以及java-design-patterns等。GitHub上有大约有744K多的Java项目,但是最让开发人员感兴趣的有哪些项目?1.MockitoMockito并不是无酒精混合饮料的意思。Mockito是一个针对Java的mocking框架。它与EasyMock和jMock很相似,但是通过在执行后校验什么已经被
- Mock数据 – Java最好用的工具JMockData
程序之路2020/6/3
本页目录JMockData使用步骤添加Maven依赖随便弄一个实体类JMockData构造数据输出测试结果JMockData高级进阶追加2个字段构造Mock数据时添加一个条件约束测试高级进阶输出JMockDataGithub地址:https://github.com/jsonzou/jmockdataJMockData使用步骤添加Maven依赖com.github.jsonzoujmockdata
- Dom
周华华
JavaScripthtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
- 【Spark九十六】RDD API之combineByKey
bit1129
spark
1. combineByKey函数的运行机制
RDD提供了很多针对元素类型为(K,V)的API,这些API封装在PairRDDFunctions类中,通过Scala隐式转换使用。这些API实现上是借助于combineByKey实现的。combineByKey函数本身也是RDD开放给Spark开发人员使用的API之一
首先看一下combineByKey的方法说明:
- msyql设置密码报错:ERROR 1372 (HY000): 解决方法详解
daizj
mysql设置密码
MySql给用户设置权限同时指定访问密码时,会提示如下错误:
ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number;
问题原因:你输入的密码是明文。不允许这么输入。
解决办法:用select password('你想输入的密码');查询出你的密码对应的字符串,
然后
- 路漫漫其修远兮 吾将上下而求索
周凡杨
学习 思索
王国维在他的《人间词话》中曾经概括了为学的三种境界古今之成大事业、大学问者,罔不经过三种之境界。“昨夜西风凋碧树。独上高楼,望尽天涯路。”此第一境界也。“衣带渐宽终不悔,为伊消得人憔悴。”此第二境界也。“众里寻他千百度,蓦然回首,那人却在灯火阑珊处。”此第三境界也。学习技术,这也是你必须经历的三种境界。第一层境界是说,学习的路是漫漫的,你必须做好充分的思想准备,如果半途而废还不如不要开始。这里,注
- Hadoop(二)对话单的操作
朱辉辉33
hadoop
Debug:
1、
A = LOAD '/user/hue/task.txt' USING PigStorage(' ')
AS (col1,col2,col3);
DUMP A;
//输出结果前几行示例:
(>ggsnPDPRecord(21),,)
(-->recordType(0),,)
(-->networkInitiation(1),,)
- web报表工具FineReport常用函数的用法总结(日期和时间函数)
老A不折腾
finereport报表工具web开发
web报表工具FineReport常用函数的用法总结(日期和时间函数)
说明:凡函数中以日期作为参数因子的,其中日期的形式都必须是yy/mm/dd。而且必须用英文环境下双引号(" ")引用。
DATE
DATE(year,month,day):返回一个表示某一特定日期的系列数。
Year:代表年,可为一到四位数。
Month:代表月份。
- c++ 宏定义中的##操作符
墙头上一根草
C++
#与##在宏定义中的--宏展开 #include <stdio.h> #define f(a,b) a##b #define g(a) #a #define h(a) g(a) int main() { &nbs
- 分析Spring源代码之,DI的实现
aijuans
springDI现源代码
(转)
分析Spring源代码之,DI的实现
2012/1/3 by tony
接着上次的讲,以下这个sample
[java]
view plain
copy
print
- for循环的进化
alxw4616
JavaScript
// for循环的进化
// 菜鸟
for (var i = 0; i < Things.length ; i++) {
// Things[i]
}
// 老鸟
for (var i = 0, len = Things.length; i < len; i++) {
// Things[i]
}
// 大师
for (var i = Things.le
- 网络编程Socket和ServerSocket简单的使用
百合不是茶
网络编程基础IP地址端口
网络编程;TCP/IP协议
网络:实现计算机之间的信息共享,数据资源的交换
协议:数据交换需要遵守的一种协议,按照约定的数据格式等写出去
端口:用于计算机之间的通信
每运行一个程序,系统会分配一个编号给该程序,作为和外界交换数据的唯一标识
0~65535
查看被使用的
- JDK1.5 生产消费者
bijian1013
javathread生产消费者java多线程
ArrayBlockingQueue:
一个由数组支持的有界阻塞队列。此队列按 FIFO(先进先出)原则对元素进行排序。队列的头部 是在队列中存在时间最长的元素。队列的尾部 是在队列中存在时间最短的元素。新元素插入到队列的尾部,队列检索操作则是从队列头部开始获得元素。
ArrayBlockingQueue的常用方法:
- JAVA版身份证获取性别、出生日期及年龄
bijian1013
java性别出生日期年龄
工作中需要根据身份证获取性别、出生日期及年龄,且要还要支持15位长度的身份证号码,网上搜索了一下,经过测试好像多少存在点问题,干脆自已写一个。
CertificateNo.java
package com.bijian.study;
import java.util.Calendar;
import
- 【Java范型六】范型与枚举
bit1129
java
首先,枚举类型的定义不能带有类型参数,所以,不能把枚举类型定义为范型枚举类,例如下面的枚举类定义是有编译错的
public enum EnumGenerics<T> { //编译错,提示枚举不能带有范型参数
OK, ERROR;
public <T> T get(T type) {
return null;
- 【Nginx五】Nginx常用日志格式含义
bit1129
nginx
1. log_format
1.1 log_format指令用于指定日志的格式,格式:
log_format name(格式名称) type(格式样式)
1.2 如下是一个常用的Nginx日志格式:
log_format main '[$time_local]|$request_time|$status|$body_bytes
- Lua 语言 15 分钟快速入门
ronin47
lua 基础
-
-
单行注释
-
-
[[
[多行注释]
-
-
]]
-
-
-
-
-
-
-
-
-
-
-
1.
变量 & 控制流
-
-
-
-
-
-
-
-
-
-
num
=
23
-
-
数字都是双精度
str
=
'aspythonstring'
- java-35.求一个矩阵中最大的二维矩阵 ( 元素和最大 )
bylijinnan
java
the idea is from:
http://blog.csdn.net/zhanxinhang/article/details/6731134
public class MaxSubMatrix {
/**see http://blog.csdn.net/zhanxinhang/article/details/6731134
* Q35
求一个矩阵中最大的二维
- mongoDB文档型数据库特点
开窍的石头
mongoDB文档型数据库特点
MongoDD: 文档型数据库存储的是Bson文档-->json的二进制
特点:内部是执行引擎是js解释器,把文档转成Bson结构,在查询时转换成js对象。
mongoDB传统型数据库对比
传统类型数据库:结构化数据,定好了表结构后每一个内容符合表结构的。也就是说每一行每一列的数据都是一样的
文档型数据库:不用定好数据结构,
- [毕业季节]欢迎广大毕业生加入JAVA程序员的行列
comsci
java
一年一度的毕业季来临了。。。。。。。。
正在投简历的学弟学妹们。。。如果觉得学校推荐的单位和公司不适合自己的兴趣和专业,可以考虑来我们软件行业,做一名职业程序员。。。
软件行业的开发工具中,对初学者最友好的就是JAVA语言了,网络上不仅仅有大量的
- PHP操作Excel – PHPExcel 基本用法详解
cuiyadll
PHPExcel
导出excel属性设置//Include classrequire_once('Classes/PHPExcel.php');require_once('Classes/PHPExcel/Writer/Excel2007.php');$objPHPExcel = new PHPExcel();//Set properties 设置文件属性$objPHPExcel->getProperties
- IBM Webshpere MQ Client User Issue (MCAUSER)
darrenzhu
IBMjmsuserMQMCAUSER
IBM MQ JMS Client去连接远端MQ Server的时候,需要提供User和Password吗?
答案是根据情况而定,取决于所定义的Channel里面的属性Message channel agent user identifier (MCAUSER)的设置。
http://stackoverflow.com/questions/20209429/how-mca-user-i
- 网线的接法
dcj3sjt126com
一、PC连HUB (直连线)A端:(标准568B):白橙,橙,白绿,蓝,白蓝,绿,白棕,棕。 B端:(标准568B):白橙,橙,白绿,蓝,白蓝,绿,白棕,棕。 二、PC连PC (交叉线)A端:(568A): 白绿,绿,白橙,蓝,白蓝,橙,白棕,棕; B端:(标准568B):白橙,橙,白绿,蓝,白蓝,绿,白棕,棕。 三、HUB连HUB&nb
- Vimium插件让键盘党像操作Vim一样操作Chrome
dcj3sjt126com
chromevim
什么是键盘党?
键盘党是指尽可能将所有电脑操作用键盘来完成,而不去动鼠标的人。鼠标应该说是新手们的最爱,很直观,指哪点哪,很听话!不过常常使用电脑的人,如果一直使用鼠标的话,手会发酸,因为操作鼠标的时候,手臂不是在一个自然的状态,臂肌会处于绷紧状态。而使用键盘则双手是放松状态,只有手指在动。而且尽量少的从鼠标移动到键盘来回操作,也省不少事。
在chrome里安装 vimium 插件
- MongoDB查询(2)——数组查询[六]
eksliang
mongodbMongoDB查询数组
MongoDB查询数组
转载请出自出处:http://eksliang.iteye.com/blog/2177292 一、概述
MongoDB查询数组与查询标量值是一样的,例如,有一个水果列表,如下所示:
> db.food.find()
{ "_id" : "001", "fruits" : [ "苹
- cordova读写文件(1)
gundumw100
JavaScriptCordova
使用cordova可以很方便的在手机sdcard中读写文件。
首先需要安装cordova插件:file
命令为:
cordova plugin add org.apache.cordova.file
然后就可以读写文件了,这里我先是写入一个文件,具体的JS代码为:
var datas=null;//datas need write
var directory=&
- HTML5 FormData 进行文件jquery ajax 上传 到又拍云
ileson
jqueryAjaxhtml5FormData
html5 新东西:FormData 可以提交二进制数据。
页面test.html
<!DOCTYPE>
<html>
<head>
<title> formdata file jquery ajax upload</title>
</head>
<body>
<
- swift appearanceWhenContainedIn:(version1.2 xcode6.4)
啸笑天
version
swift1.2中没有oc中对应的方法:
+ (instancetype)appearanceWhenContainedIn:(Class <UIAppearanceContainer>)ContainerClass, ... NS_REQUIRES_NIL_TERMINATION;
解决方法:
在swift项目中新建oc类如下:
#import &
- java实现SMTP邮件服务器
macroli
java编程
电子邮件传递可以由多种协议来实现。目前,在Internet 网上最流行的三种电子邮件协议是SMTP、POP3 和 IMAP,下面分别简单介绍。
◆ SMTP 协议
简单邮件传输协议(Simple Mail Transfer Protocol,SMTP)是一个运行在TCP/IP之上的协议,用它发送和接收电子邮件。SMTP 服务器在默认端口25上监听。SMTP客户使用一组简单的、基于文本的
- mongodb group by having where 查询sql
qiaolevip
每天进步一点点学习永无止境mongo纵观千象
SELECT cust_id,
SUM(price) as total
FROM orders
WHERE status = 'A'
GROUP BY cust_id
HAVING total > 250
db.orders.aggregate( [
{ $match: { status: 'A' } },
{
$group: {
- Struts2 Pojo(六)
Luob.
POJOstrust2
注意:附件中有完整案例
1.采用POJO对象的方法进行赋值和传值
2.web配置
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee&q
- struts2步骤
wuai
struts
1、添加jar包
2、在web.xml中配置过滤器
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.st