The Use of SpringAOP in web Applications

Previously, aop was notified by manually creating proxy classes, but in daily development, we don't want to hard-code these proxy classes in code. We prefer to use DI and IOC to manage aop proxy classes.Spring provides us with the following ways to use the aop framework 1. Configuring AOP declaratively (that is, using an xml configuration file) ...

Posted by bjdouros on Tue, 17 Dec 2019 12:16:41 -0800

SpringBoot profile injection related

SpringBoot configuration related 1. Profile injection _In SpringBoot you can inject a configuration file with four notes:   @ConfigurationProperties   @Value   @PropertySource   @ImportResource _1.@ConfigurationProperties usage _Centered like this in my profile application.yml person: lastName: hello age: 18 boss: false birth: 2017/12/12 ...

Posted by perpetualshaun on Sat, 14 Dec 2019 17:51:41 -0800

Spring boot integrated email sending

This section describes how to quickly configure and send mail for spring boot project, including simple mail configuration, sending simple mail, sending HTML mail, sending mail with attachments, etc. The sample source code is: https://github.com/laolunsi/spring-boot-examples I. mailbox configuration To ensure that the client login service is e ...

Posted by YourNameHere on Thu, 12 Dec 2019 13:41:06 -0800

Spring Boot crater record (@ SpringBootApplication conflicts with @ ComponentScan)

I. Introduction Let's take a look at the phenomenon. You can go first Here Download the code. A brief introduction to the inner class package com.iceberg.springboot.web; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication //@ComponentScan("com.iceberg.s ...

Posted by tllewellyn on Thu, 12 Dec 2019 00:57:45 -0800

[original] 004 | get on the special spring boot transaction weird event analysis vehicle

Preface If this is the second time you see the teacher, you are coveting my beauty! Like + pay attention again, form habit It doesn't mean anything else. It just needs your camera screen^_^ This series of articles At present, it's the fourth part of the series. This topic is to explain the spring boot source code in depth. After all, it's sourc ...

Posted by bubblewrapped on Wed, 11 Dec 2019 19:43:06 -0800

Personal learning series - springboot simple integration ActiveMQ

Message queuing hasn't been used recently, but I can't help but study it. springboot integrates ActiveMQ 1. docker deployment ActiveMQ 1.1 search ActiveMQ docker search activemq 1.2 download the image of ActiveMQ docker pull webcenter/activemq 1.3 starting the image of ActiveMQ docker run -it -d \ # Background operation -p 61616:61616 \ # tcp ...

Posted by dheeraj4uuu on Mon, 09 Dec 2019 20:34:22 -0800

9. Implementing CORS Cross-Domain Elegantly with Spring Boot

Preface Our springboot rack already contains mysql,redis, timed tasks, mail services, SMS services, file uploads and downloads, docker-compose building mirrors, and more. Let's move on to another common problem.In general, the front and back ends are separated, and the original intention of this scaffold is to separate the front and back ends, ...

Posted by damnsaiyan on Mon, 09 Dec 2019 03:44:44 -0800

Spring cloud builds microservice cluster + Zuul server-side load balancing

SummaryRecently, I studied the microservice cluster of springcloud, mainly using the service discovery and server-side load balancing of springcloud. All projects use springboot,It can be seamlessly docked with spring cloud. Technology selectionService discovery: eurekaLoad balancing: zuul RealizationEureka cluster (eurekaServer): 8001, 800 ...

Posted by philippo on Sun, 08 Dec 2019 22:25:01 -0800

10. Spring boot simple and elegant integrated Swagger2

Preface What is swagger2, let me not say here, is a simple interface document for front-end and back-end debugging. Actually, I didn't think about using swagger before.Because I used YAPI before, but this is a separate tool.And it's open source, so it's easy for the whole team to work together.But if we're sitting on a personal project here, we ...

Posted by seran128 on Sun, 08 Dec 2019 06:05:54 -0800

Enterprise spring boot tutorial spring boot enable declarative transaction

springboot is very simple to start a transaction, only one annotation is needed @Transactional Just fine. Because in springboot, events have been enabled for jpa, jdbc and mybatis by default. When they are introduced, things will be enabled by default. Of course, if you need to use other orm, such as beatlsql, you need to configure the relevant ...

Posted by jasonman1 on Sat, 07 Dec 2019 04:24:59 -0800