Nice struts plugin: struts Spring plugin

xiaoxiao2021-03-06  45

http://struts.sourceForge.Net/Struts-Source/ Nice struts plugin allows you to manage your Action with Spring's IOC container, and to implant the objects required for Action. Configuration is also relatively simple. At present, the new version of Spring has integrated this plugin, which can be used without downloading and installation. There is also a relevant instructions in Spring's APIDOC.

Add the struts-config.xml widget configuration:

Configuring your action in struts-config.xml for unified proxy

In the ApplicationContext.xml file, configure bean and your action, Note Configuring Action Yes, the name of the Action must be specified using the Name property. The ordinary bean can also be specified by ID.

转载请注明原文地址:https://www.9cbs.com/read-52212.html

New Post(0)