控制台上的Junit-spring集成IOException

时间:2015-04-09 09:24:55

标签: spring spring-mvc servlets

当我从我的Junit课程中点击Spring集成应用程序时,我收到了以下错误。

12:48:10.854 INFO  [main]
[org.springframework.integration.http.inbound.IntegrationRequestMappingHandlerMa
pping] Mapped "{[/getBillServiceImplReq],methods=[POST],params=[],headers=
[],consumes=[],produces=[],custom=[]}" onto public abstract void 
org.springframework.web.HttpRequestHandler.handleRequest(javax.servlet.http.Http
ServletRequest,javax.servlet.http.HttpServletResponse) throws 
javax.servlet.ServletException,java.io.IOException

见im running junit:

@RunWith(SpringJUnit4ClassRunner.class)

@WebAppConfiguration

@ContextConfiguration(locations = { "classpath:/WEB-INF/servlet-config.xml" })   

和servlet-context是:

<int-http:inbound-gateway request-channel="getBillServiceImplChannel" supported-methods="POST" path="/getBillServiceImplReq" mapped-request-headers="HttpHeaders.REQUEST_URL"/>

0 个答案:

没有答案