Spring Cloud Learning Notes--The First Construction of Spring Boot
1. Introduction to Spring Boot
When I first came into contact with Spring, I felt that it was a very difficult framework to access because of its complex configuration files, the xml file that I disliked most, and the readability of such files was very poor. So for a long time, my Spring learning was out of stagnation.
But that changed after I ...
Posted by lancia on Sun, 12 May 2019 01:29:40 -0700
Database Connection Pool (Design Patterns) - Database
First, what is a database connection pool?
Official: Connection pooling is to set up enough database connections when the program starts, and make these connections into a connection pool. The program dynamically applies for, uses and releases the connections in the pool.Personal Understanding: Creating database connections is ...
Posted by cswells on Sat, 11 May 2019 23:05:28 -0700
Elastic Search rewrites IK word splitter source code to set mysql hotword update lexicon
Configuration of Hot Word Lexicon
1. Using IK built-in Thesaurus Advantages: Easy deployment, no additional lexical location required Disadvantage: Single participle, can not specify the entry to be participled
2.IK External Static Lexicon Advantages: Deployment is relatively convenient, and you can get the desired entries by editing the spec ...
Posted by FrostedFlakes on Sat, 11 May 2019 18:04:31 -0700
Detailed Explanation of Spring Transaction Implementation Principle
Above( Tangent Analysis of Spring Transactions ) In this article, we explain how Spring determines whether the target method needs to weave into aspect logic, which explains that transaction logic is woven through Transaction Interceptor. This article mainly explains how Transaction Interceptor weaves into aspect logic.
1. Global Transaction Lo ...
Posted by LucienFB on Sat, 11 May 2019 17:02:18 -0700
SSM Framework Learning-Mybatis01
1. introduction:
Framework: A reusable design of a whole or part of a system, represented by a set of abstract components and methods of interaction between component instances; another definition holds that a framework is an application skeleton customized by application developers. The former is defined in terms of applicati ...
Posted by hyp0r on Sat, 11 May 2019 05:15:23 -0700
18. Complex Routing Implementation of Sharing-jdbc Source Code
Javaer Reprinted please indicate the origin, thank you!!
Routing condition
In ParsingSQLRouter.java, the following conditions are used to determine whether a simple routing or a complex routing is needed.
private RoutingResult route(final List<Object> parameters, final SQLStatement sqlStatement) {
Collectio ...
Posted by fenrir on Sat, 11 May 2019 04:48:43 -0700
SprJdbcTemplate's shallow (5 usage scenarios) encapsulation in itest open source test management project
Introduction:
This paper mainly elaborates on four aspects: 1: background; 2: ideas; 3: code implementation; 4: use
One: Packaging background.
In the project, JPA, some complex queries, such as native JdbcTemplate, are inconvenient; Paging function and result set auto-alignment are needed. See Section 4.
The following two diagrams show the ...
Posted by brownca on Sat, 11 May 2019 03:22:16 -0700
Use Eclipse to develop and debug Web Builder projects
Use Eclipse to develop and debug Web Builder projects
Download and install the Groovy plug-in:
Download address: Groovy-Eclipse
Download and install the Tomcat plug-in:
Download address: Tomca-Eclipse
Open Eclipse and configure the Tomcat plug-in as shown below:
Create a new Java Project project
Name it WB8 and add Groovy support in the righ ...
Posted by a-scripts.com on Sat, 11 May 2019 02:15:14 -0700
Viewing Design Patterns with JDK Source Code: Simple Factory, Factory Method, Abstract Factory
Detailed description of three factory models:
Simple factory model:
Scenario: The factory class is responsible for creating fewer objects, the client only cares about the parameters that are passed into the factory class, and does not care about how to create the logic of the object.
Disadvantage: If you want to add new products, you need to ...
Posted by mars16 on Fri, 10 May 2019 12:07:41 -0700
spring Integration mybatis Interface Can't Inject Problem
After learning Spring, I simply learned about MyBatis. Then, a simple integration is carried out, which meets the problem that MyBatista interface mapping beans can not be automatically injected.
Code exceptions:
Exceptions in thread "main" org. spring frame. bean. factory. Error creating a bean named "UserController": uns ...
Posted by bravo81 on Thu, 09 May 2019 17:30:39 -0700