摘要: 业务场景:在启动项目的时候,报错! BeanCurrentlyInCreationException: Error creating bean with name 'MaintPlanService': Requested bean is currently in creation: Is ther 阅读全文
posted @ 2021-05-23 13:43 XuTingYin 阅读(690) 评论(0) 推荐(0)
摘要: 场景 在项目中,定义了一个 Integer 类型的DEFAULT_VALUE 默认值,但在查询学生数量时,定义的是Long类型,在使用equals比较相等时,与预期不符合 public class LongAndInteger { private final static Integer DEFAU 阅读全文
posted @ 2021-03-31 14:23 XuTingYin 阅读(529) 评论(0) 推荐(0)
摘要: Github 贡献未统计提交的代码 场景: 在Github 首页代码贡献中,未统计当前提交的代码 原因: 因为Github是按照注册的邮箱进行代码统计贡献的,自己使用Gitlab时使用的是公司的邮箱,导致和自己在Github上注册的邮箱不一致 解决方案: 在需要提交Github的项目中,配置Gith 阅读全文
posted @ 2021-01-28 11:22 XuTingYin 阅读(218) 评论(0) 推荐(0)
摘要: IDEA 自动提示配置数据库连接属性的坑 application.yml 中的数据库连接配置如下 # 应用名称 spring: application: name: spring-data-jpa # 数据库配置 datasource: url: jdbc:mysql://192.168.32.32 阅读全文
posted @ 2021-01-27 20:44 XuTingYin 阅读(756) 评论(0) 推荐(0)
摘要: 查看编译生成的汇编代码 1、下载动态链接库 hsdis-amd64.dl hsdis-amd64.lib 2、将这两个文件放到%JAVA_HOME%/jre/bin/server目录下 3、在需要查看汇编代码的类启动时加上如下参数 -XX:+UnlockDiagnosticVMOptions -XX 阅读全文
posted @ 2021-01-27 10:12 XuTingYin 阅读(442) 评论(0) 推荐(0)
摘要: BigDecimal 各种保留的区别 public class Test { public static void main(String[] args) { BigDecimal b1 = new BigDecimal(String.valueOf(2.3555)); // 2.4 ROUND_U 阅读全文
posted @ 2021-01-21 17:23 XuTingYin 阅读(208) 评论(0) 推荐(0)
摘要: Git提交规范 feat:新增功能 fix:修复了什么问题 revert:回退到某个commit doc:文档改变 版本号规范 以test分支为基础,打预发布/试运行tag 如果本地不存在pre分支,请先以远程pre分支为基准新建本地pre分支:git checkout -b pre origin/ 阅读全文
posted @ 2020-12-24 11:55 XuTingYin 阅读(170) 评论(0) 推荐(0)
摘要: 记录一下, 纠结了大半天: 问题:当在方法上存在断点时,使用IDEA的debug模式启动,会让程序一直卡住,启动不了。 解决办法: 方法1:使用run 方式启动,会直接跳过断点。 方法2:去掉所有断点,debug启动完成后,再进行断点调试 阅读全文
posted @ 2020-10-12 17:24 XuTingYin 阅读(1661) 评论(0) 推荐(0)
摘要: 当你想编写一个具有导航、搜索等功能的文档时,如何办?docsify来帮你。 阅读全文
posted @ 2020-09-28 09:14 XuTingYin 阅读(362) 评论(0) 推荐(0)
摘要: CentOS 关闭防火墙后无法正常启动 启动时报如下错误: [root@VM_0_17_centos sbin]# systemctl status firewalld.service [root@VM_0_17_centos sbin]# systemctl status firewalld.se 阅读全文
posted @ 2020-09-23 15:48 XuTingYin 阅读(813) 评论(0) 推荐(0)