spring integrates cxf to develop rest style web service interface (client & Server)
The previous article recorded how to integrate cxf to develop web service client and server in spring. In fact, compared with the native development method, there have been many optimizations. rest style development, as a very popular development specification, can help us more concise and efficient pu ...
Posted by tenaki on Sun, 15 Mar 2020 00:02:09 -0700
Spring Boot uses Aop for log global interception
Spring Boot uses Aop for log global interception
1 New Spring Boot Project
Introducing aop dependency in 2 Pom
3Write processing code
3.1 Procedure Principle and Process
3.2 Custom Log Comment@log
3.3 Define IndexController for Testing
3.4 Define the aop class LogAspect and WebLogAspect
3.5 Test
...
Posted by hessodreamy on Sat, 14 Mar 2020 19:57:04 -0700
[Enjoy Netflix] 38, Ribbon Core API Source Parsing: ribbon-core
There are two ways to design software: one is to make the software too simple and obviously free from defects; the other is to make the software too complex and free from obvious defects.
->Return to Column Directory <-
Code download address: https://github.com/f641385712/netflix-learning
Catal ...
Posted by blacksmoke26 on Sat, 14 Mar 2020 17:34:45 -0700
spring source 17: initialization
Before this article, if readers are not familiar with beaaware and BeanPostProcessors, it is strongly recommended to read this article first: spring BeanPostProcessor lifecycle
protected Object doCreateBean(final String beanName, final RootBeanDefinition mbd, final @Nullable Object[] args)
throws Bea ...
Posted by benjaminbeazy on Fri, 13 Mar 2020 22:58:04 -0700
Matplotlib basic course of data analysis
Catalog
0.1 pilot conditions:
0.2 foreword: matplotlib font installation
1. Figure:
1.1 basic demonstration:
1.2 multiple canvases:
1.3 multiple subgraphs of a canvas:
1.3.1 basic method:
1.3.2 advanced method:
1.3.2.1 method 1:
1.3.2.2 method 2:
2 axis / subgraph (axes):
2.1 basic demonstra ...
Posted by SirEddie on Fri, 13 Mar 2020 21:03:39 -0700
Spring Security + JWT, realize the right control of separating and adapting the restful API before and after
Preface
Spring security adopts the form based authentication form by default, which is related to the forms such as login authorization and authentication from the user with session identification. At present, many applications are developed based on the restful API style of SpringBoot, which can not ...
Posted by brandonr on Fri, 13 Mar 2020 04:00:05 -0700
Spring day 2: preliminary understanding of concepts of AOP, IOC and DI
The core of Spring
Spring's core concepts are inversion of control (Ioc), aspect oriented programming (AOP), and dependency injection (DI)! These three core technologies are the basis of learning spring, and most of the others are based on their integration. Let's introduce them separately
Spring's of ...
Posted by jediman on Thu, 12 Mar 2020 21:17:43 -0700
@EnableAutoConfiguration loads custom META-INF without scanning
In this paper, a simple simulation of auto-configuration is performed to understand the process of auto-configuration.And we wrote a small example to test it.
Automatic assembly: The purpose is to load the required module components without the developer using @ComponentScan @EnableXXX.
SpringBoot use ...
Posted by danesc on Thu, 12 Mar 2020 17:48:43 -0700
The construction of simple mail server
Business background
Send an entry welcome email to an employee when they are added
Preparation
Take QQ email as an example
Log in QQ email and select settings and accounts
Find the POP3/SMTP service in the account settings
Click the "open" button, send SMS according to the guidance step ...
Posted by meow on Thu, 12 Mar 2020 05:16:01 -0700
java design mode -- strategy mode, payment method of handwritten mobile phone
Strategy mode
It defines the algorithm family and encapsulates them separately so that they can replace each other. This mode makes the change of algorithm not affect the users who use the algorithm.
Multiple if...else.. and switch statements can be avoided
Application scenario
1. If there are ...
Posted by maltech on Thu, 12 Mar 2020 03:03:03 -0700