Spring JdbcTemplate
I wrote an article yesterday Why don't many people want to use hibernate? Blog, with the majority of ape friends to discuss the advantages and disadvantages of hibernate and the way to connect to the database, go home to study, found that Spring JdbcTemplate is very useful, made a summary, share to you.
Disclaimer: This article is just a littl ...
Added by tooNight on Tue, 14 Jan 2020 11:05:31 +0200
Xuecheng Online - day 11 - handout - Search Service II
3.3 build ES environment3.3.1 ES installationThe development environment uses the ES stand-alone environment to start the ES server. Note: for the old ES environment, you can delete elasticsearch-6.2.1\data\nodes directory to completely clean up the ES environment. Install elasticsearch h ...
Added by lilywong on Tue, 14 Jan 2020 05:33:57 +0200
Several pits synchronized to ES using logstash
1. Preface
Record several issues encountered when using logstash to synchronize data from sqlserver to ES.Version used is es6.8.3+logstash6.8.3
2.logstash profile
2.1input
input {
jdbc {
jdbc_driver_library => "/usr/local/logstash-6.8.3/logstashconfs/sqljdbc4.jar"#Driver jar package for sqlserver
jdbc_driver_clas ...
Added by jarvishr on Sat, 11 Jan 2020 05:04:10 +0200
Mybatis framework 7: integrating Spring in three ways
Required jar package:
Create a new lib folder and put it into the jar package. After build path -- > add to build path:
Original Dao development example:
Under src: create a new core configuration file sqlMapConfig.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
...
Added by rowman on Fri, 10 Jan 2020 19:49:24 +0200
mybatis takes notes
mybatis integration springboot
Guide Pack
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql ...
Added by merkinmuffley on Mon, 06 Jan 2020 19:01:03 +0200
Create a database connection pool of your own
thinking
1. My idea is to save JDBC connection thread with a linked list. When a connection calls the close method, it also proves that the life of the connection thread is ending, so the connection is recycled through the reflection agent. Add a new connection thread at.
2. When we get the connection to the thread pool, ge ...
Added by ttmt on Sun, 05 Jan 2020 22:33:27 +0200
Nine built-in objects and scopes of jsp
1. pageContext saves data in only one page
<body>
<%
// Set the data key - > value of two page ranges
pageContext.setAttribute("name","page Wang Er Xiao");
pageContext.setAttribute("age",12);
%>
<%
// Value
String name=(String)pageContext.getAttribute("name");
int age=(Integer)pageContext.getAttribute(" ...
Added by vexious on Thu, 02 Jan 2020 00:30:39 +0200
springboot -- multiple data sources
This paper mainly introduces how to configure two data sources (mysql and oracle) in a spring boot project;
1. Import related dependence
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<s ...
Added by DjNaF on Sun, 29 Dec 2019 19:42:04 +0200
Two ways to create a database connection pool
Understanding of using DBCP and CP30 to create database connection pool (for college students, please correct if there is something wrong)
DBCP creates database connection pool
CP30C create database connection pool
Why use this first? First of all, in the early stage, I believe that many small partners will connect to the ...
Added by frost110 on Mon, 16 Dec 2019 18:43:09 +0200
Can't SpringBoot+Mysql save emoj expression?
Especially remember a long time ago, if you want to save emoj expressions in mysql, you need to transcode emoj expressions and save them. Every time you read them, you need to decode and restore them. Every time you do this sb operation, you really feel the heart jam. Is there any way to save them directly?
mysql itself can support emoj express ...
Added by dvd420 on Fri, 13 Dec 2019 06:49:31 +0200