![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工作遇到的
嘎java嘎
这个作者很懒,什么都没留下…
展开
-
list去重方法
List list= new ArrayListList relist = list.stream().collect(Collectors.collectingAndThen(Collectors.toCollection( () -> new TreeSet(Comparator.comparing(user-> user.getCode() + "#" + user.getName() + "#" + user.getAge()))), ArrayList:原创 2022-06-17 15:43:12 · 116 阅读 · 1 评论 -
mysql 一对多根据最新创建时间取最新一条
select b1.*from follow_db b1where (select COUNT(1) from follow_db b2 where b2.clue_id = b1.clue_id and b1.create_time <= b2.create_time ) <= 1;原创 2021-10-18 14:01:57 · 655 阅读 · 0 评论 -
MySQL 多表关联一对多查询实现取最新一条数据的方法示例
SELECT cr.id, cr.real_name, oi.industry, oi.nature_taxFROM customer AS crLEFT JOIN ( slect fowlloname,fowlloid from (select follow_name as fowlloname,fowlloi_d as fowlloid from fowll_info fl where 1=1 order byfl .follow_name ...原创 2020-07-10 14:04:19 · 5609 阅读 · 0 评论 -
配置数据源失败:未指定“url”属性,无法配置嵌入的数据源。
问题:Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following: If you want an embedded databa...原创 2020-07-07 11:32:00 · 6812 阅读 · 0 评论 -
easypoi 合并导出,出现空值无边框问题
easypoi 合并导出 出现空值无边框,是因为设置的样式不能赋给空值,所以只需要把可能存在的空值的类,进行空判断,直接new对象就可以解决。实例:for (int j = 0; j < trInfo.size(); j++) { trVo trVo = new trVo(); if(clVo.getclCode().equals(trInfo.get(j).get("clCode"))){ trVo.setComTime(trIn...原创 2020-05-15 15:33:10 · 3053 阅读 · 0 评论 -
使用eclipse的maven创建web项目添加webapp下的目录和web.xml(转载)
记录一下转载 2020-05-07 14:42:09 · 331 阅读 · 0 评论 -
Spring boot - java.net.ConnectException: Connection refused: connect
eureka: instance: preferIpAddress: true statusPageUrlPath: /swagger-ui.html #leaseRenewalIntervalInSeconds: 5 #leaseExpirationDurationInSeconds: 10 #metadata-map: #comp...原创 2020-05-06 09:52:31 · 703 阅读 · 0 评论 -
使用mybatis-generator自动生成mapper失败
错误提示:No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [org.mortbay.jetty, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [...原创 2020-04-30 14:09:03 · 729 阅读 · 0 评论 -
java.io.OutputStream & java.io.FileOutputStream
导出Excel到目的地Java.io.OutputStream(字节输出流)字节输出流,这是一个抽象类,是表示输出字节流的所有类的超类。下面是该类的子类都共有的方法:方法 作用 public void close() 关闭输出流并释放与此流相关的任何系统资源 public void flush() 刷新输出流,并强制任何缓冲的输出字节被写出 public...原创 2020-02-21 18:15:51 · 221 阅读 · 0 评论 -
启动Tomcat 报错 :sjava.net.MalformedURLException unknown protocol: d
修改如下// 启动项目报错(java.net.MalformedURLException unknown protocol: d) 增加 在xml或xsl文件绝对路径之前增加“file:///”即可 by-mahe digester.parse("file:///"+ homePath + filePathName );原创 2014-10-29 15:10:11 · 3731 阅读 · 0 评论 -
鼠标移动事件
***********************************jquery**********************************jsp原创 2014-08-06 10:30:51 · 350 阅读 · 0 评论 -
js获取身份证男女
var base = function(){};/** * 通过身份证号获取出生日期 * @param id 身份证号码 * @returns 出生日期(yyyy-MM-dd) */base.prototype.getBirthdayByID = function(id){ var birthday; if(id.length == 15 ){原创 2014-08-04 10:29:45 · 1302 阅读 · 0 评论 -
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path好久不写Jsp,今天建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat。原本开心的新建jsp页面,添加一个简单的Java类。可是,JSP页面顶端出现“红色”的报错信息转载 2014-07-27 09:15:59 · 395 阅读 · 0 评论