Redirect in Spring MVC

后端 未结 8 2264
遇见更好的自我
遇见更好的自我 2020-11-28 11:00

Why can\'t I get this to work in my Controller

@RequestMapping(method = RequestMethod.POST)
public String onSubmit(
    Model model,
    @ModelAttribute(\"fo         


        
8条回答
  •  孤街浪徒
    2020-11-28 11:40

    It is possible to define a urlBasedViewResolver in your properties file:

    excel.(class)=fi.utu.seurantaraporttisuodatin.service.Raportti  
    index.(class)=org.springframework.web.servlet.view.urlBasedView  
    index.viewClass =org.springframework.web.servlet.view.JstlView  
    index.prefix = /WEB-INF/jsp/  
    index.suffix =.jsp
    

提交回复
热议问题