Easter79 Easter79
4年前
springboot2的redis缓存管理器cacheManager配置,使存入json格式数据
springboot中默认存入缓存的数据,使用的序列化方案对应的值不方便查看,我们希望存入json格式值,所以要配置cacheManager达到效果springboot2的缓存管理器配置和springboot1有所差别,所以记录下来:效果图:!(https://oscimg.oschina.net/oscnet/1ccf3c57249b0dd
DaLongggggg DaLongggggg
4年前
python刷题-杨辉三角形
问题描述杨辉三角形又称Pascal三角形,它的第i1行是(ab)i的展开式的系数。  它的一个重要性质是:三角形中的每个数字等于它两肩上的数字相加。  下面给出了杨辉三角形的前4行:1111211331  给出n,输出它的前n行。输入格式输入包含一个数n。输出格式输出杨辉三角形的前n行。每一行从这一行的第一个数开始依次
Wesley13 Wesley13
4年前
vscode安装vetur插件写.vue文件html代码无法格式化解决方法
文件首选项设置找到vetur插件点击“在settings.json中编辑”加入以下代码即可解决问题"vetur.format.defaultFormatter.html":"jsbeautifyhtml","vetur.format.defaultFormatterOptions":{
Stella981 Stella981
4年前
Flutter Weekly Issue 52
!(https://img2020.cnblogs.com/other/1941337/202004/194133720200422222939358147672698.jpg)📖教程1.一个易迁移、兼容性高的Flutter富文本方案(https://www.oschina.net/action/GoToLink?url
Stella981 Stella981
4年前
Beyond Compare脚本:命令行批量比较文件并生成html格式的差异报告
BComp.exe/silent/closescript/solo@E(https://my.oschina.net/endfunction):\\compareTest\\BCbatch.txttextreportlayout:sidebysideoptions:displayall,linenumberstitle:"re
Stella981 Stella981
4年前
Python之time模块的时间戳、时间字符串格式化与转换
Python处理时间和时间戳的内置模块就有time,和datetime两个,本文先说time模块。关于时间戳的几个概念时间戳,根据1970年1月1日00:00:00开始按秒计算的偏移量。时间元组(struct_time),包含9个元素。 time.struct_time(tm_y
Wesley13 Wesley13
4年前
ubuntu14.04安装完系统网卡名不为eth格式进行网卡名的修改
在安装14.04server版之后会网卡名的显示会有些乱root@controller:~vim/etc/default/grubGRUB_CMDLINE_LINUX"net.ifnames0biosdevname0"这一行加入这些内容root@controller:~updategrub
Stella981 Stella981
4年前
RabbitMQ
centos安装\1、安装erlang以root身份执行下面命令yuminstallerlang2、安装rabbitmqserver打开RabbitMQ的下载页面,http://www.rabbitmq.com/download.html(https://www.oschina.net/action/GoToLink?url
Stella981 Stella981
4年前
JS 获取当前日期的前一天日期(年月日格式)
vartime(newDate).getTime()24\60\60\1000;varyesdaynewDate(time);//获取的是前一天日期yesdayyesday.getFullYear()""(yesday.getMonth()9?(yesday.getMon
少湖说 少湖说
1年前
鸿蒙Flutter实战:03-鸿蒙Flutter开发中集成Webview
鸿蒙Flutter开发中集成Webview主要有两种方案使用第三方库如使用flutterinappwebview插件,在pubspec.lock文件中配置:yamlflutterinappwebview:git:url:https://gitee.com/