[Java Spring open source project] operation, analysis and summary of neebee mall project
Project introduction
**Project address:** https://github.com/newbee-ltd/newbee-mall
**Project Description: * * NewBee mall project is a set of e-commerce system, including NewBee mall system and NewBee mall admin mall background management system, based on spring boot 2 X and related technology stack development. The front desk mall system in ...
Posted by suepahfly on Wed, 19 Jan 2022 12:25:01 +0100
13. SpringBoot Configuration class @ Configuration
01. General
Configuration class: the class marked by @ configuration or @ SpringBootConfiguration in springboot is called configuration class.
02. Function & purpose
Many @ Bean methods can be defined in the configuration class, and these @ beans can be decorated to load the spring framework into the ioc container.
03. Why does the conf ...
Posted by latinofever on Wed, 19 Jan 2022 04:43:31 +0100
Power node Spring framework learning notes - Wang He IOC control inversion
Spring framework learning notesOfficial download addressPower node spring dataVideo viewing addresshttps://www.bilibili.com/vide...1, IOC control reversal1.1 generalIoC (Inversion of Control) is a concept and an idea. It refers to handing over the call right of the object directly controlled by the program code to the container, and realizing t ...
Posted by leegreaves on Wed, 19 Jan 2022 04:04:44 +0100
002SpringIOC001IOC overview and introductory case
1 Introduction
1.1 IOC introduction
IOC (inverse of control), i.e. reverse control.
When a component in an application needs to obtain resources, the traditional way is for the component to actively obtain the required resources from the container. In this mode, developers often need to know how to obtain specific resources in specific conta ...
Posted by noirsith on Tue, 18 Jan 2022 22:02:03 +0100
One of SSM mybatis: getting started
The following is based on MyBatis official website Document extension
1. What is MyBatis?
MyBatis is an excellent persistence layer framework, which supports custom SQL, stored procedures and advanced mapping. MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can configure and map pr ...
Posted by mightymax on Tue, 18 Jan 2022 17:40:53 +0100
refresh method source code analysis
Post processor
It is also a Bean that needs to be registered in the container
◆ the methods in it will be called by the container at a specific time ◆ the implementation extends the Bean without changing the container or the core logic of the Bean
◆ package the Bean, affect its behavior, modify the content of the Bean, etc
Type of PostProce ...
Posted by nielsg on Tue, 18 Jan 2022 16:35:59 +0100
Usage scenario and mode of ThreadLocal
Two usage scenarios - the purpose of ThreadLocal
Typical scenario 1: each thread needs an exclusive object (usually a tool class. The typical classes used are SimpleDateFormat and Random)
Typical scenario 2: global variables need to be saved in each thread (for example, obtain user information in the interceptor), which can be used directly b ...
Posted by flyankur on Tue, 18 Jan 2022 14:38:46 +0100
Analysis of advanced service release of sofarpc
Sofrpc service publishing principle
Sofrpc is the RPC framework in ant soffastack. The rise of each middleware is worth learning its design concept to expand our knowledge reserve. It should not be shown here. For those students who have not understood, please refer to: https://www.sofastack.tech/projects/sofa-rpc/overview/
This is based ...
Posted by Riseykins on Tue, 18 Jan 2022 03:57:55 +0100
Spring Security Series (12) - four authorization modes of Oauth2 open platform authorization service
to configure
1. Add WebSecurityConfigurerAdapter configuration
A password parser is added, a user is added in memory, and other configurations will be added later.
@Configuration
@EnableWebSecurity(debug = true)
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true, jsr250Enabled = true)
public class MyWebSecurityConfigura ...
Posted by Haroskyline on Tue, 18 Jan 2022 02:12:57 +0100
Spring Boot quickly integrates TK Mybatis
introduce
TKMybatis is a tool developed based on the Mybatis framework. It internally implements the basic data operation of a single table. It can complete the single table operation without writing any sql by simply inheriting the interface provided by TKMybatis.
Add dependency
Add TKMybatis dependency
<dependency>
<group ...
Posted by diode on Tue, 18 Jan 2022 02:05:57 +0100