Principle of Spring-boot Automatic Configuration

First, create the spring boot project in Spring Initializr mode and view the main configuration class of spring boot: @SpringBootApplication public class SpringBootAutoconfigurationYuanliApplication { Click into the SpringBoot Application annotation @SpringBootConfiguration @EnableAutoConfiguration pub ...

Added by stewb on Tue, 06 Aug 2019 13:16:22 +0300

A Simple Factory Model with Detailed Design Patterns

1. Definition: An instance of which product class is created is determined by a factory object. 2. Types: Creative, but not GOF23 design pattern 3. Use scenarios: The factory class is responsible for creating fewer objects. The client (application layer) only knows the parameters that are passed into the factory class, and does not care about h ...

Added by arctushar on Thu, 01 Aug 2019 12:41:54 +0300

Monitor

Listener introduce The listener comes from the servlet specification The listener is dedicated to monitoring [changes in domain object lifecycle] and [changes in domain object shared data] The implementation class of listener interface must be implemented by the developer As mentioned above, listeners are used to monitor changes in the life c ...

Added by mizkit73 on Tue, 30 Jul 2019 07:24:25 +0300

Mybatis Source Code Analysis

In this article, we will read the source code of Mybatis in depth, hoping that we can not be so afraid of the underlying framework in the future, and learn the good ideas of framework design; Architectural principles Architecture diagram Architectural flow chart The two pictures above are from the internet, but they are very good. They basi ...

Added by mjlively on Sun, 28 Jul 2019 16:17:06 +0300

JDBC Connection Database Tutorial, postgreSQL

0. Overview This article uses postgreSQL to connect through JDBC data base Examples of common database operations and JDBC API, JDBC's general workflow and JDBC transactions are introduced. 1. Preparations A. Download and install the postgreSQL database. B. Build a new one Java Project and import the JDBC driver jar package of postgreSQL. ...

Added by zone16 on Wed, 17 Jul 2019 22:46:49 +0300

PreparedStatement interface in Java

The PreparedStatement interface inherits from the Statement interface and is used to execute pre-compiled SQL statements with or without parameters. Compared with the Statement interface used to execute static SQL statements, the SQL statements in the PreparedStatement interface are precompiled, and the efficiency of repeated execution is highe ...

Added by nosmasu on Tue, 16 Jul 2019 20:44:20 +0300

Use of JDBC in JAVA

JDBC(Java Data Base Connectivity,Javadata base Connection) is a Java for executing SQL statements API, which provides unified access to multiple relational databases, is used by a set of Java Language Written class and interface composition. JDBC provides a benchmark against which more advanced tools and interfaces can be built to enable ...

Added by Mr.Fab on Mon, 15 Jul 2019 21:19:24 +0300

DBCP and CP30 Connection Pool Components

I. Overview Usually, when operating a database, users want to request a connection from the database, and it usually takes a relatively large amount of resources and a long time to create a connection. If a website has millions of visits per day, the database server needs to create millions of connections. This is extremely important for datab ...

Added by huszi001 on Fri, 12 Jul 2019 03:24:50 +0300

Window Builds a Jenkins+SonarQube Continuous Integration Platform from scratch

Windows builds Jenkins + SnoarQube from scratch This document does not currently contain publishing-related knowledge points. Continuous Integrated Environment: Jenkins Required system environment: java 8 and above, configure java-related environment variables (skipped here) Code hosting: Git 2.22 or gitlab Review tool: SonarQube The to ...

Added by mattachoo on Thu, 11 Jul 2019 21:17:51 +0300

An overview of the more useful jar packages for Java Web

(Import the driver jar package for this database before connecting to it, for example MySQL is mysql-connector-java-5.1.46.jar) About the database connection pool c3p0 jar package that connects to the database: c3p0-0.9.5-pre1.jar dependent mchange-commons-java-0.2.4.jar itcast-tools-1.4.jar (where a JdbcUtils tool class is used to connect) ...

Added by iffo on Thu, 11 Jul 2019 19:58:42 +0300