spring连接access出现错误
错误提示:
Error creating bean with name 'DAOProxy' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [appcontext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set for database: ACCESS
这个是我在xml中的配置
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>sun.jdbc.odbc.JdbcOdbcDriver</value>
</property>
<property name="url">
<value>jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\My Documents\\DB_JXC.mdb</value>
</property>
<property name="username">
<value></value><
相关问答:
dwr.xml:
<create creator="struts" javascript="PrisonerActionForm">
<param name="formBean" value="prisonerForm"/>
< ......
各位高手好,麻烦帮我看下这个数据库连接问题:
做了一个BBS但是数据库就是连接不上。错误代码如下
HTTP Status 500 -
------------------------------------------------------------------------------- ......
刚刚接触VB.NET,对.NET基本什么也不懂,请高手给一段较完整创建access数据库的示例代码,让我学习一下。
所谓较完整创建数据库时定义各个字段类型的表示方法,如整数型,浮点型,字符型(定义长度如何表示)。谢谢 ......
$conn = @new COM("ADODB.Connection") or die ("ADO连接失败!");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("database.mdb");
$conn-&g ......