
学习记录
大川_
O(∩_∩)O哈哈~
展开
-
使用@XmlSeeAlso注解,xml转换bean时,转换的对象类型总是为同一个
@XmlSeeAlso({AccountInfoQueryRequest.class, AccountInfoRequest.class})public abstract class Request {}@XmlAccessorType(XmlAccessType.FIELD)@XmlRootElement(name = "request")@XmlType(name = "Ac...原创 2020-11-26 00:53:00 · 7947 阅读 · 0 评论 -
linux系统运行java项目报错Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.closeQuietly
Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.closeQuietly(Ljava/io/Closeable;)Vat org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1150)at org.apache.commons.io.F原创 2017-09-16 14:49:49 · 8798 阅读 · 0 评论 -
spring boot 打包成jar包后,获取项目下文件
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("file/xxx.txt");spring boot 在idea下、或打包成war包运行,获取项目路径下的文件,无异常,打包成jar包后,获取项目下文件,报找不到文件的异常,原来打成jar包后,需要以流的形式获取jar包里面的文件,改成以上代码...原创 2018-11-22 16:08:05 · 1515 阅读 · 0 评论 -
electron 打印示例,electron4.0.0打印时需调用多次contents.print方法
在使用electron调用打印方法contents.print时,遇到问题,需要调用多次才生效,printWindow.webContents.print({ silent: false, printBackground: true}, (data) => { console.log("回调", data); })项目使用的是electron ...原创 2019-01-07 13:02:09 · 5512 阅读 · 0 评论 -
springboot 连接rabbitmq报错org.springframework.amqp.AmqpIOException: java.io.IOException
错误信息如下 2019-01-28 10:48:31.368 INFO 28364 --- [cTaskExecutor-1] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [120.79.245.16:15672]2019-01-28 10:48:36.403 ERROR 28364 --- ...原创 2019-01-28 10:54:39 · 5417 阅读 · 4 评论