---
title: "Struts2的优点"
author: "josh198331"
date: "2010-08-07T11:40:11Z"
tags: []
categories: ["企业架构"]
slug: "struts2"
draft: false
lastmod: "2010-08-07T11:40:11Z"
id: 731640
url: "https://josh198331.iteye.com/blog/731640"
---

Struts2是根据WebWork2发展起来的，是一种MVC框架. 相对于Struts 1.X比较，有如下优点：

1：不像Struts1 与 servlet API & Struts API高度耦合。Struts 1 属于侵入式设计，而Struts 2 属于非侵入式

2：Struts 2 提供了拦截器，利用拦截器可以进行AOP编程，实现如：对权限进行拦截等功能。

3：Struts 2 提供了类型转换器

4：Struts 2提供多种表现层技术

5：Struts 2能进行指定方法进行校验。

6：提供，全局，包，页面国际化管理