自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 前端常用JQ小工具 --时间格式转换 --获取地址啦参数 --回车搜索 --返回顶部 --map判断 --获取复选框checked值 --jq格式化数字

//日期格式转换varactivityDate=dateFtt('yyyy-MM-dd',new Date(date));function dateFtt(fmt,date) { //author: meizz var o = { "M+" : date.getMonth()+1, //月份 ...

2019-07-03 14:11:42 220

原创 java8 按照类属性去重

参考地址测试popackage com.shiwulian.test.po;public class Person {private String id;private String name;private Integer age;public String getId() {return id;}public void setId(String id) {this.id = id;}public String getName() {return name;}public

2021-12-30 15:20:34 129

原创 一些常用SQL

--按时间区间分组查询--以下是按照CHECK_TIME每10分钟一组进行分组SELECT count( 1 ) count, to_char(CHECK_TIME,'yyyy-MM-dd hh24')||':'||lpad(floor(to_char(CHECK_TIME,'mi')/10)*10,2,0) 打卡时间FROM HRMS_ATT_CHECK_DATA WHERE TO_CHAR( CHECK_TIME, 'yyyy-MM-dd' ) >= '2021-12-03'

2021-12-08 10:27:07 409

原创 Linux一些命令

日志切割 sed -n '/2021-07-15 10:00:00/,/21-07-15 11:00:00/p' catalina-daemon.out >catalina-daemon20210715-10~11.txt

2021-07-15 14:16:43 104

原创 tomcat启动报错Invalid byte 1 of 1-byte UTF-8 sequence

idea编辑idea64.exe添加如下文字-Dfile.encoding=UTF-8-Dconsole.encoding=UTF-8eclipse同理 编辑eclipse.ini

2020-12-01 13:25:16 363

原创 MySQL Navicat建表时timestamp 默认值没有CURRENT_TIMESTAMP选项

下拉没有那个选项,手写输入,会有提示。

2020-09-11 10:42:59 3457 4

原创 Git使用

创建**.gitignore_global**文件build/dist/out/.idea/.gradle/target/*.iml*.iws*.class//cmd执行git config --global core.excludesfile D:\MyInstall\Git.gitignore_global

2020-07-16 16:32:03 91

原创 开发中各类环境英文缩写

英文缩写 英文 中文DEV development 开发SIT System Integrate Test 系统整合测试(内测)UAT ...

2020-03-13 17:22:16 7189

原创 移动端实现手写签字

参考地址:地址index.html<!doctype html><html lang="zh"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" ...

2019-12-11 16:58:45 6565 1

原创 Mybatis 实体类属性名不要带有 "_"不然查询时值映射不进去

Mybatis 实体类属性名不要带有 ""不热查询时值映射不进去!!!Mybatis 实体类属性名不要带有 ""不热查询时值映射不进去!!!Mybatis 实体类属性名不要带有 ""不热查询时值映射不进去!!!Mybatis 实体类属性名不要带有 ""不热查询时值映射不进去!!!Mybatis 实体类属性名不要带有 "_"不热查询时值映射不进去!!!...

2019-08-07 20:25:04 580

原创 superset启动报No such command "runserver".

执行这条命令:flask run -p 8088 --with-threads --reload --debugger

2019-07-11 17:27:56 4165 10

原创 input 文件上传后台接受参数

//MultipartFile 这个对象!!!这个对象!!!这个对象!!! @RequestMapping("/img_uploader") public String img_uploader(MultipartFile files){ System.out.println(files.getName()); System.out.println(f...

2019-07-03 19:30:28 2264

原创 Elasticsearch 集成 springBoot 记录

pom.xml <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEnc...

2019-07-01 17:21:29 94

原创 统计字表数查询sql

SELECT a.id, count(*)FROM tb_collect_new aJOIN tb_collect_new_middle b ON a.id = b.new_idGROUP BY a.id

2019-06-28 09:15:12 139

原创 java 检测文件类型

package com.thinkgem.jeesite.modules.utils;import java.io.File;import java.io.FileInputStream;import java.io.InputStream;import java.net.URL;public class EncodingDetect {private static final int...

2019-06-26 15:54:27 322

原创 修改alert样式,重写alert方法

// 重写alert window.alert = alert; function alert(data){ var a = document.createElement("div"), p = document.createElement("p"), btn = document.createElement("di...

2019-06-06 14:37:35 1132

原创 JQ获取不重复随机数-自定义范围

//获取不重复随机数 function getRandom(lengths) { var arr = [];//存放随机数的数组 var arrLen = lengths;//用来限制范围 for(var i=0; i<4; i++){ ...

2019-05-20 18:11:12 1643

原创 输入框输入值监听事件

$('#comment').on('input propertychange', function() { var count = $(this).val().length; $('#tip').html("已输入 "+ count +" 个字。"); });

2019-05-09 16:19:25 947

转载 input-File选择图片展示在页面上

/**建立一個可存取到該file的url@param file@returns {*}/var getObjectURL = function (file) {var url = null ;if (window.createObjectURL!=undefined) { // basicurl = window.createObjectURL(file) ;} else if...

2019-05-09 14:00:25 953 1

转载 后台判断请求来自移动端或者PC端

首先定义一个工具类,增加一个方法判断请求是否来自手机:public class StringUtil {private final static String[] agent = { “Android”, “iPhone”, “iPod”,“iPad”, “Windows Phone”, “MQQBrowser” }; //定义移动端请求的所有可能类型/**判断User-Agent 是不...

2019-05-08 12:08:05 1177

转载 json类型转换

需要的jar包<!--json Maven包--> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.1</version> </de...

2019-05-07 09:20:43 142

空空如也

空空如也

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

TA关注的人

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