Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
holyen opened this issue Dec 15, 2017 · 0 comments
Open

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

holyen opened this issue Dec 15, 2017 · 0 comments

Comments

@holyen
Copy link

holyen commented Dec 15, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant