上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页
接口调用外部系统返回数据,本系统做数据分页封装 场景: 本系统用的Mybatis分页插件PageHelper,调用了外部系统返回的数据为String类型的JSON串,数据量毕竟多,界面需要分页展示。 解决思路: 返回数据转List,然后把多个List放到一个List里,然后在从这个List里进行分页 Read More
posted @ 2020-07-09 22:44 人在京城 Views(555) Comments(0) Diggs(0)
概述 Base64是一种字符串编码格式,Base64采用A-Z a-z 0-9 “+“ “/“这一共64个字符来编码原始字符(还有垫字符“=“)。一个字符本身是1个字节,也就是8位,而Base64编码后的一个字符只能表示能表示6位的信息。也就是原始字符串中3字节的信息编码会变成4字节的信息。Base Read More
posted @ 2020-07-02 19:30 人在京城 Views(2914) Comments(0) Diggs(0)
package Controller; public class TranslationStr { public String HtmltoStr(String newText) { // newText = newText.replace("\n", "<br>"); //textBox里的换行是 Read More
posted @ 2020-03-12 20:22 人在京城 Views(702) Comments(0) Diggs(0)
1、视频文件转换为base64 /** * * @param videofilePath 视频文件路径带文件名 * @return base64 */ public static String videoToBase64(File videofilePath) { long size = video Read More
posted @ 2020-03-12 19:48 人在京城 Views(5932) Comments(0) Diggs(0)
1、base64转化成mp4文件 /** * base64 视频base64字符串 * videoFilePath 输出视频文件路径带文件名 */ public static void base64ToVideo(String base64, String videoFilePath) { try Read More
posted @ 2020-03-12 19:42 人在京城 Views(11290) Comments(0) Diggs(0)
1、读取文本中的内容 import java.io.*; //根据路径读文本的内容 public static String ReadFileContent(String filePath) { //定义一个file对象,用来初始化FileReader File file = new File(fi Read More
posted @ 2020-03-12 19:28 人在京城 Views(326) Comments(0) Diggs(0)
1、json字符串为 { "key" : "value" } import com.alibaba.fastjson.JSONObject; //json字符号转换为json对象,然后获得key对应value public static String getJsonValue(String json Read More
posted @ 2020-03-12 19:13 人在京城 Views(1714) Comments(0) Diggs(0)
该文被密码保护。 Read More
posted @ 2020-02-20 21:37 人在京城 Views(0) Comments(0) Diggs(0)
1、forEach List list = new ArrayList<String>(); list.add("small"); list.add("sun"); list.add("shine"); list.add("small001"); list.add("small002"); list Read More
posted @ 2019-12-23 10:33 人在京城 Views(22477) Comments(2) Diggs(1)
该文被密码保护。 Read More
posted @ 2019-12-18 20:08 人在京城 Views(0) Comments(0) Diggs(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页