springboot web - start run()

Pick up another article. After creating SpringApplication, the run() method is called public ConfigurableApplicationContext run(String... args) {   //timer, Monitoring start time StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicationContext context = null; Collection<SpringBootExceptionReporter&g ...

Posted on Fri, 21 Feb 2020 08:55:18 -0500 by woodplease

srpingboot web - start listener

Pick up another article. 1, getRunListeners() The getRunListeners(args) method is called in the run() method, first look at what this method has done. private SpringApplicationRunListeners getRunListeners(String[] args) { Class<?>[] types = new Class<?>[] { SpringApplication.class, String[].class }; return new SpringApplica ...

Posted on Fri, 21 Feb 2020 07:59:13 -0500 by bbristow

A simple addition, deletion, modification and query of sprigboot+jpa

Recently, I have taught myself some basic usage of springboot on mooc.com, and I have learned some relevant knowledge on the way to use it. Next, I will write down my learning achievements: This record is a simple addition, deletion, modification and query of mysql database using springboot+jpa. After a ...

Posted on Fri, 21 Feb 2020 05:03:10 -0500 by kyllerj

Microservice provider

After we have created the total project of a project, we need to write an api sub module, which is generally called an entity class. We need entity class data to call this sub module. First, we import a lombok in pom: <dependencies> <dependency> <groupId>org.proje ...

Posted on Fri, 21 Feb 2020 01:38:30 -0500 by bigbstanley

[easypoi uses template to derive climbing experience]

Problem Description: 1. Development environment, idea development tool, windows10 system, JDK8.0; system deployment environment, centeros7; 2. In the process of development, use the template to download documents, because the template is fixed, just fill in the required information; Problems found: Template documents are placed under the so ...

Posted on Thu, 20 Feb 2020 22:51:41 -0500 by Myke

Deep Source Analysis of SpringMVC Execution

This article mainly explains the SpringMVC execution process and parses the related source code. First, let's look at how Spring MVC handles user requests from the perspective of four components of Spring MVC: the Dispatcher Servlet, the Handler Mapping, the Handler Adapter, and the ViewResolver, as shown in the following figure: SpringMVC Exe ...

Posted on Thu, 20 Feb 2020 21:53:37 -0500 by phpforme

Spring boot picture and text tutorial 4 - spring boot implementation file upload and download

If there is the concept of flying in the sky, there must be the realization of landing Concept + code implementation is the feature of this article. The tutorial will cover a complete picture and text tutorial and code cases At the end of the article, the self-test interview questions are provided, and the technical self-test is more solid a ...

Posted on Thu, 20 Feb 2020 04:02:43 -0500 by mcog_esteban

New posture of spring boot2. X operation cache

I. Introduction spring cache is a technology introduced after spring 3, which can simplify the operation of the cache layer. spring cache is similar to spring cloud stream, which is based on the abstract layer, and can switch its implementation arbitrarily. Its core is the two interfaces of CacheManager and cache. All the caches integrated by ...

Posted on Thu, 20 Feb 2020 02:45:03 -0500 by hasanpor

Spring datajpa multi table joint query

It is believed that everyone has used jpa. After jpa inherits the interface of CrudRepository and PagingAndSortingRepository, in simple single table query, jpa can use jpql query quickly, no matter using its own findAll(), saveAll and other methods or using jpa's method naming Specification. However, in ...

Posted on Thu, 20 Feb 2020 02:20:04 -0500 by john8675309

JAVA distributed development

JAVA distributed development Redis Git Git advanced Svn Nginx Springcloud Redis Redis is an open-source log and key value database written in ANSIC language, supporting network, memory based and persistent. It also provides API s in multiple languages. Redis is like a HashMap running as an indepe ...

Posted on Thu, 20 Feb 2020 02:10:54 -0500 by metalblend