org.springframework.dao.DataIntegrityViolationException:
o2o
.tb_product
, CONSTRAINT fk_product_procate
FOREIGN KEY (product_category_id
) REFERENCES tb_product_category
(product_category_id
))o2o
.tb_product
, CONSTRAINT fk_product_procate
FOREIGN KEY (product_category_id
) REFERENCES tb_product_category
(product_category_id
)); SQL []; Cannot add or update a child row: a foreign key constraint fails (o2o
.tb_product
, CONSTRAINT fk_product_procate
FOREIGN KEY (product_category_id
) REFERENCES tb_product_category
(product_category_id
)); nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (o2o
.tb_product
, CONSTRAINT fk_product_procate
FOREIGN KEY (product_category_id
) REFERENCES tb_product_category
(product_category_id
))
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程