AspectJ pointcut indicators - 06 within and @ within
target()
Restrict connection point matching to a class of the specified type
@target()
Restrict join point matching target objects to classes annotated by specific annotations
The function of within() is similar to that of execution(). The difference between the two is that the minimum range of connection points defined by w ...
Posted by zero_ZX on Thu, 30 Jan 2020 17:45:25 +0100
AspectJ tangent indicator-05-this
this()
If the proxy class matches the specified class according to the type, then all connection points of the target class to be proxy match the tangent point
In general, this() and target() are used to match and define pointcuts. They are equivalent. The difference between them is reflected in the specific performance of generating ...
Posted by zenix on Thu, 30 Jan 2020 15:05:05 +0100
AspectJ tangent indicator-02-@annotation
@annotation()
Restrict matching of join points with specified annotations
The final structure of each class is as follows:
1,Factory
package com.test.aspectj.expression;
/**
* Factory interface
*/
public interface Factory {
// Make products
void make();
// transport
void delivery(String address);
}
...
Posted by jdc44 on Wed, 29 Jan 2020 18:09:59 +0100
Spring AOP-05-introduction enhanced IntroductionInterceptor
The goal of reference enhancement is to add some new methods and properties to the target class. Take the Waiter class as an example. Now you want to add a manage() method in the Management interface to it without modifying the code of the Waiter class.
1. Classes to enhance
package com.test.springadvicetype;
import org.springframework.s ...
Posted by gabaod on Wed, 29 Jan 2020 17:41:29 +0100
Comparison of running applications with maven and fat jar/war in spring boot
Article Directory
brief introduction
Spring Boot Maven Plugin
Run the application using the Maven command
Run the application as a fat jar/war package
Detailed War File
Detail jar file
How to choose
Comparison of running applications with maven and fat jar/war
brief introduction
In the previous ...
Posted by kye on Tue, 28 Jan 2020 05:24:43 +0100
Web Foundation - Bootstrap
Article Directory
Bootstrap:
Responsive Layout
CSS Styles and JS Plugins
case
Bootstrap:
1. Concept: A framework for front-end development, Bootstrap, from Twitter, is currently a popular front-end framework.Bootstrap is based on HTML, CSS, JavaScript. It is simple and flexible, making Web deve ...
Posted by thenewperson on Thu, 23 Jan 2020 03:44:01 +0100
Spring security custom form login
This article mainly explains how to customize form login in spring security. Spring security provides a form login by default, but it can't be used in actual projects. This article mainly explains how to customize form login
1. Create a spring Security Project
1.1 using IDEA
&ems ...
Posted by sloede on Wed, 22 Jan 2020 12:42:49 +0100
SpringSecurity Default Form Login Page Shows Process Source
This article focuses on how SpringSecurity provides the default form login page and how it presents the process.
Involve
1.FilterSecurityInterceptor,
2.ExceptionTranslationFilter ,
3.DefaultLoginPageGeneratingFilter filter,
The voting mechanism of AccessDecisionManager is also briefly introduced.
_1. Prepare (experience SpringSecurity default ...
Posted by badapple on Wed, 22 Jan 2020 03:00:48 +0100
Nacos get configuration source code interpretation (detailed explanation)
Background:
Today's network services are mostly distributed cluster deployment, and the adopted architecture is also service-oriented architecture (SOA). Everyone is striving in the field of service governance. No, today's Nacos is also a product of the field of service governance. Nacos is an ex ...
Posted by hassank1 on Tue, 21 Jan 2020 13:42:03 +0100
Common usage of Jackson in the project
It is mainly used when the model object outputs and renders json. We can control the output results through related annotations, such as date format, non empty, sensitive data filtering, etc.
Here is a very simple project built with spring boot.
package com.hbk.springbootmail.controller;
import com.hbk ...
Posted by sanand158 on Mon, 20 Jan 2020 16:32:09 +0100