<context:component-scan base-package="org.huang.action.*" />.
上述掃描的是action子目錄的文件,如果要掃描org.huang.action.XXXAction,則需要定義爲<context:component-scan base-package="org.huang.action" />或者<context:component-scan base-package="org.huang.*" />
<context:component-scan base-package="org.huang.action.*" />.
上述掃描的是action子目錄的文件,如果要掃描org.huang.action.XXXAction,則需要定義爲<context:component-scan base-package="org.huang.action" />或者<context:component-scan base-package="org.huang.*" />