SpringBoot implements multiple data source configuration
Spring boot for multi data source configuration
springBoot implements the configuration of multiple data sources application.properties Configure two data sources in
spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1
spring.datasource.primary.username=root
spring.datasource.primary.password=root
spring.datasource.primary.driv ...
Posted by AtomicRax on Mon, 20 Jul 2020 18:01:36 +0200
springboot Actual Warfare Registered filter s and listener s
Application Scenarios
There are special processes in your project that require filters and listeners, such as the spring Framework Character Filter CahracterEncoding Filter.
code implementation
MyFilter.java
@WebFilter(urlPatterns = "/*",description = "custom filter")
public class MyFilter implements Filter {
...
Posted by PeeJay on Thu, 16 Jul 2020 17:00:45 +0200
Late night overtime boring, imitating an EventBus based on reflection
Dry point
By reading this blog, you can learn about java's reflection mechanism and how to use custom annotations to solve everyday R&D problems based on the spring lifecycle.
Problem Description
In daily R&D, it is common to encounter an action triggered by Business A and at the same time trigger the action of Business B. This form of ...
Posted by rross46 on Mon, 29 Jun 2020 18:57:16 +0200
Pinyougou project notes: SpringBoot and Ali greater than
Notes on pinyougou project (11)
SpringBoot
introduce
Small example (1)
Small examples (2)
Integration of springboot and activemq
Ali greater than
SpringBoot
introduce
springboot is a back-end full stack framework (excluding page technology) produced by spring organization
Role: advocate zero ...
Posted by Imad on Mon, 29 Jun 2020 08:00:08 +0200
Sping boot integrated rocketmq multi consumer
1, rocketmq installation
Installation media Download
Download address: http://rocketmq.apache.org/release_notes/release-notes-4.7.0/Download binary installation package
Upload to the server for decompression
Start command:
cd /usr/local/rocketmq/
# 1. Start mqnamesrv first
#Start command
nohup sh b ...
Posted by jocknerd on Wed, 24 Jun 2020 04:34:39 +0200
Spring boot principle: the starting principle of source code analysis
catalog
1, Introduction to spring boot analysis
2, Spring boot annotations to be covered
1.@SpringBootApplication
2.@SpringBootConfiguration
3.@EnableAutoConfiguration
4.@AutoConfigurationPackage
5. Some annotations in the xxxautoconfiguration class
3, Spring application initialization proces ...
Posted by aseaofflames on Mon, 22 Jun 2020 10:48:12 +0200
In depth spring boot annotation principle and use
The main configuration class of SpringBoot
@SpringBootApplication
public class StartEurekaApplication
{
public static void main(String[] args)
{
SpringApplication.run(StartEurekaApplication.class, args);
}
}
Click @SpringBootApplication to see that @SpringBootApplication is a comp ...
Posted by sqlnoob on Tue, 16 Jun 2020 10:43:45 +0200
SpringBoot startup process and project creation
catalog
Project creation
Interpretation of spring boot project architecture
SpringBoot startup process
Execution entry
SpringApplication instantiation
Spring application running
appendix
Project creation
Here we use IDE to create projects. When the scaffold is completed, I'm going to get anoth ...
Posted by Dilbert137 on Tue, 16 Jun 2020 09:28:26 +0200
Spring Boot encrypts and decrypts configuration files at startup
Spring Boot Application events and listeners
Find application.yml Read operation of.
from spring.factories View in
# Application Listeners
org.springframework.context.ApplicationListener=\
org.springframework.boot.context.config.ConfigFileApplicationListener,\
ConfigFileApplicationListener this object pair application.yml Read operation
Li ...
Posted by literom on Tue, 16 Jun 2020 05:41:14 +0200
SpringBoot 2.0.x startup process
The entry class of SpringBoot
@SpringBootApplication
public class SpringbootApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootApplication.class, args);
}
}
As can be seen from the entry class, in the Main method, run is executed; let's go to th ...
Posted by alexz on Fri, 12 Jun 2020 05:35:04 +0200