开发者社区 问答 正文

String2能同时配置两种请求类型吗?-java报错

"

现在是.action 我想在配置.test

大神们怎么配置啊

"

展开
收起
montos 2020-06-01 21:13:52 525 分享 版权
1 条回答
写回答
取消 提交回答
  • "

    是spring吧。。。

    直接用junit就行了,配置不变

    然后你就可以测试了。


    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations={"classpath:conf/test.xml"})  
    public class BaseTest {
    
        @Test
        public void test() {
            // do something
        }
    }

    ######是Struts2 不是spring######

    额,好吧,Struts2

    也是一样,用junit

    "
    2020-06-01 21:14:13
    赞同 展开评论
问答分类:
问答地址: