自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

转载 ajax跨域请求

跨域请求链接: https://segmentfault.com/a/1190000012469713?utm_source=tag-newest.

2019-12-26 13:16:52 88

原创 Mybitis-plus条件构造器

EntityWrapperpackage com.crm.CLdriving.controller;import java.util.ArrayList;import java.util.Collection;import java.util.Date;import java.util.List;import org.springframework.beans.factory.an...

2019-12-20 17:40:50 239

原创 RestTemplate

RestTemplatepackage com.ssdl.advertise.service.impl;import java.util.Date;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annotation.Value;...

2019-12-20 17:18:06 140

转载 Springboot集成RabbitMQ

Springboot集成RabbitMQspringboot集成RabbitMQ非常简单,如果只是简单的使用配置非常少,springboot提供了spring-boot-starter-amqp对消息各种支持原文链接: 鸟哥.配置<dependency> <groupId>org.springframework.boot</groupId> ...

2019-12-18 18:01:50 135

原创 StringBuffer生成很多个*号

生成很多个*号 //生成很多个*号 public String createAsterisk(int length) { StringBuffer stringBuffer = new StringBuffer(); for (int i = 0; i < length; i++) { stringBuffer.appe...

2019-12-18 10:18:51 120

原创 拦截器

自定义拦截器(实现HandlerInterceptor 接口)package com.crm.CLdriving.config;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.http.HttpSession;...

2019-12-18 10:14:32 178

原创 js批量删除

批量删除<thead> <tr> <th>全选&nbsp;&nbsp;&nbsp;<input id="all" type="checkbox" /></th> <th>客户名称</th> <th>客户来源&...

2019-12-17 20:00:23 141

原创 io流

FileInputStream-> ByteArrayOutputStream-> FileOutputStream//设置读取路径 String filenameUrl = FILEUPLOAD_PATH+"yys"+".jpg"; //创建文件输入流 ,读取信息 FileInputStream fis=null; try { fis = new FileIn...

2019-12-17 10:31:46 1763

原创 BigDecimal 数据类型运算

BigDecimal 数据类型运算 BigDecimal result01 = new BigDecimal("-1.00"); BigDecimal result02 = new BigDecimal("8.07"); //绝对值 result01.abs(); //加 result01.add(result02); //减 result01.subt...

2019-12-13 09:57:13 199

原创 获取当前时间

获取当前时间的几种方式1.new Data()SimpleDateFormat simpleFormat =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");String datastring=si1.format(new Date());//把获取的时间转换为date格式Date insertDate=simpleFormat.parse(data...

2019-12-12 20:42:19 195

原创 通过ajax前后端数据交互

js代码<script type="text/javascript"> $(function(){ /*公共部分 */ $(".headerpage").load("Head.html"); $(".navigation").load("Navigation.html"); });</scri...

2019-12-12 20:15:32 183

原创 pom.xml文件

poom.xml文件常用配置链接: poom.xml.<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio...

2019-12-12 20:07:06 325

原创 正则

正则(请求类中)@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")@Pattern(regexp = "^(\\d{18,18}|\\d{15,15}|(\\d{17,17}[x|X]))$", message = "身份证格式错误")@Pattern(regexp="^[1][3,4,5,7,8][0-9]{9}$",messa...

2019-12-12 20:01:49 157

原创 redis

stringRedisTemplate在springboot中使用非关系型数据库: redis:资料1.操作字符串//向redis里存入数据和设置缓存时间stringRedisTemplate.opsForValue().set("test","100",60*10,TimeUnit.SECOND;//根据key获取缓存中的valstringRedisTemplate.opsForV...

2019-12-12 19:57:18 185

原创 Fastjson 中 json 类型数据转换

Json中格式转换去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的1.json字符串转换为对象 String jsonString="{'idcard':'42313123','id':'2345'}"; Channelbankcard c =JSONObject.parseObject(jsonString, Channelbankcard.class); Sy...

2019-12-12 19:30:15 779

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除