Spring-Boot with JSP Tag Libs in embedded Tomcat

后端 未结 5 1566
离开以前
离开以前 2021-01-19 00:52

I am currently migrating a Spring MVC Webapp (xml-config to java-config, tomcat to embedded tomcat via spring-boot).

The webapp uses freemarker as templating engine

5条回答
  •  一生所求
    2021-01-19 01:57

    Spring Boot doesn't support the use of JSP taglibs with Freemarker out of the box. There's an open enhancement request that you might be interested in. It contains a link to a possible workaround where you configure FreemarkerConfigurer's tag lib factory with some additional TLDs to be loaded from the classpath:

    freeMarkerConfigurer.getTaglibFactory().setClasspathTlds(…);
    

提交回复
热议问题