自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

一盅孤酒

皮皮友

  • 博客(16)
  • 收藏
  • 关注

转载 导出python项目依赖的模块信息

1. 安装pipreqspip install pipreqs2.导出requriements.txt文件cd 到项目目录pipreqs ./ 或者pipreqs ./ --encoding=utf83.安装依赖模块pip install -r requriements.txt

2020-03-16 10:06:23 381

原创 Layui 实现三级联动

html,我这里使用的是jsp,所以用到了c标签,如果是html的可以使用ajax来初始化顶级分类 <div class="layui-form-item"> <label class="layui-form-label">分类</label> <div class="layui-inpu...

2019-08-16 14:50:22 7695 1

原创 layer 弹出iframe 层,页面之间传递参数?

layer.open({ type: 2, title: '预览', shadeClose: true, shade: 0.8, area: ['380px', '90%'], co...

2019-08-16 14:23:48 2887

原创 Tomcat优化技巧

文章地址:https://mp.weixin.qq.com/s/HtJQCMVI3rAK9a4embA3MA

2019-02-18 15:07:51 312

原创 RedisTemplate工具类(java)

  工具类代码,5中数据结构储存方法都有:package com.dg.elife.redisServer;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.RedisTemplate;import org.springf...

2019-01-09 16:43:50 1960

原创 SpringBoot开发微信公众号(一)| 接入微信,成为微信开发者

没有公众号的可以使用微信测试号进行开发申请测试号地址:https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login微信开发文档:https://mp.weixin.qq.com/wiki?t=resource/res_main&amp;id=mp1421135319ngrok下载地址:https://ngrok.com/...

2019-01-08 17:49:34 4153 7

原创 Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactor异常处理

springBoot 启动报错:org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start Ser...

2019-01-08 17:25:56 1802

原创 java冒泡排序(数组交换位置方法)

原理:比较两个相邻的元素,将值大的元素交换至右端。思路:依次比较相邻的两个数,将小数放在前面,大数放在后面。即在第一趟:首先比较第1个和第2个数,将小数放前,大数放后。然后比较第2个数和第3个数,将小数放前,大数放后,如此继续,直至比较最后两个数,将小数放前,大数放后。重复第一趟步骤,直至全部排序完成。第一趟比较完成后,最后一个数一定是数组中最大的一个数,所以第二趟比较的时候最后一个数不参...

2018-12-25 16:42:22 902

原创 恢复、更新linux服务器时间

先安装ntpdate:yum install -y ntpdate再选择一个时间服务器来更新时间:ntpdate time.windows.com 

2018-11-21 13:25:43 3070

原创 快速搭建springBoot+mybatis+pagehelper+druid+lombok+多环境配置

主要技术框架:springBoot+mybatis+pagehelper+druid+lombok+多环境配置1.新建一个springBoot项目、勾选需要的jar包2.pom里引入druid依赖 &lt;!-- 分页插件 --&gt; &lt;dependency&gt; &lt;groupId&gt;com.githu...

2018-11-05 11:45:12 256

原创 数据库锁机制

博客地址:https://blog.csdn.net/C_J33/article/details/79487941

2018-10-29 16:47:08 114

原创 java 通过HttpServletRequest获取post请求中的body内容

/** * 获取POST请求中Body参数 * @param request * @return 字符串 */ public String getParm(HttpServletRequest request) { BufferedReader br = null; try { br = ne...

2018-08-08 16:04:22 21617

原创 Java去除字符串中所有换行和空格

代码String str="wqeqwewd dasdsff " +"dsfsd";str.replaceAll("\r\n|\r|\n", "");//取出所有換行 和回车 

2018-07-16 15:59:47 14470

原创 Java中使用 BASE64 编码和解码

代码:String str="123456"; String encode = new BASE64Encoder().encode(str.getBytes()); System.out.println("编码过后:"+encode); byte[] bytes = new BASE64Decoder().decodeBuffer(encode);...

2018-07-13 17:19:33 13159

原创 Java 字符串根据ASCII码表进行升序排列

public static String ASCIISort(String str) { char[] test = new char[str.length()]; StringBuilder sb = new StringBuilder(); while (true) { String a = str;//直接读取这行当中的...

2018-07-13 13:40:15 13748

原创 Thymeleaf模板取java后台Model里面的值

在html头引入头文件:&lt;html xmlns:th="http://www.w3.org/1999/xhtml"&gt;注意:th:inline="javascript" 必须填写&lt;script th:inline="javascript"&gt; var identify = [[${identify}]]; alert(identify)&lt...

2018-07-12 14:29:35 4304 2

空空如也

空空如也

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

TA关注的人

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