51,411
社区成员
发帖
与我相关
我的任务
分享

这样就能添加header了[/quote]
header里面添加的跟您写的应该是一致的,我是这样写的
然后我尝试了下在postman中,将Cookie中的数据添加到header中,也登录成功了,
但是出现了跟中午的时候一样的问题:
<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Fri Feb 26 14:31:49 CST 2021</div><div>There was an unexpected error (type=Internal Server Error, status=500).</div><div>PreparedStatementCallback; SQL [INSERT INTO SPRING_SESSION_ATTRIBUTES(SESSION_ID, ATTRIBUTE_NAME, ATTRIBUTE_BYTES) VALUES (?, ?, ?)]; Cannot add or update a child row: a foreign key constraint fails (`ceair_test`.`spring_session_attributes`, CONSTRAINT `spring_session_attributes_ibfk_1` FOREIGN KEY (`SESSION_ID`) REFERENCES `spring_session` (`SESSION_ID`) ON DELETE CASCADE); nested exception is java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`ceair_test`.`spring_session_attributes`, CONSTRAINT `spring_session_attributes_ibfk_1` FOREIGN KEY (`SESSION_ID`) REFERENCES `spring_session` (`SESSION_ID`) ON DELETE CASCADE)</div></body></html>
这样就能添加header了