developing skills
文章平均质量分 85
Eaven25
专注Java,接触React,初识NodeJs,了解Python,略懂大数据
展开
-
hutool的BeanUtil.copyProperties复制枚举类属性大坑
hutool的BeanUtil.copyProperties复制枚举类属性报错:Can not convert XXX to XXX。原创 2023-02-07 16:35:47 · 5526 阅读 · 1 评论 -
Mybatis实现InsertOrUpdate功能
需求最近在项目开发中遇到这样一个需求:每天需要对相同的数据(也有可能是不同的)进行两次入库操作,数据不存在便insert,存在则update。于是就用到了Mybatis的InsertOrUpdate功能。实现每次操作数据库之前,先根据id查询有没有记录,有则进行update操作,没有则进行insert操作。model类代码如下。其中count为非业务字段(也不是表sheet中的字段...原创 2020-04-05 16:44:29 · 6508 阅读 · 0 评论 -
eclipse上web项目提示 The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
使用eclipse开发web项目时,出现 The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path错误,对应以下几种情况。1、Tomcat的位置发生改变的情况:在Eclipse中,Window-->preference --> servers --> runti...原创 2018-08-01 17:08:43 · 219 阅读 · 0 评论