Cenyol / SpringMVC

本项目基于 MyBatis Plus 进行定制,利用其提供的代码生成器快速生成模板代码。基本上从开始生成到启动运行访问/user/list, /user/get/1等接口的时候,不到五分钟。

Home Page:http://mybatis.plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

打开http://localhost:8080/users 后 报错

holyen opened this issue · comments

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