- 博客(16)
- 收藏
- 关注
转载 导出python项目依赖的模块信息
1. 安装pipreqspip install pipreqs2.导出requriements.txt文件cd 到项目目录pipreqs ./ 或者pipreqs ./ --encoding=utf83.安装依赖模块pip install -r requriements.txt
2020-03-16 10:06:23 409
原创 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 7750 1
原创 layer 弹出iframe 层,页面之间传递参数?
layer.open({ type: 2, title: '预览', shadeClose: true, shade: 0.8, area: ['380px', '90%'], co...
2019-08-16 14:23:48 2913
原创 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 1975
原创 SpringBoot开发微信公众号(一)| 接入微信,成为微信开发者
没有公众号的可以使用微信测试号进行开发申请测试号地址:https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login微信开发文档:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319ngrok下载地址:https://ngrok.com/...
2019-01-08 17:49:34 4367 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 1979
原创 java冒泡排序(数组交换位置方法)
原理:比较两个相邻的元素,将值大的元素交换至右端。思路:依次比较相邻的两个数,将小数放在前面,大数放在后面。即在第一趟:首先比较第1个和第2个数,将小数放前,大数放后。然后比较第2个数和第3个数,将小数放前,大数放后,如此继续,直至比较最后两个数,将小数放前,大数放后。重复第一趟步骤,直至全部排序完成。第一趟比较完成后,最后一个数一定是数组中最大的一个数,所以第二趟比较的时候最后一个数不参...
2018-12-25 16:42:22 943
原创 恢复、更新linux服务器时间
先安装ntpdate:yum install -y ntpdate再选择一个时间服务器来更新时间:ntpdate time.windows.com
2018-11-21 13:25:43 3091
原创 快速搭建springBoot+mybatis+pagehelper+druid+lombok+多环境配置
主要技术框架:springBoot+mybatis+pagehelper+druid+lombok+多环境配置1.新建一个springBoot项目、勾选需要的jar包2.pom里引入druid依赖 <!-- 分页插件 --> <dependency> <groupId>com.githu...
2018-11-05 11:45:12 283
原创 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 21669
原创 Java去除字符串中所有换行和空格
代码String str="wqeqwewd dasdsff " +"dsfsd";str.replaceAll("\r\n|\r|\n", "");//取出所有換行 和回车
2018-07-16 15:59:47 14682
原创 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 13220
原创 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 13855
原创 Thymeleaf模板取java后台Model里面的值
在html头引入头文件:<html xmlns:th="http://www.w3.org/1999/xhtml">注意:th:inline="javascript" 必须填写<script th:inline="javascript"> var identify = [[${identify}]]; alert(identify)<...
2018-07-12 14:29:35 4340 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人