Spring Boot 2.x basic tutorial: MyBatis multi data source configuration

Two days ago, we introduced Multi data source configuration of JdbcTemplate as well as Multi data source configuration of Spring Data JPA , let's talk about how to configure the multi data source scenario when using MyBatis. Add configuration for multiple data sources First, in the configuration file of ...

Posted by osti on Thu, 25 Jun 2020 19:19:18 -0700

Practical AbbitMQ tips that took 3 days to summarize

Previously read articles about RabbitMQ core messaging patterns are based on Java API s, and recently read the official documentation and found that these core messaging patterns can be implemented through Spring AMQP.This paper summarizes the practical techniques of RabbitMQ, including its installation on Windows and Linux, and the Spring A ...

Posted by shamuntoha on Thu, 25 Jun 2020 09:15:41 -0700

AOP of Spring core

What is AOP AOP (aspect oriented programming): aspect oriented programming is a complement to traditional object-oriented programming. What do you mean? For example, in the above figure, there are many identical function codes in different methods. Then we can extract these identical function codes an ...

Posted by poring on Thu, 25 Jun 2020 03:36:00 -0700

Skillfully use RabbitMQ and integrate Spring AMQP

1. Introduction to rabbitadmin rely on <dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>3.6.5</version> </dependency> <!--Rabbit SpringBoot--> <dependency> ...

Posted by RyanDev on Thu, 25 Jun 2020 02:31:54 -0700

Spring cloud Feign + Hystrix principle

Principle of Spring cloud Feign + Hystrix (I) Netflix Hystrix has stopped updating and is currently in maintenance status. In spring cloud, the call to the service is usually completed with feign. If you want to use hystrix as the fuse at the same time, you only need to configure as follows (provided ...

Posted by Silver_Eclipse on Thu, 25 Jun 2020 00:49:03 -0700

Chapter 5 - Spring of Architecture Volume 3-spiel

Article catalog 1, Evaluation 1. EvaluationContext 2. Configuration 2, Use 1. Based on XML 2. Based on annotation 3, Grammar 1. Text 2. Property, array, set 3. In line List 4. In line Maps 5. Array constructor 6. Method 7. Operator 8. Type 9. Constructor 10. Variables 11. Functions 12. Bean refe ...

Posted by intercampus on Wed, 24 Jun 2020 19:19:55 -0700

Spring - third day of study (IOC at the core of Spring)

Spring Day 3 Introduction to AOP What is AOP? The Role and Advantage of AOP Effect advantage Introducing learning cases - adding transaction support to the business tier Terminology related to AOP Joinpoint Pointcut (entry point) Advice (Notification/Enhancement) Introduction (Introduction) Targe ...

Posted by dominod on Wed, 24 Jun 2020 19:09:26 -0700

University Physics open source

Article catalog Constant table Interface Verbal description.java Brain teaser.java Chapter 16 Charge.java Electric field.java Chapter 17 Electric potential energy.java Equipotential surface.java Potential.java Capacitance.java Dielectric.java Chapter 18 Current.java Electric power.java Resista ...

Posted by varghesedxb on Wed, 24 Jun 2020 01:31:14 -0700

Quick start distributed structure based on maven parent-child project

1. Preparation: Install idea, configure jdk,tomcat, maven, MySQL and other environments. In this case, JDK1.8, Tomcat 8.0, maven 3.6.0, idea2018, mysql5.6 and sqlyog are used 2. Introduction to the case: The integration of parent-child modules of ssm is built from scratch. This case is based on the ...

Posted by spaceknop on Tue, 23 Jun 2020 22:25:55 -0700

10 Minutes Quick Start Shiro Beginners Tutorial

Current User Now we can start doing something that we really care about - performing security operations. When protecting our applications, the most relevant questions we may ask ourselves are "Who is the current user" or "Is the current user allowed to do XXX?" When we write code or design user interfaces, it is common to a ...

Posted by dkode on Tue, 23 Jun 2020 19:00:54 -0700