随笔分类 - java问题解决
一些遇到的开发问题记录
摘要:1、Collectors.toMap注意点 1、 key不能有重复,否则会报错 2、value不能为空,否则报空指针 2.解决方法 不使用stream 不使用stream时,需要先new一个map,然后手动把list的每一项放入map public void test0() { User user1
阅读全文
摘要:参考:https://www.cnblogs.com/coderxiaobai/p/15005181.html 问题: 更换maven,清空缓存重新导入依赖依然无效后 (1)解决方法: 方式一:删除项目中.idea文件夹,重新打开项目,选中jdk版本 ,重新导入依赖即可。 (2)如果不是上述的原因
阅读全文
摘要:(1) Malformed \uxxxx encoding.报错解决 使用everthing 全局搜了resolver-status.properties 文件,或者找到本地仓库的目录,删除掉这些文件。在window下可以使用这个方式,将以下改为clean.bat执行.仓库换为自己的仓库 @echo
阅读全文
摘要:https://www.cnblogs.com/my_captain/p/9122812.html
阅读全文
摘要:1、下载安装 官网:https://www.tcpdump.org/index.html#latest-releases 编译和安装 [root@mysql01 ~]# tar -zxvf tcpdump-4.99.4.tar.gz [root@mysql01 ~]# tar -zxvf libpc
阅读全文
摘要:一、手动添加jar包到Maven仓库 (1)在pom.xml加入依赖,例如: (2)把包拷贝到到maven home下,然后进入bin目录下,执行 mvn install:install-file -Dfile=C:\Users\admin\Desktop\1.0-SNAPSHOT\1.0-SNAP
阅读全文
摘要:命令 git代码回滚 // 查看 commit提交前5条记录 git log -n 5 // 强制回退到某一版本,这一版本后面的都不会保存 git reset --hard <commit版本id> // 强制push到远程仓库 git push origin <分支> -f 例如,强制push到d
阅读全文
摘要:结论:推荐使用spring自带的copy工具,不能copy的手动set  # 1、springboot自
阅读全文
摘要:springboot开始引入了mybaits-plus。后来想引入pagehelper进行分页,引入之后报错 ``` Error starting ApplicationContext. To display the conditions report re-run your application
阅读全文

浙公网安备 33010602011771号