Data source configuration in Spring Boot (Spring Boot dbcp2 data source configuration)

Database Connection Pool Selection Algorithms By default, database connections can be automatically configured using the DataSource pool. The following is an algorithm for selecting a specific implementation: Because of the performance and concurrency of Tomcat's data source connection pool, we always give preference to Tomcat when it is avail ...

Posted on Sat, 21 Sep 2019 03:08:51 -0700 by bashaash

Spring Source Learning Alas, cooking by recipe is similar to AbstractAutowire Capable BeanFactory. CreateBean process.

I remember when I was in love with my wife, one day I came to cook for my wife with a whim, and did it step by step according to the recipe. As a result, I almost burned the kitchen!!! My wife still remembers this. Entrance As mentioned in the previous article, the main process of AbstractBeanFactory.getBean. Today, let's talk about the createB ...

Posted on Sat, 21 Sep 2019 02:59:19 -0700 by boiy

[SpringBoot] Integrated Logging Framework

1. Overview of log framework Generation of 1.1 Log Framework 1.2 Market Logging Framework 2. Use and Integration of SLF4j 2.1 How to use SLF4j in the system 2.2 How to integrate the log framework 2.3 Logging relationships in SpringBoot 3. Log Use 3.1 Default Configuration 3.2 Log Format 3.2 Specify Configuration 4. ...

Posted on Fri, 20 Sep 2019 10:43:31 -0700 by g5604

Actual Current Limiter of guava

On current limiting The commonly used current limiting algorithms are leaky bucket algorithm and token bucket algorithm. guava's Rate Limiter uses token bucket algorithm, i.e. putting tokens into buckets at a fixed frequency, such as 10 tokens per second. Actual business obtains tokens from buckets before each response request, and only request ...

Posted on Fri, 20 Sep 2019 05:02:51 -0700 by [-_-]

How does Spring Boot integrate multiple data sources?

SpringBoot is now a backend framework for many companies because it builds faster and integrates other third parties better and faster. So, with the increase of business volume, it will be related to sub-library and sub-table. Although this word sounds familiar and easy to understand as a programmer, I think many readers have not touched too m ...

Posted on Fri, 20 Sep 2019 01:18:30 -0700 by B-truE

SpringBoot integrates detailed Elasticsearch steps and code samples (with source code)

Dead work Environmental preparation JAVA Version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) ES Version { "name": "pYaFJhZ", "cluster_name": "my-cluster", "cluster_uuid": "oC28y-cNQduGItC7qq5W8w", "version": { "number": "6.8.2", " ...

Posted on Thu, 19 Sep 2019 19:09:25 -0700 by vbmurray

Spring Boot + Jpa + Thymeleaf Comprehensive Practice

In the previous course, we learned Spring Boot Web development, JPA database operation, Thymeleaf and page interaction technology. This course integrates these contents to make a user management function, including displaying user list (paging), adding users, modifying users and deleting users. Some people say that programmers are adding, dele ...

Posted on Thu, 19 Sep 2019 06:51:22 -0700 by Panz3r

7. Getting Singleton Beans from the Loaded Cache of Spring Source Parsing Beans

In the presence of 6. Introduction to the loading process of Spring source code parsing bean s In this article, we introduce the general process of loading bean s. The first step has already been mentioned in this article. Here, the second step is to try to load the singleton from the cache. _says that ...

Posted on Thu, 19 Sep 2019 05:07:06 -0700 by thedarkwinter

The Installation of redis and Its Cluster and the Use of Jedis

Introduction of 1 redis NoSql database is a database solution to solve the problems of high concurrency, high scalability (cluster), high availability (not downtime), and large data storage. NoSql database: full name not only sql, non-relational database. It can be a good supplement to relational data ...

Posted on Thu, 19 Sep 2019 03:27:39 -0700 by SwiftlyTilting

java on ftl template generation html and word (realize online preview function, save)

Problem Description: The earliest attempt has been made to generate word from XML template. Although the file format is retained a lot, the word generated by this template is transferred to html. It is problematic to use XWPF Document and HWPF Document in pure poi, because word is essentially xml, a ...

Posted on Wed, 18 Sep 2019 23:17:23 -0700 by roice