日期:2014-05-17  浏览次数:20861 次

No setter found for property 'sessionFactoroy' in class 'com.iBBS.dao.impl.UserI
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/itdn?useUnicode=true&amp;characterEncoding=utf-8"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/iBBS/hib/pojo/Blog.hbm.xml</value>
<value>com/iBBS/hib/pojo/BlogClass.hbm.xml</value>
<value>com/iBBS/hib/pojo/Resource.hbm.xml</value>
<value>com/iBBS/hib/pojo/UserInfo.hbm.xml</value>
<value>com/iBBS/hib/pojo/PhotoReply.hbm.xml</value>
<value>com/iBBS/hib/pojo/BlogReply.hbm.xml</value>
<value>com/iBBS/hib/pojo/Album.hbm.xml</value>
<value>com/iBBS/hib/pojo/Photo.hbm.xml</value>
<value>com/iBBS/hib/pojo/Reply.hbm.xml</value>
<value>
com/iBBS/hib/pojo/AchievementClass.hbm.xml
</value>
<value>com/iBBS/hib/pojo/Board.hbm.xml</value>
<value>com/iBBS/hib/pojo/ResourceClass.hbm.xml</value>
<value>com/iBBS/hib/pojo/Forum.hbm.xml</value>
<value>
com/iBBS/hib/pojo/AchievementReply.hbm.xml
</value>
<value>com/iBBS/hib/pojo/Achievement.hbm.xml</value>
<value>com/iBBS/hib/pojo/UserDetai.hbm.xml</value>
<value>com/iBBS/hib/pojo/ResourceReply.hbm.xml</value></list>
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<bean id="userInfoDAO" class="com.iBBS.dao.impl.UserInfoDAO">
<property name="sessionFactoroy">在这里报错No setter found for property 'sessionFactoroy' in class 'com.iBBS.dao.impl.UserI
<ref local="sessionFactory" />
</property>
</bean>
<bean id="userInfoDAOProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager"/>
</property>
<property name="target"