本文介绍了Apache Tiles替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写Spring MVC应用程序并寻找在视图中进行布局的方法。我看到的唯一选择是Apache Tiles,我之前使用过它,并且知道维持其配置是多么痛苦。



有什么好的选择吗?我查看了并两者似乎都处于休眠状态。

解决方案

我在一个月前遇到了同样的困境。我一直是一个使用apache磁贴的经验丰富的开发人员,我想尝试不同的东西。



我做了一些研究,发现Spring MVC与freemarker和sitemesh有一些集成。我决定试一试。



Tiles似乎拥有最活跃的社区。

你也可以尝试纯粹的速度实现。



总之,我的项目最终还原为瓦片。 Tiles是一个强大的模板框架,一旦你了解它的权力,我会发现很难找到一个好的替代品。此外,如果你已经熟悉apache磁贴,我发现切换框架的好处(如果有的话)不能证明获取sitemesh / freemarker所需的学习曲线






I am writing a Spring MVC application and looking for a way to do layouts in views. The only option that i see is Apache Tiles, which i have used before and know how painful it is to maintain its configuration.

Are there any good alternatives? I looked at SiteMesh and Spring Surf both seem to be dormant.

解决方案

I faced the same dilemma about a month ago. I have been a seasoned developer using apache tiles, and I wanted to try something different.

I did some research and found that Spring MVC has some integration with freemarker and sitemesh. I decided to give both a shot.

Tiles seems to have the most active community.

You can also try a pure velocity implementation.

To sum up, my project ended up reverting back to tiles. Tiles is a robust templating framework, and once you understand it's powers, I will find it hard to find a good replacement. Also, if you are already skilled in apache tiles, I find the benifits of switching frameworks (if any) do not justify the learning curve required to picking up sitemesh/freemarker

http://www.sitemesh.org/overview.html

http://freemarker.sourceforge.net/

这篇关于Apache Tiles替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 14:30