
Springboot
白云影中仙
这个作者很懒,什么都没留下…
展开
-
Springboot+vue分离项目的跨域配置问题。当allowCredentials 为true 时, allowedOrigins 不能包含特殊值\“*\“,
在vue中进行跨域跳转的登陆验证时,遇到了400报错的问题用户名,密码没有错,但是在提交的时候会报400错误,不知道问题出在哪里(她只是我的妹妹,妹妹说紫色很有韵味dog),然后看浏览器打印信息说是allowCredentials 不应该为true,改成false后果然可以了,但是!! 但是!! 改成false那你写这个还有什么必要,然后又去找!!!!400:当allowCredentials 为true 时, allowedOrigins 不能包含特殊值\"*\",因为它不能巴拉巴拉原创 2021-07-26 22:43:55 · 1798 阅读 · 0 评论 -
Mybtaisplus3.3.0以上版本的Date自动填充,strictInsertFill的使用
在3.0之前的版本对于createTime和updateTime 装配自动填充时间@TableField(fill = FieldFill.INSERT) private Date createTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Date updateTime;在配置类中:@Component@Slf4jpublic class MyMetaObjectHandler implem...原创 2021-07-24 20:14:37 · 3487 阅读 · 1 评论