Ubuntu rabbitmq installation and springboot integration

install rabbitMQ is written in erlang language. Install erlang first sudo apt-get install erlang-nox #installation is complete erl Next, add the public key wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - Install rabbitMQ, and it will start automatically after installation sudo apt-get ...

Posted on Tue, 12 Nov 2019 10:49:55 -0500 by PHPHorizons

Source code analysis of spring learning -- bean definition

BeanDefinition BeanDefinition is an interface that provides properties of beans defined by beanClassName, scope, lazyInit, etc. As can be seen from the following structure chart, there is an abstract subclass AbstractBeanDefinition and there are three types of subclasses, including GenericBeanDefinition (annotated GenericBeanDefinition and scan ...

Posted on Tue, 12 Nov 2019 09:58:48 -0500 by ashokkumar

Introduction to SpringBoot 18, simple implementation of custom annotation

Project basic configuration reference article Getting started with SpringBoot 1. Create a new SpringBoot project with myEclipse , just create a new spring boot project with myEclipse, and upgrade the sample spring boot to version 2.2.1.   1. pom.xml adds aop support <!-- Introduce aop Section support --> <dependency> & ...

Posted on Tue, 12 Nov 2019 09:39:32 -0500 by genesysmedia

Source code analysis: scanning and building Mapper object initialized by Mybatis MapperProxy

Warm tip: This article is based on Mybatis.3.x version. MapperScannerConfigurer, Spring integrates the core class of Mybatis. Its function is to scan the Dao class in the project and create it as the mapper object of Mybatis, namely MapperProxy object. First of all, before entering the source code learning, let's take a look at the configurat ...

Posted on Tue, 12 Nov 2019 06:59:14 -0500 by subasi

SpringBoot from getting started to giving up, Chapter 1

I. brief introduction Let's talk about what Spring is Spring is an open source framework. Spring is a lightweight java development framework that emerged in 2003. Rod Johnson wrote expert one on one J2EE development and design. Spring is created to solve the complexity of enterprise application development. Using spring, you can make simple J ...

Posted on Tue, 12 Nov 2019 01:58:05 -0500 by frog_jr

Use and integration of spring cache and ehcache

The project needs to be cached, so I learned 1. Use and integration of spring cache and ehcache 2. Cache hit ratio and other statistics 1. spring cache 1. Overview Spring 3.1 introduces annotation-based cache technology 2. Required jar packages          3. Usage Deposit @ Cacheable(value="cache container), key="key value&quo ...

Posted on Mon, 11 Nov 2019 22:55:26 -0500 by bhavin12300

MyBatis configuration and critical component combing

1. Why MyBatis Profile In fact, MyBatis profiles are rarely used anymore, because we don't usually use MyBatis alone, but with Spring. In Spring, we typically configure a SqlSessionFactoryBean to create a SqlSessionFactory, whereas we typically do not create a SqlSessionFactory by parsing the configuration file. But configuration files are impo ...

Posted on Mon, 11 Nov 2019 19:51:00 -0500 by ytse

Multi level cache architecture development VI (test development framework)

0. Import pom file Add pom file of parent module <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spri ...

Posted on Mon, 11 Nov 2019 17:15:57 -0500 by zahadum

A simple tutorial for SpringBoot to integrate MybatisPlus (simple integration)

Recently, I am studying spring boot, and I will look at the knowledge of database connection by the way. So when I found that there are two popular excellent software on the network, Mapper and MybatisPlus, which can simplify the development of mybatis. Just want to have a try and see which one suits you better. First, create a spring boot pro ...

Posted on Mon, 11 Nov 2019 15:06:26 -0500 by atzi

springboot listening file notes

Recently, the company's project needs to monitor the external configuration file and make corresponding modifications according to the content of the file. So I learned I. monitors @Component public class FileListener extends FileAlterationListenerAdaptor { private Logger log = LoggerFactory.getLogger(FileListener.class); ...

Posted on Mon, 11 Nov 2019 13:07:29 -0500 by staffanolin