Stuct, spring, hibernate集成开发备忘

折腾了2天,终于可以正常运行网上的struts+spring+hibernation的程序

1. 去掉WEB-INF/libasm -2.2.3.jar的包,或者在myeclipse 窗口-首选项-Myeclipse-project capalibitiies/spring/spring2/libraries中去掉,下次发布不会出现。否则又是找不到servlet的错误。

2. src/applicationContext.xml发布时是在web-inf/classes下面,在structs-cofig.xml中要有classes

< plug-in  className ="org.springframework.web.struts.ContextLoaderPlugIn" >
    
< set-property  property ="contextConfigLocation"  value ="/WEB-INF/classes/applicationContext.xml"   />
</ plug-in >

这里写了,web.xml就不用设置。或者干脆就在web-inf中建立applicationContext.xml应该就用,路径也不用写classes,大部分错误是找不applicationContext.xml造成。

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值