记录遇到的问题

数据库表与表外键的问题:

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails 

这里主要是外键关联对应不上,外键设置错误,导致出现问题。

猜你喜欢

转载自www.cnblogs.com/LionsEyes/p/8966033.html