自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

转载 百度网盘文件迁移到阿里云网盘

百度网盘文件迁移到阿里云网盘

2023-01-30 16:37:29 13118 11

原创 百度地图-区域覆盖物(提取公共变量、带搜索)

1、demo.html<!DOCTYPE html><html><head> </head><body> <!-- 修改弹窗 --> <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="addLabel"> <div class="modal-dialog" role="document"

2021-04-07 13:35:45 428

转载 SpringBoot+Redisson+AOP实现分布式锁,防重复提交

一 、引入jar包<!-- springboot 对redis的支持--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId></dependency><!-- springboot 对aop的支持 --><dependency

2021-03-30 15:09:23 1262 1

原创 spring-boot-starter-logging 日志输出xml配置

<?xml version="1.0" encoding="UTF-8"?><configuration debug="false"> <contextName>logbackdemo</contextName> <property name="logdir" value=".\\logs\\api"/> <!--控制台输出appender--> <appender name="conso.

2021-03-20 09:06:05 488

转载 SpringCloud之Hystrix容错保护原理及配置

作者:kosaminohttps://cnblogs.com/jing99/p/11625306.html

2021-03-15 15:32:36 102

原创 百度地图批量地址逆解析异步问题处理

// 局部示例代码,根据数组jsonDataPerson内的经纬度逆解析具体地址,并放入gridDataList中function initPersonPage() { $.post(url, {personIds: _persons.join(",")},function(data) { var jsonDataPerson = eval("(" + data + ")").data; // 包含经纬度的数组 var gridDataList = []; getMaybePosition.

2021-03-05 13:49:25 610 2

原创 viewer插件查看图片

// 当前js用于查看图片,在页面中添加如下div// <div id="imgShow" style="width: 0px;height: 0px;opacity: 0;cursor:pointer;"tabindex="-2">var viewer;// 显示以 ;, 或 ,为分割符的图片function showImgs(value) { if(DealValue(value) == ''){ swal("当前数据未上传图片!"); ...

2021-01-27 09:33:15 496

原创 webuploader插件上传图片

1、引入webuploader的css和js插件2、<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <meta charset="utf-8" /></head><body> .

2021-01-27 09:22:07 139

原创 百度地图-单点覆盖物2(提取公共变量、带搜索)

1、demo.html<!DOCTYPE html><html><head></head><body> <!-- 修改弹窗 --> <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="addLabel"> <div class="modal-dialog" role="document...

2021-01-27 09:13:40 151

原创 数据库文档生成

导出excel效果:导出word效果:导出html效果:下载地址:https://gitee.com/lztkdr/DBCHM/releases

2020-12-26 10:07:02 68

原创 百度地图-单点覆盖物

<!--新增/修改信息窗口--><div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="addLabel"> <div class="modal-dialog" role="document" id="modaladd"> <div class="modal-content"> <div class="mo

2020-12-19 10:20:14 96 1

原创 springboot 全局异常捕获+接口统一返回+参数校验

项目结构pom包<?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:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/

2020-12-12 11:50:01 434

原创 powerDesigner 导出excel

1、配置数据源2、打开powedesigner ,创建Model一、powerdesigner 连接 数据库, Database -> connect ->二、更新数据库表结构到powerdesigner,Database -> update Model from Datebase ,选择需要导出的表三、执行vb脚本导出为excel , Tools ->Execute Commands ->Edit/Run Script.

2020-12-10 09:37:17 2549

转载 SpringBoot下实现前端验证码图片的生成和校验

1.效果点击验证码可以获取新的验证码2.原理后台生成验证码图片,将图片传到前台。后台在session中保存验证码内容。前台输入验证码后传到后台在后台取出session中保存的验证码进行校验。注意,验证码的明文是不能传送到前端的。前端内容都是透明的,不安全。验证码是用来防机器人并不是单单防人。如果把验证码明文传到前端很容易就会被破解。3.图片生成验证码生成工具类R...

2020-03-24 17:28:03 2176 1

原创 docker中安装redis

