Spring. Page 9

The use of Spring @Async annotation

Premise of use If there is an asynchronous method in the current class a.class and @ Async is used, it must be called by other classes (such as b.clas...
18:45 4 December 2019

Remember the problems in SpringBoot1. * to Springoot2.0

1. Interceptor problem Write static path pattern in the configuration file after 2.0. / static / * * has no effect (2.0 needs to be configured in the ...
12:35 4 December 2019

JAVA | Spring + quartz to implement timing tasks

WeChat public number: an excellent wasterIf you have any questions or suggestions, please leave a message in the background. I will try my best to sol...
6:53 4 December 2019

Custom parsing of spring boot front and back separate Instant timestamps

In the spring boot project, the front end and the back end specify the transfer time using timestamp (precision ms) @Data public class Incident { @Api...
5:37 4 December 2019

Notes on setting roles and permissions in spring security

concept In the loadUserByUsername method of UserDetailsService to build the current login user, you can choose two authorization methods, role authori...
4:27 4 December 2019

Using the BeanUtils class to copy the same name property between DToS

In the development, we often encounter such a scenario that all fields are queried from the database, but some fields do not want to be given When the...
1:25 4 December 2019

Spring MVC file upload

I. step summary Import jar package Configure web.xml Create configuration file mvc.xml in src directory Create the front page fileupload.jsp Create co...
0:39 4 December 2019

Weather forecast microservice: build spring cloud microservice from 0

As usual Project github link This project realizes the process of transforming a simple weather forecast system into a spring cloud microservice syste...
19:35 3 December 2019

Summary of ssm integration -- the first step is to build a web project with maven

The content of this paper comes from: Mountain Silicon Valley. It integrates task 2, task 3 and task 4. http://www.gulixueyuan.com/my/course/50 1 Desc...
17:23 3 December 2019

springboot: shiro injecting dubbo service null pointer

Problem description When the springboot+dubbo+shiro microservice is set up recently, in the custom shiro's realm component: @Component public cla...
14:52 3 December 2019

SpringBoot practice | using JdbcTemplates to access Mysql

WeChat public number: an excellent wasterIf you have any questions or suggestions, please leave a message in the background. I will try my best to sol...
13:27 3 December 2019

Spring MVC conceptual model -- HandlerMapping: request / processor mapping

Summary Spring MVC interface HandlerMapping is used to abstract modeling concepts: mapping between request and handler. The interface can be implemen...
11:07 3 December 2019

Support jsp+html jump in the whole contract of springboot 2.0

Spring boot project creation tutorial https://blog.csdn.net/q18771811872/article/details/88126835 springboot2.0 jump to html tutorial https://blog.csd...
8:58 3 December 2019

org.springframework.web.multipart.MaxUploadSizeExceededException

The company assigned me a task to do the second phase development of a project. After taking over from other project teams, the test files are upload...
8:54 3 December 2019

Spring Boot from entry to mastery - project construction

Spring Boot greatly simplifies the development of Java projects. If you want to develop a java project before, you need to install tomcat or other co...
5:48 3 December 2019

springboot custom exception

Spring boot custom exception and exception handling In a web project, we may need to return different prompt codes to the front end. For example, 401 ...
0:23 3 December 2019

Java's new project learning online notes - day3(3)

2 new page 2.1 new page interface definition 1. Define response model @Data public class CmsPageResult extends ResponseResult { CmsPage cmsPage; publ...
23:52 2 December 2019

Write custom parameter validation

This article has been published for more than two months since I left my previous company two months ago (the reason may be at the end of the year, th...
16:54 2 December 2019

Spring boot integrates mybatis and mapper interface to scan source code analysis

AutoConfiguredMapperScannerRegistrar public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {...
15:28 2 December 2019

Spring Data JPA must master 20 + query keywords

WeChat public number: an excellent wasterIf you have any questions or suggestions, please leave a message in the background. I will try my best to sol...
9:59 2 December 2019

Spring Boot get configuration file value

In the process of program development, some values that may be modified are often put into the configuration file. How to get the values of the config...
3:41 2 December 2019

Detailed introduction to Spring

Preface This article is followed by the detailed introduction to spring (1). It is recommended to read the first article before reading this article. ...
2:41 2 December 2019

Solve Jackson 2 deserialization LocalDateTime error

Today, when integrating redis and spring boot, I encountered an error. Record it. The error is reported as follows: Could not read JSON: Cannot constr...
1:51 2 December 2019

SpringBoot configures HTTPS and implements automatic HTTPS access to HTTPS

nginx is recommended for configuring https No further replies will be given to any questions raised in this article. Here's why I wrote this art...
20:07 10 November 2019

Spring Boot 2.x Actual StateMachine

This article was first published on a personal website: Spring Boot 2.x Actual StateMachine Spring StateMachine is a state machine framework. In the S...
14:57 10 November 2019

Feign automatic assembly principle

spring.factories As always, when you look at the source code, let's first look at the FeignAutoConfiguration class, which is automatically assemb...
21:13 7 November 2019

Spring Security and Spring Session

Extend JSON-based login The client and server timed out and authentication failed due to prolonged interaction on the server.However, the user does no...
16:46 7 November 2019

SpringBoot custom starter and automatic configuration

The core of spring boot is automatic configuration, and the starter projects support automatic configuration. In addition to the official starter, use...
20:56 6 November 2019

Distributed tracking system microservice monitoring based on SkyWalking

In the last article, we built a SkyWalking based distributed tracking environment. Today, we talk about using SkyWalking to monitor our microservices ...
20:02 6 November 2019

Secret behind Spring ResponseBody

I. Introduction In the stage of more and more advocating out of the box use, many details are hidden behind us, especially after we start to use sprin...
19:56 6 November 2019