摘要: package com.example.tool.controller;import sun.misc.BASE64Decoder;import sun.misc.BASE64Encoder;import java.io.File;import java.io.FileInputStream;imp 阅读全文
posted @ 2021-09-02 15:31 十二lq 阅读(4503) 评论(0) 推荐(0)
摘要: 一、先将Blob转为字节数组 Blob attFile = (Blob) queryFileByPkVal.get("ATT_FILE");byte[] blobToBytes = Base64Util.blobToBytes(attFile); public static byte[] blobT 阅读全文
posted @ 2021-09-02 11:01 十二lq 阅读(925) 评论(0) 推荐(0)
摘要: 一、需要jar包 commons-net-3.8.0.jar 二、部分实现代码 // 连接远程ftp文件服务器Map<String,String> filesMap = new HashMap<>();FtpFile ftpFile = new FtpFile();ftpFile.connectSe 阅读全文
posted @ 2021-09-02 11:01 十二lq 阅读(1038) 评论(0) 推荐(0)
摘要: 一、需要3个jar包。aspose-words-15.8.0.jar itext2_rq.jar report4.jar二、一个xml文件去水印用,该文件放在resources路径下License.xml<License><Data><Products><Product>Aspose.Total f 阅读全文
posted @ 2021-09-02 11:00 十二lq 阅读(1386) 评论(0) 推荐(0)
摘要: package com.example.demo.controller; //需要rt.jar包 import sun.misc.BASE64Decoder; import java.io.FileOutputStream; import java.io.IOException; /** * Cre 阅读全文
posted @ 2021-09-02 10:59 十二lq 阅读(413) 评论(0) 推荐(0)
摘要: 一、 spring配置 1、传统的spring.xml配置 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w 阅读全文
posted @ 2021-04-08 14:32 十二lq 阅读(524) 评论(0) 推荐(0)
摘要: 1、后台接受到前台的json格式的字符串处理方式 String jsonStr = "{\"password\":\"\",\"username\":\"张三\"}" ; JSONObject jsonObj = JSONObject.fromString(jsonStr);2、后台拼装json格式 阅读全文
posted @ 2021-02-09 14:20 十二lq 阅读(681) 评论(0) 推荐(0)
摘要: 第一种在sql语句中起别名: 如: <select id="getEmployeeById" resultMap="myMap"> select id id,q_name qName from employees where id = #{id} </select> 第二种驼峰命名法: <!-- < 阅读全文
posted @ 2021-01-03 11:28 十二lq 阅读(218) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-01-03 11:24 十二lq 阅读(117) 评论(0) 推荐(0)
摘要: 第一种办法:在web.xml中引入过滤器 <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter< 阅读全文
posted @ 2021-01-03 11:21 十二lq 阅读(151) 评论(0) 推荐(0)