- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 使用@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
7932
原创 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
5406
4
原创 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
5506
原创 spring boot 打包成jar包后,获取项目下文件
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("file/xxx.txt");spring boot 在idea下、或打包成war包运行,获取项目路径下的文件,无异常,打包成jar包后,获取项目下文件,报找不到文件的异常,原来打成jar包后,需要以流的形式获取jar包里面的文件,改成以上代码...
2018-11-22 16:08:05
1514
原创 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
8781
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人