What is the difference in the observer pattern in a master's eye?

The Observer mode is one of the many modes used. For the first time, I just write an example based on the introductory demo, but I don't know where to use it, how to use it, it's a textbook. Individuals like blogs or materials that are more practical. Recently I was hungry to make up for it. I feel a l ...

Posted on Fri, 05 Jun 2020 10:05:18 -0700 by wilku

Simple introduction to SpringBoot + Spring Security

This article mainly introduces a simple introduction to SpringBoot + Spring Security Introduction to Spring Security Spring Security is not introduced too much here. For details, please refer to Official documents Let me just talk about the spring security core functions: Certification (who are you) Authorization (what can you do) ...

Posted on Sat, 23 May 2020 22:12:20 -0700 by daucoin

Why can Spring Boot package run directly?

Author: Format http://fangjian0423.github.io/2017/05/31/springboot-executable-jar Spring Boot provides a plug-in spring-boot-maven-plugin It is used to package the program into an executable jar package. Add this plug-in to the pom file: <build>  <plugins>  <plugin>  <groupId>org.springframework.boot</groupId>  & ...

Posted on Tue, 19 May 2020 23:17:52 -0700 by Melville

SpringBoot Getting Started Series Unified Log Collection!

Spring Boot exception handling was described earlier, and unclear friends can see the previous articles. Today we will focus on log collection in Spring Boot. Logs are the key to tracking error positioning issues. Especially in production environments, we need to quickly locate problems with logs. Springboot's logging framework is rich, and S ...

Posted on Wed, 13 May 2020 10:22:39 -0700 by Tandem

Spring boot (6): spring boot uses CROS to solve cross domain problems

Cross domain issues have been mentioned before. If you don't understand, please refer to my previous article. This chapter mainly explains the support of spring boot cros. It is mainly described in the form of official documents. SpringBoot CROS reference: http://docs.spring.io/spring-boot/docs/1.5.4.RELEASE/reference/htmlsing ...

Posted on Mon, 04 May 2020 03:46:03 -0700 by hi2you

Java implementation of facet oriented based on custom annotation

Purpose: to add an annotation anywhere you want to cut, and then you can realize the aspect oriented programming Custom annotation class @Target({ElementType.PARAMETER, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface LongOu { } @Target and @ Retention are java meta annotations (4 in total): @Target: set t ...

Posted on Sat, 02 May 2020 04:52:03 -0700 by rosenrosen

Spring Boot Aspect Aop thought

Spring Boot Aop Scope of Aspect Comment writing of interception rules Writing configuration file Aopconfig The compilation of add operation of comment interception Operation writing of add intercepted by method The writing of logAspect facet Writing of Main Operation results Scope of Aspect In o ...

Posted on Wed, 29 Apr 2020 21:17:16 -0700 by qazwsx

Spring boot configuration log4j2 climbing pit

Version Springboot 2.11.1 logging.config parameter logging.config configuration is valid in application.yml, and the specified path is valid log4j2 log4j2 official website supports multiple automatic configuration modes, automatic scanning: System properties (log4j. Configuration) - > in classpath (log4j2 test. Properties)->In classpath ( ...

Posted on Tue, 28 Apr 2020 19:35:37 -0700 by mospeed

Getting started with SpringBoot

This article comes from Netease cloud community In the previous article, we generated a Web program that can run directly through a few simple steps. This is because spring boot has done a lot of work instead of us. Generally speaking, it can be divided into start-up dependency and automatic configuration. In this article, let's first look at ...

Posted on Fri, 24 Apr 2020 05:59:08 -0700 by davidjwest

Elegant processing of data checks and return formats

Preface A back-end interface is roughly divided into four parts: interface address (url), interface request mode (get, post, and so on), request data (request), response data (response).How to build these parts is different for each company. There is no "must be the best" standard, but a good back-end interface is quite different fro ...

Posted on Thu, 23 Apr 2020 09:57:53 -0700 by discostudio