摘要:
1. 确定一条数据的依据 先确定哪几个字段是可以唯一标识一条记录的。 哪些字段是会在多条记录中重复出现的。一般主键都是可以唯一标识一条记录的 阅读全文
posted @ 2021-03-11 17:51
Innocent_Blog
阅读(59)
评论(0)
推荐(0)
摘要:
1. 获取完整的日志信息 e.getMessage() ,很多时候,并不能提供有效的异常信息 打印堆栈信息 public static String getTrace(Throwable t) { StringWriter stringWriter= new StringWriter(); Prin 阅读全文
posted @ 2021-03-11 13:52
Innocent_Blog
阅读(82)
评论(0)
推荐(0)
摘要:
1. 遇到的问题 使用mybatis plus出现There is no getter for property named 'null' in 'xx' 遇到这种情况,一般是使用updateById等,根据主键进行增删改的方法。但是实体类上没有加@TableId注解导致的。 2.自定义Sql的使用 阅读全文
posted @ 2021-03-11 10:27
Innocent_Blog
阅读(126)
评论(0)
推荐(0)

浙公网安备 33010602011771号