SpringMVC
SpringMVC copied to clipboard
打开http://localhost:8080/users 后 报错
mysql已经创建了名为springMVCDemo的数据库 persistence.xml 也配置过
<property name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/springMVCDemo"/>
<!-- 数据库连接的驱动 -->
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<!-- 数据库连接的用户名 -->
<property name="hibernate.connection.username" value="root"/>
<!-- 数据库连接的密码 -->
<property name="hibernate.connection.password" value="xxxxx"/>
报异常:
Type Exception Report
Message Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: org.hibernate.exception.SQLGrammarException: could not execute query; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query