<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.Show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">create</prop>
<prop key="hibernate.current_session_context_class">thread</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>hubin/vo/CwManager.hbm.xml</value></list>
</property>
<property name="annotatedClasses">
<list>
<value>hubin.vo.user</value></list>
</property></bean>
百度了好久找不到原因,为什么控制台无法打印sql
------解决思路----------------------
你看看是不是大小写的问题啊
------解决思路----------------------
Show改成show试试
------解决思路----------------------
看着没问题,是不是大小写问题,试试看
------解决思路----------------------
Show_sql,应该是小写吧