欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  资讯频道

Java Web框架Stripes1.5发布

程序员文章站 2022-04-17 15:51:48
...
Stripes是一个MVC类型的Java Web框架,也是最早采用Annotation实现了零配置文件的Java Web框架。Stripes虽然没有Struts,Spring MVC等框架著名,但是也是一个简单、易用,而且可以和Spring进行良好整合的Web框架,有兴趣的朋友可以试试看。

Stripes1.5版本有如下改进:

# Even less configuration! Stripes can automatically locate and use your extensions (TypeConverter, Formatter, ExceptionHandler, ActionBeanContext, etc.). Most applications can now be configured with just two parameters.

# Request parameters can be embedded in the request URL and used just like normal parameters. Clean URLs are fully supported by s:link, s:url, and s:form. Use the new DynamicMappingFilter for even more flexibility.

# @StrictBinding annotation to restrict binding only to those properties you wish to allow.

# @Validate(encrypted=true) to encrypt ActionBean property values before they are written to a page in a link or form input.

# @DontBind annotation to completely bypass both binding and validation for an event.

# AJAX-friendly features like partial forms and @HttpCache annotation to control client-side caching.

# The s:format tag brings the power of Stripes formatters to your views. Formatters are also used by all tags and resolutions, leaving String.valueOf() as a last resort for converting objects to strings.

更详细的改进请看:
http://stripesframework.org/display/stripes/2008/08/18/Stripes+1.5+Release+Available

相关标签: Web Java 框架