gradle

Redis高级客户端Lettuce详解

六眼飞鱼酱① 提交于 2020-04-16 08:35:22
【推荐阅读】微服务还能火多久?>>> 前提 Lettuce 是一个 Redis 的 Java 驱动包,初识她的时候是使用 RedisTemplate 的时候遇到点问题 Debug 到底层的一些源码,发现 spring-data-redis 的驱动包在某个版本之后替换为 Lettuce 。 Lettuce 翻译为 生菜 ,没错,就是吃的那种生菜,所以它的 Logo 长这样: 既然能被 Spring 生态所认可, Lettuce 想必有过人之处,于是笔者花时间阅读她的官方文档,整理测试示例,写下这篇文章。编写本文时所使用的版本为 Lettuce 5.1.8.RELEASE , SpringBoot 2.1.8.RELEASE , JDK [8,11] 。超长警告:这篇文章断断续续花了两周完成,超过4万字..... Lettuce简介 Lettuce 是一个高性能基于 Java 编写的 Redis 驱动框架,底层集成了 Project Reactor 提供天然的反应式编程,通信框架集成了 Netty 使用了非阻塞 IO , 5.x 版本之后融合了 JDK1.8 的异步编程特性,在保证高性能的同时提供了十分丰富易用的 API , 5.1 版本的新特性如下: 支持 Redis 的新增命令 ZPOPMIN, ZPOPMAX, BZPOPMIN, BZPOPMAX 。 支持通过 Brave

flutter app: A problem occurred configuring root project 'android'

