Install Elastics rearch + logstash + elastic search-analysis-ik under unbuntu
1. Install elastic search
The first time to use apt-get installation method, should be the software source is not set to the latest, the result of the installation version of 1.7x, decisive deletion.
For the second time, download and install the zip package of elastic search directly.
wget https://artifacts.elastic.co/downloads/elasticsearch/ ...
Posted by mewhocorrupts on Tue, 04 Jun 2019 01:52:30 +0200
Analysis of Common Annotations in Spring
1. Common Notes
1.1 @Configuration
@Configuration
public class MainConfig {
}
@ The Configuration annotation indicates that this class is a configuration class that should contain details on how to create bean s in the context of Spring applications.
1.2 @ComponentScan
@Configuration
@ComponentScan("per.ym")
public class MainConfig {
}
@ Comp ...
Posted by tdeez173 on Wed, 29 May 2019 20:35:31 +0200
Oracle03 - Cursors, exceptions, stored procedures, stored functions, triggers, and Java code access to Oracle objects
Author: Kentpeng
For reprinting, please specify the source: http://www.cnblogs.com/xieyupeng/p/7476717.html
1. Cursor (Cursor)
If you have the concept of collections in your java program, then you will also use multiple records in pl/sql, at which point we will use cursors, which can store multiple pieces of data returned by queries.
Gra ...
Posted by pradeepmamgain on Mon, 27 May 2019 18:42:27 +0200
In-depth introduction to Mybatis series three-configuration details of properties and environments (mybatis source code)
This article is reproduced from Nan Ke Meng
In the previous article, Mybatis Series (2) - Introduction to Configuration (Mybatis Source Chapter), through a simple analysis of mybatis source code, we can see that in the mybatis configuration file, under the configuration root node, configurable properties, type Aliases, plugins, objectFactory, o ...
Posted by leetcrew on Fri, 24 May 2019 23:45:21 +0200
p6spy displays complete executable SQL
Previous projects used mybtis to do ORM, it has its own SQL output, or third-party plug-ins are very good output display execution of the SQL and results. You can even use mybtis's interceptor to customize the output of formatted SQL.
The project is currently developed using hibernate 3. Projects are also relatively old...
The SQL statements di ...
Posted by Lee W on Fri, 24 May 2019 01:14:52 +0200
DBCP: One of the Open Source Data Sources
What are the advantages of using connection pools over our usual JDBC code?
1. Resource reuseBecause of the reuse of database connections, frequent creation is avoided and a large amount of performance overhead caused by connections is released. On the other hand, it also increases the stability of system operation environment on the basis of ...
Posted by nascarjunky on Wed, 22 May 2019 22:58:54 +0200
Brief Introduction to commons-logging
Not original, turn from https://blog.csdn.net/backbug/article/details/78655664
Brief Introduction to commons-logging
Introduction:
Jakarta Commons-logging (JCL) is the earliest log facade interface provided by apache. Provides simple log implementation and log decoupling.
JCL can choose whether to use Log4j (or other su ...
Posted by Jackanape on Sat, 18 May 2019 22:09:13 +0200
Java Develop - MySQL-based SQL protocol/optimized record
1.SQL protocol
1. Statute of Forms
Required three fields:
create table `demo` (
`id` bigint(32) not null auto_increment comment 'Primary key',
`gmt_create` timestamp not null default current_timestamp comment 'Active Creation Time',
`gmt_modified` timestamp not null default current_timestamp on update current_timestamp comment 'Passiv ...
Posted by AndyB on Sat, 18 May 2019 13:07:56 +0200
A Method of Generating Hive DDL Using Sqoop API
First, build tables.
ddl:
create table testtb (id int,content string, country string) row format delimited fields terminated by '|' lines terminated by '\n' stored as textfile;
Importing data
1. Importing sqoop in shell
sqoop import --connect jdbc:mysql://localhost:3306/test --username root --password hehe --table testtb ...
Posted by JayBachatero on Thu, 16 May 2019 20:12:19 +0200
Start with declarative transactions based on @Transactional full annotation, and thoroughly understand the principles of Spring transaction management
Preface
Previous article:
Use of Spring-jdbc and 8 ways of managing Spring transactions (declarative + programmatic)
Introduces many ways to use Spring transactions, including when it comes to the full comment @Transactional approach, so this article takes the @Transactional approach as a starting point to unravel the mystery of Spring ...
Posted by countcet on Wed, 15 May 2019 07:36:14 +0200