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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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...
Spring boot integrates mybatis and mapper interface to scan source code analysis
AutoConfiguredMapperScannerRegistrar public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {...
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...
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...
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. ...
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...
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...
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...
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...
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...
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...
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 ...
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...