为appfuse2.0.2 设置 show_sql属性

来源:互联网 发布:千牛有mac官方版吗 编辑:程序博客网 时间:2024/05/14 22:47
默认的没有找到该属性,操作:1.在项目的 project/src/main/resources/jdbc.properties中更改默认配置jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driverjdbc.url=jdbc:jtds:sqlserver://ip:1433;databaseName=NWapPortalNjdbc.username=rootjdbc.password=hailonghibernate.show_sql=true//添加该属性hibernate.dialect=org.hibernate.dialect.SQLServerDialect2.在 project/src/main/resources/applicationContext-dao.xml 中添加一行 hibernate.dialect=${hibernate.dialect} hibernate.query.substitutions=true 'Y', false 'N' hibernate.cache.use_second_level_cache=true hibernate.show_sql=${hibernate.show_sql} //添加的一行 hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
原创粉丝点击