11 Points Make Your Spring Boot Start Faster

Preface OpenJDK 11 is used. java --version openjdk 11.0.1 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) You can run the benchmark as follows. It may take some time to run, and all the tests will be executed below. ./mvnw clean package (cd benchmarks/; java -jar target ...

Posted by ronniebrown on Thu, 12 Sep 2019 00:20:11 -0700

Integrated SpringMVC for SpringBoot initial experience

As a developer, we all know that SpringBoot is based on Spring 4.0, which not only inherits the original excellent features of the Spring framework, but also further simplifies the entire process of building and developing Spring applications by simplifying the configuration.In addition, SpringBoot integrates a number of frameworks to resolve i ...

Posted by PHP_ColdFusion on Wed, 11 Sep 2019 09:58:59 -0700

How can I get rid of if-else parameter checking?

background In development, it is often necessary to write some field validation code, such as non-empty, length limitations, mailbox format validation, etc., which results in code full of if-else, which is not only quite lengthy, but also crazy. hibernate validator(Official Documents ) provides a set of relatively complete and convenient veri ...

Posted by jim_de_bo on Wed, 11 Sep 2019 09:43:13 -0700

Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x

Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x When learning Spring Cloud, when encountering the related content of authorized service oauth, he always knows half of it, so he decided to study and collate the content, principle and design of Spring Security, Spring Security Oauth2 and other permissions, authe ...

Posted by Mesden on Wed, 11 Sep 2019 01:46:46 -0700

Common Annotation Configuration for SpringBoot

Annotation configuration of SpringBook Common annotations @Configuration From Spring 3.0, @Configuration is used to define configuration classes, which can replace xml configuration files. The annotated classes contain one or more methods annotated by @Bean. These methods will be scanned by Annotation Config Application Context or Annotation Co ...

Posted by noimad1 on Wed, 11 Sep 2019 00:37:59 -0700

SIA-GateWay API Gateway Installation and Deployment Guide

SIA-GATEWAY is a distributed micro-service gateway system based on Spring Cloud micro-service ecosystem. It has the characteristics of easy to use, visualization, high scalability and high availability, and provides cloud native, complete and mature access service solutions. This paper introduces the installation and deployment of API gateway. ...

Posted by Xpheyel on Tue, 10 Sep 2019 23:56:17 -0700

Chapter 10, Integration of Spring and Spring MVC

Article directory 1. Integration of Spring and Spring MVC 2. Spring Integration Spring MVC - Solution Configuration Listener 3. The relationship between Spring IOC container and Spring MVC IOC container 4. Handwritten Spring listener 1. Integ ...

Posted by TweetyPie on Tue, 10 Sep 2019 04:52:42 -0700

SSM Framework Integration

When you do not see the flower, it will be silent with your heart. When you come to see the flower, the color of the flower becomes clear for a moment, and you will know that the flower is not outside your heart. The previous chapter briefly introduc ...

Posted by blink359 on Mon, 09 Sep 2019 22:21:45 -0700

SpringBoot integrates ActiveMQ, just read this article.

ActiveMQ is an open source messaging system provided by Apache, which is implemented entirely in Java, so it can support JMS (Java Message Service, or Java Message Service) specification very well. This article will introduce in detail the installation of ActiveMq, the integration with SpringBook to send queue messages, and the process of s ...

Posted by porto88 on Mon, 09 Sep 2019 20:58:08 -0700

Spring IOC Process Source Parsing

Say nothing more, let's start with a dumb version of IOC demo Custom Bean Definition class MyBeanDefinition{ public String id; public String className; public String value; public MyBeanDefinition(String id, String className, String value) { this.id = id; this.className = className; this.value = value; ...

Posted by Rob2005 on Mon, 09 Sep 2019 19:15:10 -0700