会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
拥抱蓝天
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2019年10月8日
java基础篇之面向对象
摘要: 一、类和对象 什么是类 类:是一组相关属性和行为的集合。可以看成是一类事物的模板,使用事物的属性特征和行为特征来描述该 类事物。 现实中,描述一类事物: 属性:就是该事物的状态信息。 行为:就是该事物能够做什么。 举例:小猫。 属性:名字、体重、年龄、颜色。 行为:走、跑、叫。 什么是对象 对象:是
阅读全文
posted @ 2019-10-08 20:50 微笑的蜗牛
阅读(101)
评论(0)
推荐(0)
编辑
2019年9月30日
参数按照ASCII码从小到大排序,获取本机ip
摘要: 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日
Mybatis整合分页插件
摘要: 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日
java生成二维码
摘要: 引入文件 测试
阅读全文
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日
liux命令
摘要: /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 请求工具类
摘要: /** * 简单封装 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日
SpringBoot使用AOP统一处理Web请求日志
摘要: 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)
编辑
上一页
1
2
3
下一页