第一次启动没问题,可以创建表,然后添加了几个方法,想访问一下,启动就报下面的错误。还有,我把数据库的表删除,再一次启动,又不报错了。
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key named