IDEA强制同步远程仓库到本地 项目场景:把其他分支的代码合并到当前分支,然后冲突了,然后发现有其他人解决冲突,并且提交了,此时git pull 会提示本地有冲突问题描述:原因分析:将远程分支强制同步到当前分支解决方案:git强制覆盖:git fetch --allgit reset --hard origin/mastergit pullgit强制覆盖本地命令(单条执行):git fetch --all && git reset --hard origin/master &.
mapstruct和lombok编译出错,No property named “xxx” exists in source parameter(s). Did you mean “null” 项目场景:mapstruct和lombok编译出错,提示属性找不到报错No property named “XXX“ exists in source parameter(s). Did you mean “null“问题描述:原因分析:由于mapstruct先编译,lombok后编译,导致属性找不到,找到原因是版本问题解决方案:使用这两个的版本就可解决<lombok.version>1.18.10</lombok.version><.
intellij idea关闭field injection is not recommended警告 项目场景:intellij idea关闭field injection is not recommended问题描述:intellij idea关闭field injection is not recommended原因分析:IDEA设置解决方案:Preferences->Editor->Inspections->Spring->Spring Core->Core->Field Injection warning...