Meine Partner haben den gleichen Code, aber ich bin der einzige, der dieses Problem hat. Ich habe die gleiche mySql und Spring-Version. Hier ist die Ausnahme, die ich erhalten:Frühling mit 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 ist @Controller
Danke
Vermissen Sie vielleicht eine Migration/Schemaanpassung? Es scheint, als würde einer deiner Tische ein Feld "Rollen" verfehlen. Dies hat nichts mit der Version des Frameworks und der Datenbank zu tun, sondern mit dem, was in der Datenbank gespeichert ist. –