Spring Learning Handbook (1)

What Spring Can Do 1. Can create and assemble dependencies between objects according to configuration files; 2. Face-oriented programming can help us realize log recording, performance statistics, security control without coupling. 3. Provide a third-party data access framework (such as Hibernate), and also provide a set of JDBC access templ ...

Posted on Thu, 16 May 2019 07:21:30 -0700 by ericcampbell30

Context: use-default-filters that are easily overlooked in component-scan usage

Original address: http://jinnianshilongnian.iteye.com/blog/1762632 problem Bean s annotated by @Controller can be successfully scanned in the following way, but beans annotated by @Service/@Repository can not be scanned. Correct    <context:component-scan base-package="org.bdp.system.test.controller">         < ...

Posted on Thu, 16 May 2019 07:10:28 -0700 by mdmann

AOP Details for Spring

Overview of AOP AOP is the abbreviation of Aspect Oriented Programming, which means: facet-oriented programming, a technology for unified maintenance of program functions through precompilation and run-time dynamic agents. In program development, it mainly solves some system-level problems, such as log, transaction, privilege ...

Posted on Thu, 16 May 2019 01:33:52 -0700 by DanDaBeginner

OAuth 2.0 Authorization Code Request

For OAuth 2.0, see the following two articles (wall crack recommendation): <OAuth 2.0> <Spring Security OAuth 2.0>   The paper is always shallow, and I know nothing about it. After understanding the theoretical knowledge, we should finally practice it. We never know how many pits there are without doing it ourselves. The focus ...

Posted on Wed, 15 May 2019 22:18:11 -0700 by noirsith

@Adaptive Fixed Known Class of Dubbo SPI Extends Unknown Class

We know that Adaptive is a comment that can be used on class or method definitions as indicated by @Target({ElementType.TYPE, ElementType.METHOD}). /** * Activate * <p/> * For loading extensions that can be automatically activated in the framework, this Annotation is used to configure the loading conditions for which extensions are ...

Posted on Wed, 15 May 2019 22:10:16 -0700 by primefalcon

Spring Boot Learning Course: Recognizing and Using Start Dependence

This article is originally written by the author. Please indicate the source for reprinting. SummaryIn the traditional software development process, with the exponential growth of the number of project libraries and their dependencies, dependency management has become a troublesome thing, especially for any large and complex software applicatio ...

Posted on Wed, 15 May 2019 12:15:50 -0700 by Kifebear

Http Process Analysis Based on Spring MVC Framework

1. Questions raised We can easily use Spring MVC for business development, and most of the work requested is encapsulated in frameworks and containers, so that we only need to do a small amount of work.But what about the entire http request process?What role does the Spring MVC framework play in this?How does it interact with the Web container ...

Posted on Wed, 15 May 2019 08:24:38 -0700 by suncore

Sprboot integrates swagger and uses interceptor configuration issues

Recently, my colleague asked me that spring boot integrates swagger, but I had problems using interceptors and the page was inaccessible.The problem has been solved through research. Configuration problem solving Integrated swagger is not tedious, it's all over the Internet, just look at the configuration. Configurations found by colleagues onl ...

Posted on Wed, 15 May 2019 03:20:16 -0700 by somo

Spring5 Design Mode Four

Design Patterns in the Spring Framework (IV) This is the fourth article on design patterns used in the Spring framework.Three new modes are presented here. At the beginning, we will discuss two structural modes: adapter and decorator.In the third and final sections, we will discuss the singleton pattern. Adapter When we need to use the ada ...

Posted on Tue, 14 May 2019 12:18:50 -0700 by Kookedoh

Why add @Modifying annotations and @Transactional annotations to custom insert, update, delete methods in JPA?

A few days ago, when a colleague was using JPA's custom SQL method, the program always reported abnormal, and after half a day's trouble, he could not solve it. When consulting me, I took a look at his program, which was almost like this: 1 @Repository 2 public interface UserRepository extends JpaRepository<User,Long> { 3 4 @Qu ...

Posted on Sun, 12 May 2019 03:07:41 -0700 by philippe2