Does the new Spring MVC Test Framework released in Spring 3.2 test the web.xml configuration?

前端 未结 1 502
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 23:43

I\'ve read the docs ( http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/testing.html#spring-mvc-test-framework ) several times and I can\'t co

相关标签:
1条回答
  • 2020-12-29 00:42

    You are right, Spring-mvc-test does not read the web.xml file, but you can configure the filters this way:

    webAppContextSetup(this.wac).addFilter(new DefaultWebappMetricsFilter(), "/*").build()
    
    0 讨论(0)
提交回复
热议问题