<bean name="/login"
class="com.daniel.lr.crbt.service.web.action.LoginAction"
scope="prototype">
<property name="userDao" ref="userDao"/>
</bean>
这是我项目里的一个配置~我用的是Spring2.0,需要指明字段scope="prototype"~
你如果用的是Spring1.XX,那就需要用singleton="false"~
bean的默认是singleton="true",action的action不能用单例模式的~
class="com.daniel.lr.crbt.service.web.action.LoginAction"
scope="prototype">
<property name="userDao" ref="userDao"/>
</bean>
这是我项目里的一个配置~我用的是Spring2.0,需要指明字段scope="prototype"~
你如果用的是Spring1.XX,那就需要用singleton="false"~
bean的默认是singleton="true",action的action不能用单例模式的~
解决方案 »
- jfreechart热点,map跑到页面头部了!
- zip md5 asc 后缀都代表什么样的文件
- 急!急!急!weblogic8.1的jsp问题!
- 我现在导航里的包路径都是一层一层打开的,好麻烦。请问怎么设置成打开src,下面就直接显示com.xx.xx路径来?
- ibatis 多少人在用,用得如何
- There is no Action mapped for namespace /enp and action name jobInfo
- 请教一个关于Spring的事务的问题。
- java webservice请教
- struts2奇葩问题。
- IDEA报:该检查报告在指定的检查范围中使用了弃用的代码。类不可用该怎么办
- HttpURLConnection的post提交问题
- struts中如何对已上传的文件内容格式检验?
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
validate="true"
type="org.springframework.web.struts.DelegatingActionProxy" />
中的attribute不需要,去掉试一试~