Spring Framework Learning Notes

I. Introduction to Spring Framework and Official Compressed Packet Directory Purpose of Spring Framework Without reinventing technology, the original technology will be more convenient to use. Core functions IoC/DI Control Inversion/Dependency Injection AOP Face-Oriented Programming Declarat ...

Posted on Wed, 31 Jul 2019 05:30:57 -0700 by corporateboy

SpringCloud service registration and invocation

Registration and invocation of SpringCloud service 1. New Eureka Service 2. New Service Provider 3. New Service Consumer (feign call) 1. New Eureka Server 2. Service Providers 3. Service consumers (feign) 1. New Eureka Service 2. New Service Provider 3. New Service Consumer (feign call) 1. ...

Posted on Tue, 30 Jul 2019 16:04:31 -0700 by Fakcon

Detailed scopes configuration for Spring Security OAuth2

1. Look at the description of the official document first Address: https://projects.spring.io/spring-security-oauth/docs/oauth2.html scope: The scope to which the client is limited. If scope is undefined or empty (the default) the client is not limited by scope. Used to limit client access, if blank ...

Posted on Tue, 30 Jul 2019 13:55:55 -0700 by dudeddy

Java Timing New Posture

For a better reading experience, please visit the original text: PortalForeword: Recently, a big man came to our company and learned a lot from him. One of them is timing. Stop Watch, let's get to know it. The simplest timing In our program, it is necessary to time an operation or method so that we can observe whether the operation or metho ...

Posted on Tue, 30 Jul 2019 10:29:07 -0700 by jbrave

helloworld of spring mvc in java

This article focuses on the basic use of springmvc, taking the helloworld project as an example. Directory structure: 1. New web project: springmvc_helloworld 2. Import the jar package under WebRoot\WEB-INF\lib commons-logging-1.1.1.jar spring-beans-4.1.6.RELEASE.jar spring-context-4.1.6.RELEASE.jar spring-core-4.1.6.RELEASE.jar s ...

Posted on Tue, 30 Jul 2019 10:19:40 -0700 by raan79

Java AOP Logging

Some Terms about Spring AOP Aspect: In Spring AOP, facets can be implemented using generic classes or in common classes with @AspectJ annotations (@AspectJ style) Joinpoint: In Spring AOP, a join point represents the execution of a method Advice: An action performed on a particular Joinpoint of a ...

Posted on Tue, 30 Jul 2019 04:43:22 -0700 by amberb617

Learn to Use Ribbon of Spring Cloud Netflix Together

Preface Ribbon is an important component for load balancing in Spring Cloud system. There are two components in Spring Cloud system to complete service invocation, one is Ribbon+RestTemplate, the other is Feign. Feign uses Ribbon components by default, wrapping calls between services and invoking remote services like invoking methods. This exam ...

Posted on Tue, 30 Jul 2019 01:15:47 -0700 by OriginalSixRules

Dubbo Microservice Architecture Using Redis as Registry (SpringBoot)

title: Dubbo micro-service architecture using Redis as registry (SpringBoot) date: 2019-07-30 14:06:29 categories: Framework author: mrzhou tags: SpringBoot redis Dubbo Microservices RPC Preface Dubbo, as a high-performance RPC framework, has been widely used in most front-line IT enterprises. Today we will try it. In order to write as little ...

Posted on Tue, 30 Jul 2019 01:01:36 -0700 by Ironphp

SpringBoot Spring Security OAuth 24 token generation methods

Recently, the project is going to use Spring Security OAuth 2 for authority authentication management, so first, understand the principle of Spring Security OAuth and make a demo for reference. Project address I. Project knowledge preparation What is OAuth2 The standard for OAuth 2.0 is RFC 6749 OAuth introduces an authorization layer to s ...

Posted on Mon, 29 Jul 2019 20:57:30 -0700 by globetrottingmike

Working Principle of Spring Session

This article was first published on vivo Internet Technology Wechat Public Number https://mp.weixin.qq.com/s/KCOFv0nRuymkX79-RZi9eg Author: Zhang Zhenglin HTTP protocol itself is stateless. In order to save session information, browser Cookie identifies session request through Session ID, and server stores session information with Session ...

Posted on Mon, 29 Jul 2019 19:56:10 -0700 by cashflowtips