Using GSP views in plain Spring MVC without Grails

后端 未结 3 1907
借酒劲吻你
借酒劲吻你 2021-02-08 22:16

I would like to use GSP views instead of JSP/JSTL views in a plain old Spring MVC application. I have added a groovy.servlet.TemplateServlet to web.xml like this:



        
3条回答
  •  無奈伤痛
    2021-02-08 23:04

    Today GSP for Spring Boot was just released. This provides the ability to use GSP instead of JSP in a regular Spring web application. You can see an example here: https://github.com/grails/grails-boot/blob/master/sample-apps/gsp/script/templates/index.gsp

提交回复
热议问题