posts - 570,  comments - 96,  views - 171万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
07 2019 档案
使用redisTemplate存储数据,出现\xAC\xED\x00\x05t\x00
摘要:本文开发环境:SpringBoot+RedisTemplate 代码: 存到数据库,发现key,hash key/value都有\xAC\xED\x00\x05t\x00前缀。 后来添加了一个配置内,如下: 添加那3行代码解决问题。如果不使用json功能,注释ObjectMapper相关代码 阅读全文
posted @ 2019-07-31 09:17 你不知道的浪漫 阅读(8474) 评论(0) 推荐(1) 编辑
二分查找法c语言实现
摘要:二分查找法是从已经排序的线性表(通常是数组)里快速查找到目标元素所在索引,时间复杂度O(log2n)。 以下是从java源代码中抄来,稍微修改的代码。 运行结果: 阅读全文
posted @ 2019-07-27 15:15 你不知道的浪漫 阅读(687) 评论(0) 推荐(0) 编辑
请求路径@PathVariable注释中有点.英文句号的问题(忽略英文句号后面的后缀)
摘要:前端页面请求地址 后台代码 后台得到的id结果是course 解决方法 参考内容: Spring MVC @PathVariable getting truncated SPRING BOOT: AVOIDING PATHVARIABLE PARAMETERS GETTING TRUNCATED O 阅读全文
posted @ 2019-07-24 10:50 你不知道的浪漫 阅读(565) 评论(0) 推荐(0) 编辑
windows下根据tcp端口查询对应的进程id(端口被占用)
摘要:如下: 查询监听LISTENING的端口1027 结果如下(最后一列是进程id): 查询连接状态ESTABLISHED的进程 例如:查询连接到mysql数据库3306端口的进程 阅读全文
posted @ 2019-07-24 09:02 你不知道的浪漫 阅读(2075) 评论(0) 推荐(0) 编辑
解决gradle项目每次编译都下载gradle-x.x-all.zip gradle-x.x-bin.zip
摘要:想必有一些热爱技术的看官或者android开发人员都会接触gradle项目。中国用户每次下载都很慢,甚至狂躁(CTMD的什么人做的这种设计,每次下载都狗日慢的想死)。 哦,不好意思,骂人了。不管你高不高兴看,我都还是想骂人。这狗日的设计真的他妈让人想死。 "downloading https://s 阅读全文
posted @ 2019-07-23 15:53 你不知道的浪漫 阅读(11091) 评论(2) 推荐(2) 编辑
HideTcpip.c
摘要:隐藏tcp端口,来自看雪 /////////////////////////////////////////////////////////////////////////////////////// // Filename Rootkit.c // // Author: Jamie Butler 阅读全文
posted @ 2019-07-22 08:48 你不知道的浪漫 阅读(407) 评论(0) 推荐(0) 编辑
ANSI C遍历二维数组指针地址
摘要:多维数组的的每个维度实际上等维界定线性表。--严蔚敏数据结构 当多维数组维度n=1的时候,n维数组就退化为定长的线性表--严蔚敏数据结构 例如 arr[1][n] ={1,2,3,4,5...n} 实际上就是 arr[n] = {1,2,3,4,5...n}的一维数组 --严蔚敏数据结构 在c语言里 阅读全文
posted @ 2019-07-20 08:48 你不知道的浪漫 阅读(279) 评论(0) 推荐(0) 编辑
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
摘要:httpclient-4.5.jar 定时发送http包,忽然有一天报错,http证书变更引起的。 之前的代码 之后的代码 阅读全文
posted @ 2019-07-19 17:36 你不知道的浪漫 阅读(1434) 评论(0) 推荐(0) 编辑
centos7安装VuePress
摘要:VuePress可以帮你快速建站,使用MarkDown语法生成静态html 参考来源: https://vuepress.vuejs.org/zh/ https://tecadmin.net/install-latest-nodejs-and-npm-on-centos/ 阅读全文
posted @ 2019-07-19 16:07 你不知道的浪漫 阅读(962) 评论(0) 推荐(0) 编辑
centos设置静态ip
摘要:cd /etc/sysconfig/network-scripts/ cp ifcfg-ens33 ifcfg-ens33.bak vi ifcfg-ens33 #修改或者替换以下参数 BOOTPROTO=static DEFROUTE=yes IPADDR=192.168.139.132 NETMASK=255.255.255.0 GATEWAY=192.168.139.2 ONBOOT=ye... 阅读全文
posted @ 2019-07-19 09:31 你不知道的浪漫 阅读(409) 评论(0) 推荐(0) 编辑
Linux安装Vmware Tools/vmtools(通用)
摘要:以下方法适用于centos/Ubuntu 阅读全文
posted @ 2019-07-19 09:12 你不知道的浪漫 阅读(1933) 评论(0) 推荐(0) 编辑
Introduction to pointers in C
摘要:The basic purpose of developing a C programming tutorial for this website – CircuitsToday – is to make it useful for people who wish to work with embe 阅读全文
posted @ 2019-07-18 17:32 你不知道的浪漫 阅读(134) 评论(0) 推荐(0) 编辑
Void pointers in C
摘要:In this article we are learning about “void pointers” in C language. Before going further it will be good if you refresh about pointers by reading – I 阅读全文
posted @ 2019-07-18 17:17 你不知道的浪漫 阅读(235) 评论(0) 推荐(0) 编辑
Implementing a Dynamic Vector (Array) in C(使用c实现动态数组Vector)
摘要:An array (vector) is a common-place data type, used to hold and describe a collection of elements. These elements can be fetched at runtime by one or 阅读全文
posted @ 2019-07-18 17:11 你不知道的浪漫 阅读(294) 评论(0) 推荐(0) 编辑
c语言小端转大端
摘要:short大小端转换 32大端转小端原理 内置函数(传入大端转小端,小端转大端,以下同理) 16位无符号,大小端转换 32位无符号,大小端转换 64位无符号,大小端转换 convert big endian to little endian in C [without using provided 阅读全文
posted @ 2019-07-18 17:04 你不知道的浪漫 阅读(9244) 评论(0) 推荐(1) 编辑
git获取特定版本的代码
摘要:比如取1.80版本 阅读全文
posted @ 2019-07-18 16:47 你不知道的浪漫 阅读(3379) 评论(0) 推荐(0) 编辑
使用构造器模式动态构建Map作为mybatis的查询条件
摘要:输出结果: 阅读全文
posted @ 2019-07-18 16:43 你不知道的浪漫 阅读(753) 评论(0) 推荐(0) 编辑
Spring RedisTemplate常用方法(List,Hash)
摘要:hash操作 阅读全文
posted @ 2019-07-18 16:22 你不知道的浪漫 阅读(3819) 评论(0) 推荐(0) 编辑
JAVA8中Predicate,Consumer,UnaryOperator,Function接口的应用
摘要:笔者平时时间有限,直接贴代码,关于几个接口的差别,可以查看这两篇文章 感受lambda之美,推荐收藏,需要时查阅 https://juejin.im/post/5ce66801e51d455d850d3a4a Java8 函数式编程读书总结 https://juejin.im/entry/5912b 阅读全文
posted @ 2019-07-18 16:13 你不知道的浪漫 阅读(986) 评论(0) 推荐(1) 编辑
用泛型方法Java从实体中提取属性值,以及在泛型方法中的使用
摘要:用法1: 以此类推,你也可以写出 笔者的一个用法是在泛型方法中提取实体的属性值,做进一步计算 阅读全文
posted @ 2019-07-18 16:03 你不知道的浪漫 阅读(9399) 评论(0) 推荐(0) 编辑
java浮点型数据保留两位小数
摘要:/*** * 保留2位小数 * @param floatValue * @return */ float scale(Float floatValue) { DecimalFormat format = new DecimalFormat("#.00"); String scaled = format... 阅读全文
posted @ 2019-07-18 15:55 你不知道的浪漫 阅读(6295) 评论(1) 推荐(0) 编辑
springboot中静态属性/静态方法从YAML(yml)读取配置属性
摘要:启动类添加注解@EnableConfigurationProperties application.yml 使用方法: 阅读全文
posted @ 2019-07-18 15:49 你不知道的浪漫 阅读(13502) 评论(2) 推荐(2) 编辑
Field in required a single bean, but 2 were found:
摘要:我在其他类注入的时候出现以下错误 异常 Description: Field mibService in com.xxx.xxx.controller.SnmpController required a single bean, but 2 were found: - mibServiceImpl: 阅读全文
posted @ 2019-07-18 09:59 你不知道的浪漫 阅读(6810) 评论(0) 推荐(1) 编辑
Centos7 安装 Amazon Corretto 8
摘要:如果以上rpm无法下载,请移步 https://docs.aws.amazon.com/zh_cn/corretto/latest/corretto-8-ug/downloads-list.html 阅读全文
posted @ 2019-07-17 10:58 你不知道的浪漫 阅读(1079) 评论(0) 推荐(0) 编辑
Strange Java syntax (for me at least)--怪异的Java语法
摘要:I've more over 4 years working with Java and today I've seen some piece of code that I thought at first glance it is invalid Java code. The code is: L 阅读全文
posted @ 2019-07-14 17:34 你不知道的浪漫 阅读(357) 评论(0) 推荐(0) 编辑
Returning array from function in C
摘要:以下为了通俗易懂,使用意译。 I've here very intersting discussion about the best and common ways to return an array from a function..我最近很热衷于讨论从函数返回数组的最佳及常用方法Some so 阅读全文
posted @ 2019-07-14 17:28 你不知道的浪漫 阅读(160) 评论(0) 推荐(0) 编辑
Very important notes about Spring @Transnational(Srping事务注解 @Transnational重要注意事项)
摘要:Sprint @Transnational is being ignored in the following cases:1. when the caller method is calling the @Transaction annotated method from the same cla 阅读全文
posted @ 2019-07-14 17:13 你不知道的浪漫 阅读(263) 评论(0) 推荐(0) 编辑
CompletableFuture.allOf that doens't return Void(CompletableFuture.allOf不能返回Void的解决方法)
摘要:摘录地址:http://m-hewedy.blogspot.com/2017/02/completablefutureallof-that-doenst.html 阅读全文
posted @ 2019-07-14 17:10 你不知道的浪漫 阅读(1960) 评论(0) 推荐(0) 编辑
centos升级glibc2.23编译安装
摘要:转载自:https://blog.csdn.net/f0UiRe/article/details/88736755 阅读全文
posted @ 2019-07-04 17:48 你不知道的浪漫 阅读(4316) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示