How spring AOP generates proxy objects

The framework is to leave the complex to itself, the simple to coden, as simple as writing hello world When developing Spring AOP programs in the early years, aop was configured with xml files (now xml is not popular, annotation @ EnableAspectJAutoProxy is popular), and then framework parsing, For example: How is this configuration resolved, ...

Added by Gaia on Tue, 05 May 2020 11:14:38 +0300

Spring boot built-in life cycle event details spring boot source code

Github address of spring boot Chinese annotation project: https://github.com/yuanmabiji/spring-boot-2.1.0.RELEASE Continued Spring boot event monitoring mechanism source code analysis (I) spring boot source code (IX) Learn from the past Let's review the content of the previous article briefly. In the previous article, we analyzed the principle ...

Added by bonzie on Tue, 05 May 2020 11:05:49 +0300

Use of Spring JDBC

Spring's JDBC module is responsible for database resource management and error handling, which greatly simplifies the operation of the database by the developers, so that the developers can get rid of the tedious database operation, so as to put more energy into writing business logic. For the Spring framework of database operation, the JdbcTem ...

Added by twilitegxa on Tue, 05 May 2020 09:44:21 +0300

The process of integrating ActiveMQ with Spring Boot

Install the ActiveMQ server, (or not, if not, use memory mq) To build a Spring boot project and add dependencies, just add this one <!-- Add to acitivemq rely on --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </dependency> A ...

Added by dspeer on Sun, 03 May 2020 07:28:24 +0300

Spring boot (9): spring boot uses Druid data source

Druid is a database connection pool implementation on Alibaba open source platform. It combines the advantages of C3P0, DBCP, PROXOOL and other DB pools, and adds log monitoring. It can monitor the connection of DB pool and the execution of SQL. It can be said that Druid is a DB connectio ...

Added by hpg4815 on Sun, 03 May 2020 00:27:55 +0300

Flexmark Java markdown add target attribute to link

Flexmark Java is a java version of Markdown conversion tool, which basically supports all Markdown syntax and has good scalability. This paper mainly adds target attribute to link through extension form The extension of this article will also support Spring Properties for dynamic configuration, domain name exclusion, relative path exclusion, ...

Added by mcccy005 on Sat, 02 May 2020 22:44:19 +0300

Spring boot project uses redis database as cache

1. Import the jar package and build the project with maven and springboot:      <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> <dependency> <groupId>org.springfr ...

Added by blueguitar on Fri, 01 May 2020 14:59:23 +0300

Awesome, the asynchronous processing mechanism of Servlet3

Servlet3 has been released for several years. How many people know its new features? Here is a brief introduction. The following features are mainly added: 1. Asynchronous processing support 2. Pluggability support 3. Annotation support, zero configuration, no need to configure web.xml ... What the hell is asynchronous processing? Operate the k ...

Added by JamieWAstin on Wed, 29 Apr 2020 19:20:32 +0300

JUnit of Java unit test

Unit test is to write test code, which should ensure the correctness of basic program modules accurately and quickly.Good unit test standards JUnit is a Java unit testing framework that has been installed by default in Eclipse. JUnit4### JUnit 4 identifies test methods by annotations. Currently, the main comments supported are: @Bef ...

Added by byronbailey on Wed, 29 Apr 2020 03:01:37 +0300

SpringBoot+RabbitMQ learning notes Topic of three switches using RabbitMQ

I. Introduction Topic Exchange Match the routing key to a pattern. At this time, the queue needs to be bound to a mode. The symbol "ා" matches one or more words, and the symbol "*" does not match many words. So "audit. *" can match "audit.irs.corporate", but "audit. *" only matches "audit.i ...

Added by jholzy on Tue, 28 Apr 2020 19:52:58 +0300