스프링 MVC 비동기 처리를 사용하고 있지만 컨트롤러가 웹 브라우저에서 뷰를 반환하지 않습니다.스프링 비동기 처리가 돌아 오지 않음
@RequestMapping(value = "/generateGM", method = RequestMethod.POST)
public Callable<ModelAndView> generateGMReport(@RequestParam("countryCode") int countryCode, ModelAndView mv) {
Callable<ModelAndView> c = new GenericCallable(countryCode, reportDao, mv);
return c;
}
@Override
public ModelAndView call() throws Exception {
List<CostReport> gmList = reportDao.generateGrossMarginReport(countryCode);
mv.setViewName("gmReport");
mv.addObject("gmList", gmList);
return mv;
}
호출 가능을 반환하도록 코드를 수정하려고했지만 여전히 지정된보기 이름으로 돌아 가지 않습니다.
저는 JBoss 7.1을 사용하고 있습니다.
배포 중에 있습니다 경고한다 :
WARN [org.jboss.as.ee] (MSC service thread 1-7)
JBAS011006: Not installing optional component
org.springframework.web.context.request.async.StandardServletAsyncWebRequest
due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException:
JBAS011054:
Could not find default constructor for class
org.springframework.web.context.request.async.StandardServletAsyncWebRequest
이유 : 아마도 스프링 MVC 프레임 워크 (AsynContext)에서 응답 객체를 설정할 수 없습니다 통해 Sitemesh는.
이유가 무엇입니까?
도와주세요.
감사합니다.
지침을 제공하십시오. 추가 정보가 필요하면 알려주십시오. – peterwkc
sitemesh filer를 비활성화하려고 시도했지만 결과가 반환되었지만 sitemesh fileter enable을 사용하여 반환 HTML이 없습니다. 설치하지 않는 임의 성분 예외로 인한 org.springframework.web.context.request.async.StandardServletAsyncWebRequest : 또한, [org.jboss.as.ee] WARN (MSC 서비스 스레드 1-7) JBAS011006있다 : org.jboss.as.server.deployment.DeploymentUnitProcessingException : JBAS011054 : 이 org.springframework.web.context.request.async.StandardServletAsyncWebRequest – peterwkc