随笔分类 -  java

摘要:restTemplate请求报错RestClientException Could not extract response: no suitable HttpMessageConverter found for response type [class xxxx] and content type 阅读全文
posted @ 2022-08-17 11:28 void_main() 阅读(322) 评论(0) 推荐(0) 编辑
摘要:1.创建word模板,用英文字段代替需要插入数据的位置 2.另存为xml格式,注:最好是用office另存为word2003xml 兼容性更强 3.在resources目录下建立目录templates 并把文件拖入,修改后缀名为ftl 4.在idea中打开,利用Ctrl+R 替换字段,用${}把字段 阅读全文
posted @ 2021-10-12 10:46 void_main() 阅读(1922) 评论(0) 推荐(0) 编辑
摘要:1.准备excel模板 注: 数据类型为map用{},数据类型为List用{.} 2.在项目中resource目录下新建目录static,然后把准备好的模板扔进去 3.maven中添加相关依赖 <dependency> <groupId>com.alibaba</groupId> <artifact 阅读全文
posted @ 2021-10-11 17:33 void_main() 阅读(8303) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示