2019年10月8日
摘要: 一、类和对象 什么是类 类:是一组相关属性和行为的集合。可以看成是一类事物的模板,使用事物的属性特征和行为特征来描述该 类事物。 现实中,描述一类事物: 属性:就是该事物的状态信息。 行为:就是该事物能够做什么。 举例:小猫。 属性:名字、体重、年龄、颜色。 行为:走、跑、叫。 什么是对象 对象:是 阅读全文
posted @ 2019-10-08 20:50 微笑的蜗牛 阅读(101) 评论(0) 推荐(0) 编辑
  2019年9月30日
摘要: 1 /// <summary> 2 /// 参数按照ASCII码从小到大排序 3 /// </summary> 4 /// <param name="paramsMap"></param> 5 /// <returns></returns> 6 private string getParamSrc(Dictionary<string, string> paramsMap) 7 { 8 var vD 阅读全文
posted @ 2019-09-30 10:49 微笑的蜗牛 阅读(356) 评论(0) 推荐(0) 编辑
  2019年7月29日
摘要: 1.引入依赖 <!-- 分页插件 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>${pagehelp 阅读全文
posted @ 2019-07-29 11:55 微笑的蜗牛 阅读(233) 评论(0) 推荐(0) 编辑
  2019年7月8日
摘要: 引入文件 测试 阅读全文
posted @ 2019-07-08 20:45 微笑的蜗牛 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: package com.dosion.shop.file.util; import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGEncodeParam; import com.sun.image.codec.jpeg.JPEGImageEncoder; import javax.imageio... 阅读全文
posted @ 2019-07-08 11:30 微笑的蜗牛 阅读(229) 评论(0) 推荐(0) 编辑
  2019年6月18日
摘要: package com.baokang.utils; /** * Twitter_Snowflake * SnowFlake的结构如下(每部分用-分开): * 0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - * 000000000000 * 1位标识,由于long基本类型在Java中是带符号的,... 阅读全文
posted @ 2019-06-18 16:53 微笑的蜗牛 阅读(787) 评论(0) 推荐(0) 编辑
  2019年6月1日
摘要: /usr/libexec/iptables/iptables.init restart 重启防火墙 vi /etc/sysconfig/iptables 编辑防火墙 阅读全文
posted @ 2019-06-01 15:37 微笑的蜗牛 阅读(244) 评论(0) 推荐(0) 编辑
摘要: https://github.com/haotian-wang/google-access-helper 阅读全文
posted @ 2019-06-01 11:03 微笑的蜗牛 阅读(186) 评论(0) 推荐(0) 编辑
  2019年5月14日
摘要: /** * 简单封装 HTTP 请求工具类 */ public static String doPost(String requestUrl, Map params) throws Exception { // 获取连接 URL url = new URL(requestUrl); HttpURLConnection urlConn =... 阅读全文
posted @ 2019-05-14 09:16 微笑的蜗牛 阅读(572) 评论(0) 推荐(0) 编辑
  2019年5月12日
摘要: org.springframework.boot spring-boot-starter-aop @Aspect @Component public class WebLogAspect { private static final Logger logger = LoggerFactory.getLogger(WebLogAspect.class); ... 阅读全文
posted @ 2019-05-12 18:36 微笑的蜗牛 阅读(387) 评论(0) 推荐(0) 编辑