spring aop and its implementation

1, Basic concept of AOP: 1. What is aop: AOP (Aspect Oriented Programming) is called Aspect Oriented Programming. It is mainly used to solve some system level problems in program development, such as log, transaction, permission waiting. The design of stuts2 interceptor is based on the idea of AOP, whi ...

Posted on Fri, 28 Feb 2020 01:18:41 -0500 by ridgedale

10 API gateway Spring Cloud GateWay

Necessity of using gateway Summary: Service discovery enables service consumers to always find service providers Configure servers to efficiently manage the configuration of microservices Load balancing with Ribbon Using Feign to make remote calls more efficient Using Resilience4j for service fault tole ...

Posted on Wed, 26 Feb 2020 06:39:49 -0500 by chadowch

Apache Maven uses POM to define the project structure

Official document: https://maven.apache.org/guides/introduction/introduction-to-the-pom.html   Introduction to POM A project object model or POM is the basic unit of work in Maven.It is an XML file that contains information about the project and configuration details that Maven uses to build the project.It contains default values for most ...

Posted on Mon, 24 Feb 2020 22:07:05 -0500 by Lucnet

Getting Started with the Ereka Registration Center for SpringCloud

eureka Registry 1. Basic concepts SpringCloud encapsulates Netflix's Eureka as its own microservice registry.This registry is very similar to zookeeper in dubbo. Simply put, as long as you can register your Micro Services module with the registry, it can be invoked by other services. Generally, only provider s can register with eureka, and cons ...

Posted on Mon, 24 Feb 2020 12:00:18 -0500 by hamboy

Learn spring cloud zuul from 0 to 1

1, Why use a gateway 2, Gateway entry case 1. Create project 1.1 add coordinates <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org ...

Posted on Mon, 24 Feb 2020 09:57:27 -0500 by james_cwy

Learn spring cloud ribbon from 0 to 1

1, The role of Ribbon in microservices 1. What is Ribbon 1.Ribbon is a client load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon 2. it is not deployed independently like the Spring Cloud service registry, configuration center and API gateway, but it exists in alm ...

Posted on Mon, 24 Feb 2020 09:23:14 -0500 by hasanpor

spring source code interpretation (excerpt)

From: https://javaloop.com/post/spring-ioc The two most important aspects of IOC One is to create a bean container One is the initialization bean An example of starting a spring container: public static void main(String[] args){ ApplicationContext context = new ClassPathXmlApplicationContext("classpat ...

Posted on Mon, 24 Feb 2020 06:22:42 -0500 by jenni

springboot2.x integrates with swagger and explains how to use it

maven dependence <!-- Swagger2 start--> <dependency>    <groupId>io.springfox</groupId>    <artifactId>springfox-swagger2</artifactId>    <version>2.8.0</version> </dependency> <dependency>    <groupId>io.springfox</groupId&gt ...

Posted on Mon, 24 Feb 2020 03:35:47 -0500 by rsmarsha

SpringBoot Foundation - Quick Start to SpringBoot

SpringBoot Foundation Learning objectives: Understand Spring's strengths and weaknesses Understand SpringBoot features Understanding the core features of SpringBoot Ability to set up SpringBoot environments Ability to configure application.properties configuration file Ability to configure application.yml configuration file Ability to integrat ...

Posted on Sun, 23 Feb 2020 23:34:43 -0500 by dirTdogE

springboot web - start to create SpringApplication

1, Test code @SpringBootApplication public class SbmvcApplication { public static void main(String[] args) { SpringApplication.run(SbmvcApplication.class, args); } } My spring boot version here is 2.0.3.RELEASE <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/ ...

Posted on Fri, 21 Feb 2020 09:27:28 -0500 by ojeffery