更新时间:2021-11-02 02:58:54
Struts内部使用ObjectFactory
来构建配置定义的所有对象.查看有关 ObjectFactory
的更多信息docs或 Struts 2请求流程.
Internally Struts uses the ObjectFactory
to build all objects defined by the configuration. See more about ObjectFactory
docs or The Struts 2 Request Flow.
使用 params
拦截器填充某些bean时默认情况下,将在 OGNL 的帮助下创建对象.它也是可配置的.
When you populate some bean using params
interceptor it will by default create objects if they not exist with the help of OGNL. It's also configurable.
PropertyUtils
未被Struts2内核使用,但是如果插件需要commons-beanutils
包,则可以被插件使用.
PropertyUtils
isn't used by the Struts2 core, but could be used by plugins if they need a commons-beanutils
package.