2 SaulLabel

尚未进行身份认证

菜鸡一个

等级
TA的排名 14w+

java将TXT小说按章节分开,并保存为对象

效果  项目结构Content.javapublic class Content { private long id; private String name; //txt所带章节 private String chapter; private String content; //新生成章节 private long...

2019-02-08 11:42:24

jackson用法

@GetMapping("findUserByUsername.action") public Object findUserByUsername(String username) throws JsonProcessingException { List<User> list=userService.findUserByUsername(username);...

2018-12-29 18:12:58

spring-data-rest查询

http://127.0.0.1/api/user/search/login?username=123&password=123package com.example.shijianrili.repository;import com.example.shijianrili.domain.User;import org.springframework.data.jpa.r...

2018-12-29 17:13:17

apicloud之iphoneX修复状态栏

  //修复导航栏 var headerList=$api.domAll('header'); for(var i=0;i<headerList.length;i++){ $api.fixStatusBar(headerList[i]); }//修复footer,这个方法,api.js中没有需要另外添加 $api.f...

2018-12-27 20:11:59

apicloud之导航栏切换

<!DOCTYPE HTML><html><head> <meta charset="utf-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,init

2018-12-27 00:42:36

apicloud之日历

<!doctype html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initi

2018-12-22 23:58:57

工具类之QRCodeUtils

import java.awt.image.BufferedImage;import java.io.File;import java.nio.file.Path;import java.util.HashMap;import javax.imageio.ImageIO;import org.springframework.stereotype.Component;impo...

2018-12-20 20:25:13

工具类之MD5Utils

import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;import org.apache.commons.codec.binary.Base64;import org.apache.commons.codec.digest.Md5Crypt;public class MD5...

2018-12-20 20:23:59

工具类之JsonUtils

package com.imooc.utils;import java.util.List;import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.JavaType;import com.fasterxml.jackson.databind.Obje...

2018-12-20 20:23:15

工具类之FastDFSClient

import java.io.ByteArrayInputStream;import java.io.IOException;import java.nio.charset.Charset;import org.apache.commons.io.FilenameUtils;import org.apache.commons.lang3.StringUtils;import org...

2018-12-20 20:22:26

工具类之FileUtils

import java.io.BufferedOutputStream;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import j...

2018-12-20 20:21:41

AJAX上传Base64编码图片

SSM图片上传:https://blog.csdn.net/weixin_37595711/article/details/85109381 1.html部分<!DOCTYPEhtml><htmllang="en"><head><title>上传图片</title></head>&l

2018-12-20 00:06:48

用tomcat搭建图片服务器(SSM)

将图片上传到Tomcat中的upload中,外部通过URL访问1.项目结构2.FileControllerpackage com.controller;import com.fasterxml.jackson.databind.ObjectMapper;import org.apache.commons.io.FilenameUtils;import org.spring...

2018-12-19 22:33:56

tomcat9上传文件失败

打开conf/server.xml文件<!--原配置--><Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /><!--修改后的配置-->&amp

2018-12-18 23:55:01

apicloud视频播放

 文档地址:https://docs.apicloud.com/Client-API/Func-Ext/videoPlayer<html> <head> <meta charset="utf-8"> <meta name="viewport" content="maximum-scale=1.0,minim...

2018-12-09 15:26:21

springboot-admin使用

运行结果 服务端:配置文件:server.port=80启动类:package com.example.demo123;import de.codecentric.boot.admin.server.config.EnableAdminServer;import org.springframework.boot.SpringApplication;...

2018-12-07 19:09:02

maven热部署

环境jdk1.8  tomcat71.pom.xml <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId&g...

2018-11-26 23:52:49

springboot之热部署

环境jdk1.8 tomcat7.0项目是springboot与spring-data-rest与spring-data-jpa1.项目结构2.pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="...

2018-11-26 22:57:08

spring data rest环境搭建

1.项目结构2.实体类package com.example.springrest1.entity;import org.hibernate.annotations.GenericGenerators;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.p...

2018-11-24 20:15:37

springboot整合mybatis与swagger生成rest接口文档

项目结构1.swagger配置package com.example.szp1.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import springfox.documentation....

2018-11-15 19:29:25

查看更多

勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!