参考: SpringBoot 2.X @Cacheable,redis-cache 如何根据key设置缓存时间? @Cacheable(value = "Menus", unless = "#result == null or #result.size() == 0") public List<Sy ...
分类:
编程语言 时间:
2020-07-15 15:49:38
阅读次数:
327
create-react-app,官方推荐脚手架 配置及安装方式: 1.搭建 react : npx create-react-app my-app (my-app 自己起的文件名,如果一直安装失败,试着清一下缓存:npm cache clean --force) 1.1: npm i react- ...
分类:
移动开发 时间:
2020-07-14 13:54:20
阅读次数:
108
mbp 启停查询ssh sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist sudo launc ...
分类:
其他好文 时间:
2020-07-14 11:50:09
阅读次数:
62
首先创建好项目工程,如下图:完善pom.xml文件,具体为:(依据自己的spark版本做修改)<dependencies><dependency><groupId>org.scala-lang</groupId><artifactId>scala-library</artifactId><version>2.11.
分类:
其他好文 时间:
2020-07-14 09:21:08
阅读次数:
78
从网上搜集到两种解决办法: 1、执行以下命令(我也是这样解决的) sudo apt-get install libjpeg-dev zlib1g-dev pip install Pillow 如果是python3,则将第二句改为: pip3 install Pillow 2、更新pip版本 pip ...
分类:
编程语言 时间:
2020-07-14 00:24:25
阅读次数:
303
为什么要用工厂? 用工厂的主要目的是把对象的创建和使用分离,这比较符合单一职责原则,工厂负责创建产品,调用者负责使用产品,如果调用者既需要负责创建产品又需要负责使用产品,那么耦合性会比较高。 以一个常见的登录功能为例: class HibernateUserDao { public void get ...
分类:
其他好文 时间:
2020-07-13 23:11:59
阅读次数:
113
用法一、查询IP地址 nslookup最简单的用法就是查询域名对应的IP地址,包括A记录和CNAME记录,如果查到的是CNAME记录还会返回别名记录的设置情况。其用法是: nslookup 域名 # 示例 >nslookup www.baidu.com 服务器: cache-a.guangzhou. ...
分类:
其他好文 时间:
2020-07-13 21:46:13
阅读次数:
162
1.GPIO初始化函数 用法: voidGPIO_Configuration(void) { GPIO_InitTypeDefGPIO_InitStructure;//GPIO状态恢复默认参数 GPIO_InitStructure.GPIO_Pin=GPIO_Pin_标号|GPIO_Pin_标号; ...
分类:
其他好文 时间:
2020-07-13 09:46:44
阅读次数:
93
TypeError: Cannot read property '$createElement' of undefinedat render (eval at ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_module ...
分类:
其他好文 时间:
2020-07-12 18:55:59
阅读次数:
111
写在前面 今天想写一篇使用Nginx如何生成缩略图的文章,想了半天题目也没想好,这个题目还是一名读者帮我起的。起因就是这位读者最近出去面试,面试官正好问了一个Nginx如何生成缩略图的问题。还别说,就是这么巧呀!!就冲这标题,也要写一篇干货满满的技术好文!! 关于Nginx的安装,小伙伴们可以参考《 ...
分类:
其他好文 时间:
2020-07-12 16:41:01
阅读次数:
61