不保留尾部空字符串public class QQ {
public static void main(String[] args) {
String str = "a,b,c,d,";
 
记录一下MyBatis的简单使用,这是一个demo。最终效果:文件:/mybatis/pom.xml<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/
ElasticSearch判断index不存时创建index源码:RestHighLevelClient client = new RestHighLevelClient(
RestClient.builder(new HttpHost("vir-centos7", 9200, "http")));
//
String index =&n
Java生成十进制sha字符串DigestUtils.sha512Hex("需要生成sha的字符串");
Eclipse可以通过很多方式创建Java的工程,如Java、Maven、Gradle等;我们一般关系的是classpath路径是哪里,毕竟使用很多开源库的默认配置文件都是放在classpath下,如log4j等;查看方法:在需要查看的项目使用鼠标右键->Properties选择 Java Build Path
官方文档:Java API [7.4] » Document APIs » Update APIhttps://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-update.html例子:POST /collect/_doc/123/_update
{
"script" : "ctx._source.b
使用Eclise开发时出错错误:ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to&nbs
想搭建一个MQTT服务器,刚好找到Apache ActiveMQ Artemis支持,而且是基于Java开发的,那跨平台就很方便。以下是在Windows7(64位)系统下搭建:下载首先下载Apache ActiveMQ Artemis,官方地址: https://activemq.apache.org/components/artemis/download/下载bin包就可以安装安装步骤很简单,直接解压到自己喜欢的地方就可以,我这解压在Z:\apache-artemis-2.9.0创建
把插件放到eclipse/plugins目录下,然后重启eclipse。项目右键=》properties=》convert Setting=》Add。插件下载:com.lifesting.tool.encoding_1.0.0.jar
以前一直想开发个测试工具,可以自己编译逻辑和数据那种,可以兼容各种协议;因为这是个大工程,后来没时间就放弃了。今天朋友介绍了一个压力测试工具,上官网看了下,发现竟然如我所想,要吧实现我想要的功能,还好当初没有自己写,不然现在还在修改bug中...好了先下载下来看看,竟然还支持中文,打开了一个模板看看,发现还不难上手。官方下载地址: https://jmeter.apache.org/download_jmeter.cgi 下载后打开后简单测试一下 (linux下请打开jmeter.sh