# Mac users with Homebrew installed: brew tap homebrew/cask && brew cask install chromedriver # Debian based Linux distros: sudo apt-get install chromium-chromedriver
快速更新
1 2 3 4
# Mac users with Homebrew reInstall brew cask reinstall chromedriver # 如果已经存在新把之前的删除 rm /usr/local/bin/chromedriver
<properties> <junit.version>4.12</junit.version> <jjwt.version>0.10.5</jjwt.version> <lmbok.version>1.18.4</lmbok.version> <h2.version>1.4.197</h2.version> <slf4j.version>1.7.25</slf4j.version> <logback.version>1.2.3</logback.version> <!-- pom文件需要指定打包编码集,[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent! --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block
For more details see https://docs.gradle.org/4.10.3/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :spring-oxm:genJaxb [ant:javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to falsefor repeatable builds
Json web token (JWT), 是为了在网络应用环境间传递声明而执行的一种基于JSON的开放标准。该token被设计为紧凑且安全的,特别适用于分布式站点的单点登录(SSO)场景。JWT的声明一般被用来在身份提供者和服务提供者间传递被认证的用户身份信息,以便于从资源服务器获取资源,也可以增加一些额外的其它业务逻辑所必须的声明信息,该token也可直接被用于认证,也可被加密。也就是说JWT是Token的一种表述性声明规范。
# 使用set的扩展命令 一次把expire和 setnx的特性带上。下面这条命令就是 过期时间5s 并且不可以重复添加。只能删除或者到期。 192.168.31.7:6379> set lock:redis true ex 5 nx OK 192.168.31.7:6379> set lock:redis true ex 5 nx # 第二次在设置就失败了。 (nil)
192.168.31.7:6379> set key1 1 OK 192.168.31.7:6379> set key2 1 OK 192.168.31.7:6379> set key3 1 OK 192.168.31.7:6379> set key4 1 OK 192.168.31.7:6379> set key5 1 OK 192.168.31.7:6379> scan 0 match key* count 10 1) "0" 2) 1) "key4" 2) "key3" 3) "key2" 4) "key5" 5) "key1"
# 简单的演示事务 192.168.31.7:6379> multi OK 192.168.31.7:6379> set name wang QUEUED 192.168.31.7:6379> set name zhang QUEUED 192.168.31.7:6379> exec 1) OK 2) OK
事务丢弃 discard
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# 创建一个字符串并对value进行累加。 192.168.31.7:6379> set count 1 OK 192.168.31.7:6379> get count "1" 192.168.31.7:6379> multi # 开启事物 OK 192.168.31.7:6379> incr count QUEUED 192.168.31.7:6379> incr count QUEUED 192.168.31.7:6379> discard # 丢弃事物 OK 192.168.31.7:6379> get count #检查数据。 "1"