パートナーには同じコードがありますが、私はこの問題を抱えています。 私は同じmySqlとSpringバージョンを持っています。ここで私が得る例外があります:mySqlを使用したスプリング
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'dataBaseUsage': Invocation of init method failed;
nested exception is
org.springframework.dao.InvalidDataAccessResourceUsageException:
could not execute statement; SQL [n/a]; nested exception is
org.hibernate.exception.SQLGrammarException: could not execute statement
Caused by: org.springframework.dao.InvalidDataAccessResourceUsageException:
could not execute statement; SQL [n/a]; nested exception is
org.hibernate.exception.SQLGrammarException: could not execute statement
Caused by: org.hibernate.exception.SQLGrammarException:
could not execute statement
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Unknown column 'roles' in 'field list'
DataBaseUsageは@Controller
ある
多少の移行/スキーマ調整が見当たりませんか?あなたのテーブルの一つがフィールド 'ロール'を見逃しているようです。これはフレームワークとデータベースのバージョンとは関係ありませんが、データベースに格納されているものとは関係ありません。 –