Spring2.0 + hibernate + struts遇到的比较奇怪影射问题
真的很小奚 2007-07-30 05:38:15 最近刚用到spring2.0一直用1.2了新东西要练习下
applicationContext.xml
配置sesionFactory
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="datasource">
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.SQLServerDialect
</prop>
<prop key="show_sql">true</prop>
</props>
</property>
配置影射这里出问题了 只要不写以下代码
就没有问题 只要存在映射 不管提交什么 是否用到IOC的servlet 都抱错
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is not available.
不写影射 OR 使用Spring1.2 OR 使用hibernate.cfg.xml 也有同样问题只要配置影射就报错。。。。。。。。。。。。。郁闷ING有 玩过的指点下吧。
<property name="mappingResources">
<list>
<value>org/ssh/hibernate/Mdetail.hbm.xml</value>
<value>org/ssh/hibernate/Morder.hbm.xml</value>
list>
</property>
</bean>