。_饼干妹妹 提交于 2020-04-16 08:20:50
问题 I have install windows 10 64 bit and Android studio 64 bit. Making android apps work great. Everything is OK. I have install Flutter SDK. This is result of "flutter doctor -v" : [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.535], locale en-US) • Flutter version 1.12.13+hotfix.8 at C:\flutter • Framework revision 0b8abb4724 (6 weeks ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [√] Android toolchain - develop for

Excluding unit tests from external library

强颜欢笑 提交于 2020-04-16 05:44:48
问题 I newly replaced spongyCastle by bouncyCastle in an Android project: implementation "org.bouncycastle:bcpkix-jdk15on:$project.bouncyCastleVersion" Since then on Jenkins (our CI) it seems that there are tests being executed from this lib, could this be true? I never saw external libs with units tests executing automatically. The issue is now I see many failed tests, for example: org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests.testDecodeEncodePrivateKeyQT3P 27 ms 1 org.bouncycastle

generating classes from wsdl in java 11

微笑、不失礼 提交于 2020-04-16 02:57:05
问题 How to generate classes from WSDL in java 11 using gradle 5? I was using wsimport seeber plugin, but it looks like it doesn't work in java 11 dependencies { classpath "gradle.plugin.me.seeber.gradle:gradle-wsimport-plugin:1.1.1" } In Intelij Idea I'm getting: What went wrong: A problem occurred configuring project ':ReturnRedirectWorker-api'. Exception thrown while executing model rule: WsimportPlugin.PluginRules#createWsdlSourceSets(ModelMap, FileOperations) > create(wsdlMain) > create(wsdl)

Jackson com.fasterxml.jackson.databind.exc.MismatchedInputException with empty string

寵の児 提交于 2020-04-16 02:32:27
问题 Having following json fragment: "Location": { "Address": "" }, And my Pojo public class Address implements Serializable { @JsonProperty("City") private String city; @JsonProperty("StateProvinceCode") private String stateProvinceCode; @JsonProperty("PostalCode") private String postalCode; @JsonProperty("CountryCode") private String countryCode; private final static long serialVersionUID = -4475717488164417476L; /** * No args constructor for use in serialization * */ public Address() { } /** *

How do I install the Splunk Mint Gradle plugin?

旧时模样 提交于 2020-04-16 01:56:52
问题 According to the Splunk MINT documentation (https://docs.splunk.com/Documentation/MintAndroidSDK/5.2.x/DevGuide/Requirementsandinstallation) you must manually download the Gradle plugin artifact and include it in your project. I successfully downloaded and deployed this artifact to a local instance of Artifactory, since it's already archived in a maven repo format. To test the integration, I simply created a brand new project and added/applied the mint plugin. From here, Gradle sync fails

How do I exclude ABI from Android App Bundle?

半世苍凉 提交于 2020-04-15 20:52:50
问题 I know that there was an option to exclude ABIs when generating splits in Gradle which looked like this: android { splits { // Configures multiple APKs based on ABI. abi { // Enables building multiple APKs per ABI. enable true // By default all ABIs are included, so use reset() and include to specify that we only // want APKs for x86 and x86_64. // Resets the list of ABIs that Gradle should create APKs for to none. reset() // Specifies a list of ABIs that Gradle should create APKs for.

How do I exclude ABI from Android App Bundle?

て烟熏妆下的殇ゞ 提交于 2020-04-15 20:48:07
问题 I know that there was an option to exclude ABIs when generating splits in Gradle which looked like this: android { splits { // Configures multiple APKs based on ABI. abi { // Enables building multiple APKs per ABI. enable true // By default all ABIs are included, so use reset() and include to specify that we only // want APKs for x86 and x86_64. // Resets the list of ABIs that Gradle should create APKs for to none. reset() // Specifies a list of ABIs that Gradle should create APKs for.

centos7系统下elasticsearch7.5.1集群安装elasticsearch-jieba-plugin 7.4.2 和analysis-kuromoji 日语分词器

你。 提交于 2020-04-15 12:15:38
【推荐阅读】微服务还能火多久?>>> elasticsearch7. 5 .1集群安装elasticsearch-jieba-plugin 7.4 . 2 和analysis- kuromoji 日语分词器 安装插件需要在集群的其中一个节点安装后重启es程序,没有问题后拷贝到其他节点重启后生效 1 .elasticsearch- jieba需要使用gradle进行编译 # 安装gradle 下载gradle的二进制文件 wget https: // services.gradle.org/distributions/gradle-6.3-bin.zip cd /usr/local/ elk # 修改环境变量将gradle加入环境变量中 # vim /etc/ profile export GRADLE_HOME =/usr/local/elk/gradle- 6.3 / export PATH =$GRADLE_HOME/ bin:$PATH screen - S gradle # 编译生成jieba分词插件 [elasticsearch@sz_ms_influenex_es_dev01_17_19 elasticsearch -jieba-plugin- 7.4 . 2 ]$ gradle pz Welcome to Gradle 6.3 ! Here are the

Android | 教你如何开发一键银行卡绑定功能

风流意气都作罢 提交于 2020-04-14 19:25:23
【推荐阅读】微服务还能火多久?>>> 前言   小编前面几期文章分别给大家介绍了用代码实现微笑抓拍、证件照DIY、拍照翻译的功能开发(链接见文章末尾),本次小编给大家带来的是用代码一键实现银行卡识别与绑定功能。 银行卡识别的应用场景   介绍开发步骤前,我们先来谈谈银行卡识别的具体应用场景,银行APP、移动支付、缴费类APP、电商类APP或者其它带支付功能的APP在使用过程中往往会遇到如下常见的几个应用场景: 绑卡支付   常用于支付类APP,或者带支付功能的APP,用来绑定信用卡、银联借记卡,提供在线支付功能。 转账汇款   常用于银行或者支付类APP,用来给本行或者他行用户进行转账。 实名认证、身份审核   比如社交类APP,通过银行卡关联的身份信息完成快速的实名认证、身份审核等操作。   不管是绑卡、转账汇款还是身份审核,涉及到银行卡操作的都会遇到一个关键的步骤,录入银行卡信息,如银行卡号、有效期等;由于银行卡号码往往较长,手工录入很容易出错,而且手工录入卡号信息,操作繁琐,使用体验不佳;借助HMS ML Kit 银行卡专用识别能力,则可以轻松应对以上场景,快速、精准的录入银行卡信息,改善用户使用体验。 如何使用华为银行卡识别服务   银行卡识别服务可以将银行卡信息通过视频流方式输入,得到图像中银行卡的卡号、有效期等重要文本信息。该服务配合身份证识别,可以为用户提供实名认证