Sharding-jdbc 4.0 usage

About sharding JDBC Sharding JDBC is the first product of ShardingSphere and the predecessor of ShardingSphere. It is positioned as a lightweight Java framework that provides additional services in the JDBC layer of Java. It uses the client-side direct connection database to provide services in the form of jar package, without additional deploy ...

Added by fuji on Sun, 08 Dec 2019 14:14:08 +0200

Submit hadoop jobs using the old java api

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/qq1010885678/article/details/43735491 Or use the previous word count example Custom Mapper class import java.io.IOException; import org.apache.h ...

Added by Loryman on Sun, 08 Dec 2019 09:36:31 +0200

log4j2 hierarchical output log

In the development process of java mvc framework, we often divide the code into levels like controller (control layer), service (business layer), rpc (remote interface call layer), dao (data layer). If we print all the logs of all levels into one file, one is that the single log file is too large, and it is not convenient to view, so we conside ...

Added by curt3006 on Sun, 08 Dec 2019 01:48:22 +0200

Recruitment application for thinkp5 to develop OA office system

Development and operation environment: Shenzhou notebook K650D-G6D1 i5-6400 GTX950M Windows 10 professional Nginx or Apache Web server software MySQL 5.7. X database PHP7.1.0 PHPStrom 2017 PowerDesigner 16.5 Axure RP8 Prototype design drawing (recruitment application) Database table (recruitment application): recruitment application ...

Added by marukochan on Sat, 07 Dec 2019 04:11:50 +0200

Phoenix duplicate record -- the reason and solution of duplicate query data

Problem description issue A: after turning on the parameter (phoenix.stats.enabled=true), use Phoenix SQL to query the data, and there are duplicates (the data found is more than the actual content stored in HBase) issue B: after the parameter is closed (phoenix.stats.enabled=false), Phoenix SQL performance decreases. Environmental Science Phoe ...

Added by evan18h on Fri, 06 Dec 2019 21:55:32 +0200

SSM integrates activeMQ/activeMQ configuration

I. introduce dependency <!-- xbean as<amq:connectionFactory /> -->     <dependency>         <groupId>org.apache.xbean</groupId>         <artifactId>xbean-spring</artifactId>         <version>3.16</version>     </dependency>     <dependency>         <groupId>org. ...

Added by bad76 on Fri, 06 Dec 2019 01:45:27 +0200

Self learning note 1: creating and building spring boot project through intellij idea

Thank you for your posts https://blog.csdn.net/typa01_kk/article/details/76696618 , but there are some differences. Please look down On the basis of predecessors, I write about the differences in my current version I. intellij idea version My version is as follows II. jdk version Third, the differences under the projec ...

Added by inferium on Thu, 05 Dec 2019 11:26:09 +0200

Java multithreading List data

Example 1: Solution: how to let n threads traverse the List collection with n elements in sequence import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.ArrayUtils; public class Test_4 { /** * Multithreading list * * @param data Data list * @param threadNum Thread count */ public synchronized void ha ...

Added by edcellgavin on Thu, 05 Dec 2019 10:56:09 +0200

Spring boot2 configures ssl to realize automatic transfer from HTTP access to HTTPS access

1. Generate a certificate. You can use self signed certificate or obtain it from SSL certificate authority center In JDK, keytool is a certificate management tool, which can generate self signed certificates. Here, use the keytool provided by JDK to create certificate tests Open cmd window, enter command keytool -genkey -ali ...

Added by irishjohnny24 on Thu, 05 Dec 2019 06:36:58 +0200

Alibaba cloud log service Rest API usage example reference

Summary Log Service (LOG for short) is a one-stop service for LOG data, which is tempered in Alibaba group through a large number of big data scenarios. Besides operating through the management console, LOG also provides API (Application Programming Interface) to write and query LOG data, manage their own projects and LOG libraries. In the actu ...

Added by Gestahr on Thu, 05 Dec 2019 04:27:56 +0200