applicationContext.xml中没有自动注入实体类

生成struts2 、Spring和Hibernate后每次都没有注入实体类,请指点,非常感谢

图片说明

求指点为什么没有自动生成呀?  谢谢啊!

类只能通过ref属性注入的,你的这种方式只能注入固定的值。

<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
        <property name="configLocation">
            <value>classpath:ibatis/SqlMapConfig.xml</value>
        </property>
        <property name="dataSource" ref="dataSource" />
    </bean>