- 博客(277)
- 收藏
- 关注
原创 java 正则表达式
package com.modules.plateform.tool; import java.util.regex.Pattern; /** * 账户相关属性验证工具 * */ public class AccountValidatorUtil { /** * 正则表达式:验证用户名 */ public static final String REGE...
2019-03-04 14:05:29
156
原创 date 日期加一天
date 日期加一天 if(!params.get("aftercreatedate").equals("")){ SimpleDateFormat s=new SimpleDateFormat("yyyy-MM-dd"); Date date=new Date(); try{ date=...
2018-11-16 22:47:09
10962
原创 Excle 导入导出
pom.依赖 <!--poi--> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version> </dependency> <...
2018-09-21 11:17:45
512
转载 BigDecimal加减乘除
BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3 = bignum1.add(bignum2); System.out.println("和 是...
2018-07-24 14:10:59
677
原创 去除null字段返回前端的时候
@JsonInclude(JsonInclude.Include.NON_NULL)Null数据的字段返回前端的时候没有这个字段
2018-05-28 11:25:53
1942
原创 日志
private static final Logger logger = LoggerFactory.getLogger(FileController.class);
2018-05-19 11:40:35
178
原创 IE6-7下浮动元素margin-bottom值失效的问题
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> .clear { zoom:1; } .clear:after { content:''; display:block; clear:both; } .wrap { pa.
2021-04-20 15:37:04
182
原创 阴影CSS
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> #div1 { width:100px; height:100px; background:#FFC; border-radius:20px; box-shadow:10p.
2021-04-20 15:35:12
172
原创 圆角CSS
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> #div1 { width:400px; height:400px; border:1px solid #333; border-radius:0 0 80px 20px..
2021-04-20 14:38:02
201
原创 渐变CSS
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> #div1 { width:200px; height:200px; border:1px solid #333; background:-moz-linear-gra.
2021-04-20 14:32:40
166
原创 CSS笔记
width 宽度 height 高度 border 边框(集合样式) border-width 边框宽度 border-style 边框样式 solid实线 dashed虚线 dotted点线 border-color 边框颜色 关键字 rgb 十六进制(0-9,a,b,c,d,e,f),六位或者三位的数字 border border...
2021-04-02 11:46:31
195
原创 创建vue项目
首先安卓 node 然后修改镜像地址 npm config set registry https://registry.npm.taobao.org 查询修改效果 npm config get registry 安装vue-cli脚手架构建工具 npm install --global vue-cli 创建项目 执行 vue init webpack demoVue 然后切换目录运行程序 cd demoVue npm run dev ...
2021-03-11 15:07:40
179
原创 vue学习
vue 官网 https://cn.vuejs.org 教学 视频 https://learning.dcloud.io 使用vue ,必须引用vue.js <script src="vue.js" type="text/javascript" charset="utf-8"></script> Vue() 对象 Vue 对象是vue.js 里面包含的初始对象。 <!DOCTYPE html> <...
2020-12-09 11:28:36
173
原创 集合的操作(并集、交集、交集的补集、差价)
import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.ArrayUtils; public class Collect.
2020-05-13 15:06:30
539
原创 多数据源
<dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>...
2020-02-29 15:49:09
330
原创 com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value
Caused by: com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value at com.fasterxml.jackson.core.JsonGenerator._reportError(JsonGenerator.java:1961) at com...
2020-02-16 09:04:47
13613
4
原创 mybatis 配置了驼峰映射,映射不上
mybatis: typeAliasesPackage: com.gaia.order.vo,com.gaia.order.model configuration: map-underscore-to-camel-case: true mapper-locations: classpath:com/gaia/pay/mapping/**/*.xml 主要是因为配置的...
2020-01-19 10:29:15
5175
原创 Eureka注册中心开启密码认证(可以防止外部服务注册进去)
首先添加安全验证的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dep...
2020-01-12 20:36:43
942
原创 集合排序-jdk8
List<ListVariousOrderNumVO> list =new ArrayList<>(); list.sort(Comparator.comparing(ListVariousOrderNumVO::getStatus)); list.sort((p1,p2) -> { return p1.getStatus().compareTo(p2.ge...
2019-12-31 19:36:00
389
原创 linux 启动jar (后台启动、指定日志文件)
转:https://blog.csdn.net/u014756827/article/details/89439720 Linux 运行jar包命令如下: 方式一: java-jar XXXX.jar 特点:当前ssh窗口被锁定,可按CTRL + C打断程序运行,或直接关闭窗口,程序退出 那如何让窗口不锁定? 方式二 java-jarXXXX.jar& &a...
2019-12-29 17:16:04
5568
原创 python-学习笔记-12
****************************************文件******************************************** read函数 #1.打开文件 file = open("README") #2.读取内容 text = file.read() #3.关闭文件 file.close() open函数 file = o...
2019-10-09 18:29:14
154
原创 python-学习笔记-11
****************************************包******************************************** 概念 包是一个 包含多个模块 的 特殊目录; 目录下 有一个 特殊的文件 __init__.py ; 包名的命名方式和变量名一致,小写字母 或者下滑线 _ 好处 使用 import 包名 可以一次性导入 包 ...
2019-10-09 17:02:37
163
原创 python-学习笔记-10
****************************************模块******************************************** 模块 就是一个py文件,命名规则要符合标识符的命名规则 导入方式 import 模块1,模块1 # 这种不推荐 import 模块1 import 模块2 2种导入方式 as 别名 impor...
2019-10-09 11:41:53
142
原创 生成数学公式图片验证
@RequestMapping(value="/verifyCode", method=RequestMethod.GET) @ResponseBody public Result<String> getVerifyCode(HttpServletResponse response,MiaoshaUser user, @RequestParam...
2019-10-08 17:12:29
363
原创 spring初始化执行代码-InitializingBean
InitializingBean @Controller public class InitController implements InitializingBean { private HashMap<Long, Boolean> localOverMap = new HashMap<Long, Boolean>(); /** * 系统初始化 * *...
2019-10-08 17:05:16
343
原创 springBoot 缓存页面/url到redis
需要 spring-boot-starter-web 和 spring-boot-starter-thymeleaf 依赖 @Autowired MiaoshaUserService userService; @Autowired RedisService redisService; @Autowired GoodsService goods...
2019-09-25 10:22:29
363
原创 jmeter 压测
apache-jmeter-5.3/bin/jmeter.sh -n -t xxx.jmx -l result.jtl xxx.jml 是windows 下生产的文件 result.jtl 是linux 测试后的文件,然后在windows 下的jmeter 的聚合报告 中的文件名 选中当前文件 https://jmeter.apache.org/usermanual/get-...
2019-09-24 18:11:46
217
原创 linux 登陆时的图形显示
cat /etc/motd vi /etc/motd # 这个文件可以让你刚登陆linux 系统显示图形效果,需要自己添加
2019-09-24 17:20:41
1007
原创 查询自增长的id
@Insert("insert into order_info(user_id, goods_id, goods_name, goods_count, goods_price, order_channel, status, create_date)values(" + "#{userId}, #{goodsId}, #{goodsName}, #{goodsCount}, #{goodsP...
2019-09-24 15:48:22
431
原创 JS定时任务
var time = window.setInterval(function(){ console.log("hello hello ") },2000) 清空定时任务 clearInterval(time) clearTimeout(TimeRanges) 2中都可以 区别一下连接 https://www.cnblogs.com/hwaggLee/...
2019-09-24 15:13:53
214
原创 python-学习笔记-09
****************************************异常******************************************** 捕获异常 try: 尝试执行代码 except: 出现错误的处理 这是最简单的捕获异常的语法 错误类型捕获 try: # 尝试执行代码 pass except 错误类型1: ...
2019-09-19 18:23:56
180
原创 python-学习笔记-08
*************************************面向对象****************************************** 单例设计模式 __new__ 方法(为对象分配空间,返回对象的引用) 此方法在初始化方法之前执行, class A(object): def __new__(cls,*args,**kwargs): ...
2019-09-19 17:45:33
134
原创 python-学习笔记-07
*************************************面向对象****************************************** 类 class class 类名: # 定义对象 def 方法1(self,参数列表) # self 相等于this pass object = 类名() # 创建对象 类名...
2019-09-19 17:16:13
151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