如何将 Struts2 与 Thymeleaf 集成? [英] How to integrate Struts2 with Thymeleaf?
本文介绍了如何将 Struts2 与 Thymeleaf 集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何将 Struts2 与 Thymeleaf 集成?我找不到任何关于集成 Struts2 和 Thymeleaf 的教程.
Does anybody know how to integrate Struts2 with Thymeleaf? I could not find any tutorial regarding integrating Struts2 and Thymeleaf.
推荐答案
我写了一个简单的插件,支持使用 Thymeleaf 模板作为 Struts2 操作的结果类型.自述文件包含如何使用插件的示例.您需要从源代码构建插件,因为它当前不在任何 Maven 存储库中.
I wrote a simple plugin that supports using Thymeleaf templates as the result type for Struts2 actions. The readme file contains examples of how to use the plug-in. You'll need to build the plug-in from source, as its not currently in any Maven repositories.
https://github.com/codework/struts2-thymeleaf-plugin
这篇关于如何将 Struts2 与 Thymeleaf 集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文