BeanPostProcessor and Spring noninvasive extension

@TOC I. BeanPostProcessor The BeanPostProcessor interface has two methods: Object postProcessBeforeInitialization(Object bean, String beanName) Object postProcessAfterInitialization(Object bean, String beanName) It seems that initialization is misleading. Initialization here does not refer to class initialization or instance initialization. It ...

Posted on Sun, 10 Nov 2019 05:55:02 -0500 by mdaoust

Spring boot disable insecure request method of built-in Tomcat

Cause: the security group needs to turn off the insecure request methods, such as put, delete and other methods, to prevent the server resources from being tampered with maliciously. You know that you can use @ PostMapping, @ GetMapping and other annotations to define a single interface method type, or you can specify ...

Posted on Sat, 09 Nov 2019 15:44:37 -0500 by Crashin

Handwritten dubbo like rpc framework Chapter 3 rpc framework

Case introduction Combined with the above two chapters, this chapter will realize the basic functions of rpc; provide one to rpc middleware jar to the production side and server side. Technical points; 1. For the registration center, the producer needs to publish the local interface to the registration center when star ...

Posted on Sat, 09 Nov 2019 15:33:08 -0500 by colB

Java spring cloud b2b2c social e-commerce spring cloud distributed micro service spring boot integration mybatis

Introducing dependency E-commerce social platform source code Please add Penguin: 103874626. The dependency of introducing mybatis spring boot starter in pom file: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter<artifactId> <version>1.3.0< ...

Posted on Sat, 09 Nov 2019 14:25:18 -0500 by stig1

JAVA application performance monitoring based on JDK command line tool monitoring

I. JVM parameter type JVM parameter type Standard parameters-help-server -client-version -showversion-cp -classpathThe standard parameters are basically unchanged and relatively stable in each version of the JVM. X parameterNon standardized parameters may change in different versions of the JVM, but not much.-Xint: explain execution-Xcomp: com ...

Posted on Sat, 09 Nov 2019 11:05:02 -0500 by lewel

Design mode: face -- appearance mode

Appearance mode Appearance mode is to solve the dependency between classes and family of classes. Like spring, you can configure the relationship between classes into a configuration file. Appearance mode is to put their relationship into a Facade class, reducing the coupling between classes. There is no interface involved in this ...

Posted on Sat, 09 Nov 2019 10:51:51 -0500 by rawky1976

Basic configuration of spring MVC

Record the steps to build the spring MVC framework I. create a new Java Web project, springmvc1, and import the jar package in lib This project uploads GitHub, which is convenient to download jar package https://github.com/yeyangtao/springmvc 2. web.xml file under Web inf Among them, serve name's spingmvc will be used in the next step. ...

Posted on Sat, 09 Nov 2019 10:45:44 -0500 by Saeven

A good way to play spring bean

@Controller controller (injection service): used to label the control layer, equivalent to the action layer in struts; @Service service (injection dao): used to mark the service layer, mainly used for business logic processing; @repository (realizing Dao access): used to mark the data access layer, also can be said to mark the data access compo ...

Posted on Sat, 09 Nov 2019 08:17:36 -0500 by j1bird2k

Play wechat everyday, Spring Boot develops private instant messaging system

1/ overview Using Spring Boot as the basic framework, Spring Security as the security framework and WebSocket as the communication framework, point-to-point chat and group chat are realized. 2 / dependence required Spring Boot version 1.5.3 uses MongoDB to store data (not required). Maven relies on the following: <properties> <java ...

Posted on Sat, 09 Nov 2019 04:49:06 -0500 by yong

9. BeanFactory Source Code Analysis of Spring

BeanFactory Source Code Analysis for Spring (1) Note: This essays is entirely quoted from https://blog.csdn.net/u014634338/article/details/82865644 , well written, thank you very much. Copying is an accumulation, I'm afraid I can't find it later. BeanFactory BeanFactory provides the functionality of the most basic IOC container. BeanFactory is ...

Posted on Sat, 09 Nov 2019 00:42:00 -0500 by Benny Johnson