Struts2注解配置 1:导包 <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2
二、convention-plugin 使用 1 <dependency> 2 <groupId>org.apache.struts</groupId> 3 <artifactId>struts2
-- Struts 注解 --> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-convention-plugin <dependency> 34 <groupId>org.apache.struts</groupId> 35 <artifactId>struts2
Action --> 2 <dependency> 3 <groupId>org.apache.struts</groupId> 4 <artifactId>struts2
</dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2
<dependency> 306 <groupId>org.apache.struts</groupId> 307 <artifactId>struts2
/version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2
<dependency> 146 <groupId>org.apache.struts</groupId> 147 <artifactId>struts2
<dependency> 278 <groupId>org.apache.struts</groupId> 279 <artifactId>struts2
不过Struts2(2.1.6版本开始)也可以使用struts2-convention-plugin插件来实现基于注解方式的配置。 ?