1、搜索redis信息docker search redis2、拉取redis镜像docker pull redis:4.03、查看镜像信息docker images4、创建容器 docker run --name unicorn_redis -p 6379:6379 -d --restart=always 8280a2c45ce5 --appen...

2020-03-18 14:45:38 86

原创 docker常用命令

注:docker ps 查询的为运行中容器,docker images 查询的为镜像window查看端口6379 netstat -aon|findstr 6379window查看端口占用服务 tasklist|findstr pid镜像操作查询镜像文件:docker search +镜像名拉取镜像文件:docker pull +镜像名查看已载镜像:docker ima...

2020-03-18 14:40:46 77

翻译 Redis的过期策略、内存淘汰机制

redis采用的是定期删除+惰性删除策略。过期策略 :定期删除+惰性删除定期删除,redis默认每个100ms检查,是否有过期的key,有过期key则删除。需要说明的是,redis不是每个100ms将所有的key检查一次,而是随机抽取进行检查。因此,如果只采用定期删除策略,会导致很多key到时间没有删除。于是,惰性删除派上用场。也就是说在你获取某个key的时候,redis会检查一下,这...

2020-03-18 14:38:02 61

原创 springboot:集成mybatisplus 3.x 并生成代码

1、引入依赖<!--引入mybatis-plus代码生成器依赖--><dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId></dependency>&lt...

2020-03-18 14:33:48 624 2

原创 springboot:dom4j2日志配置

1、去除springboot依赖的老版本dom4j,添加新版本<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId><exclusions> <!--去除之前对老版本...

2020-03-18 14:30:48 909

原创 springboot项目中单元测试类编写

1、pom.xml 添加jar<!-- 测试类 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope&...

2020-03-18 14:27:03 894

原创 通过IDEA部署到Docker容器

1、将Docker与本地的连接设置为不需要TLS加密2、IDEA中配置Docker连接3、使用mvn打包,成功后在target下生成jar包4、在src/main/ 下新建docker包,包下建Dockerfile文件,并将jar包放到该目录下FROM openjdk:8-jdk-alpineADD *.jar app.jarEN...

2020-03-18 14:21:38 371 2

原创 springboot 使用反射时spring注入无效

解决方法: 在使用反射的类中注入 ApplicationContext, 通过applicationContext.getBea(cls); 从spring中获取bean @Autowired private ApplicationContextapplicationContext; Class<?> cls = Cl...

2019-05-28 09:36:42 2169 1

原创 generatorConfiguration 配置

-->                                                          connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"     userId="root"     password="123456" />  -->

2017-12-18 11:32:42 934

原创 ant环境变量配置--build.xml配置

什么时候使用ant也许你听到别人说起ant,一时冲动准备学习一下ant,当你看完了上边的第一个实例,也许你感觉ant真好,也许你感觉ant不过如此,得出这些结论都不能说错,虽然ant很好用,但并不是在任何情况下都是最好的选择,例如windows上有更多更简单,更容易使用的工具,比如eclipse+myeclipse eclipse+wtp等等,无论是编译,部署,运行使用起来比ant更容易,方便但有些情况则是ant发挥的好地方:1,服务器上部署的时候,当你的程序开发完成,部署人员要部署在服务器上的时候,总

2017-11-06 09:00:02 1499

转载 排序算法

排序算法平均时间复杂度冒泡排序O(n2)选择排序O(n2)插入排序O(n2)希尔排序O(n1.5)快速排序O(N*logN)归并排序O(N*logN)堆排序O(N*logN)基数排序O(d(n

2017-09-06 16:18:56 125

转载 存储过程、函数、触发器的区别

存储过程、函数、触发器的区别比较项目存储过程函数是否有返回值可以有,也可以没有必须有且只有一个是否可以单独执行可以必须通过execute执行SQL语句(DML或SELECT)可否调用不

2017-09-06 10:05:39 505

百度网盘文件迁移到阿里云网盘

百度网盘文件迁移到阿里云网盘

2023-01-30

空空如也

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

TA关注的人

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