在action里调用用spring注入的service bean,在这一个action里最多只能调用8次,第9次就是无限的等待是怎么回事,哪个地方做的限制啊,怎么取消这个限制???
解决方案 »
- velocity怎么用啊,有谁有好的资料共享一下
- 使用SSH1整合是如何修改用户登录密码的?
- 使用DWR出现fail to find parameter:c0-scriptName问题 有人碰到过么
- 有几个问题请教大家,先谢过~
- servlet怎么进行编译?
- 网络连接不通或超时时如何在页面给出提示或页面跳转! 急着想知道,请教各位大虾~
- 我使用jspSmartUpload上载图片到Oracle数据库中,现在传小图片没问题,超过5K后就有问题。(请高手解答,必有重谢)
- 关于jb中编写jsp聊天室时的刷新问题
- kindeditor提交表单时获取不到HTML内容
- 在spring security 下发送post请求返回405错误
- org.springframework.beans.factory.BeanCreationException求助
- ext中,我导入了第一个ID的数据,再导入第二个ID的时候数据还是第一个ID的
另外第9次的无限等待是什么意思?是打不开页面在等还是执行ServiceBean的方法在等?
public void test() {
// TODO Auto-generated method stub
System.out.println("$$$$$$$$$$$$$$$$$$$$$");
}
action里的方法:
public String findVegetables() {
for(int i=1; i<20; i++){
vegetablesService.test();
System.out.println("iiiiiiiiiii == " + i);
}
}
//只能输出到i=8配置文件:
<bean id="vegetablesAction" class="com.ssh.action.impl.VegetablesActionImpl"
scope="prototype" >
<property name="vegetablesService" ref="vegetablesService" />
<property name="menuService" ref="menuManagerservice"/>
<property name="unitService" ref="unitService" />
<property name="tasteService" ref="tasteService" />
<property name="methodService" ref="methodService" />
<property name="priceService" ref="priceService" />
</bean>
<bean id="vegetablesService" class="com.ssh.service.impl.VegetablesServiceImpl"> <property name="vegetablesDao" ref="vegetablesDao" />
</bean>这有什么问题啊?????
spring更不会自动限定啊
// TODO Auto-generated method stub
System.out.println("$$$$$$$$$$$$$$$$$$$$$");
}
这个就是VegetablesServiceImpl里的方法,我在其他项目里测了一下,都没有这个问题,到底是怎么回事啊,都两天了,郁闷死我了