Crazy God said that the spring boot series is easy to understand. Based on the version 2.2.5 of spring boot, you are welcome to forward and pay attention to learning.
WeChat official account: Bilibili, the first of the gods, Java
No reprint without authorization of the author
A large part of Java progr ...
Posted on Tue, 26 May 2020 00:58:17 -0400 by davelr459
This article describes how Druid queries data. First, we ensure that the data has been loaded successfully.
Druid queries are based on HTTP, and Druid provides a query view and formats the results.
Druid provides three query modes, SQL, native JSON, CURL.
1. SQL Query
Let's use wiki's data as an example
Query the top 10 page edits
SELECT page, ...
Posted on Thu, 14 May 2020 22:59:14 -0400 by amorphous
1. Use the Spring Boot default data source
1.1 introducing POM dependency
In pom files, we directly rely on the official spring boot start JDBC module or spring boot start data JPA module.
Posted on Sun, 03 May 2020 05:14:25 -0400 by Mijii
Source code: GitHub point here || GitEE point here
1, Introduction to PostgreSQL
1. Comparison with MySQL
PostgreSQL is a powerful and open-source relational database system. There are a lot of comparative analysis between PostgreSQL and MySQL on the Internet. Mostly from the performance, open source protocol, SQL standards, development diffic ...
Posted on Sat, 25 Apr 2020 22:03:05 -0400 by SurgeProto
Why set up a cluster of registries in case of a single point of failure, that is, the only registry failure that causes the entire architecture to fail
Register with each other and watch each other
First modify the host mapping of the native hosts file Add Map C:\Windows\System32\drivers\etc\hosts
1. Modify previous 7001 profile
Posted on Tue, 21 Apr 2020 13:24:04 -0400 by Andy-H
Let's explain the points one by one, and then string together to understand the underlying principle of read-write separation
AOP: Aspect Oriented Program
As for Spring AOP, I believe you are familiar with it. It is a supplement to OOP. OOP is vertical, and AOP is horizontal
As shown in the figure above, OOP i ...
Posted on Tue, 14 Apr 2020 08:24:55 -0400 by johnali3n
Continue to summarize the work of Java background 2
Previously, I wrote a SSM to replace c3p0 data source with Druid: https://blog.csdn.net/larger5/article/details/79509895
Recently, projects are basically based on SpringBoot. Similarly, using Druid as data source is also a very simple operation and principle
Posted on Tue, 31 Mar 2020 07:33:34 -0400 by imranlink
Recently, an application is always a card and needs to be restarted to solve the problem, resulting in various complaints. The troubleshooting problem is a blood case caused by a Druid connection pool leak.
The exception log is as follows:
ERROR - com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 50, maxActive 50, ...
Posted on Wed, 11 Mar 2020 22:57:01 -0400 by andremta
Finishing some Java aspects of architecture, interview information (micro services, clusters, distributed, middleware, etc.), small buddy can be concerned about the official account [programmers], no way to collect their own.
The interviewer was a bit confused when he said nine ways to generate distributed ID at one go
Posted on Sat, 07 Mar 2020 02:46:38 -0500 by quintus
My version of SpringBoot is: 2.1.10.RELEASE
First, add jar package in pom file, and add jar package of log42, druid and mysql
Posted on Tue, 25 Feb 2020 03:45:02 -0500 by blesseld