Spring boot series single, multi file upload correct posture
Spring boot series (9) minutes to upload files
Previous recommendationSpring boot series (I) idea new spring boot project
Introduction to SpringBoot series (2)
Spring boot series (3) configuration file details
Spring boot series (IV) detailed explanation of web static resource configuration
Spring boot series (V) Mybatis integrated full detaile ...
Posted by lukeurtnowski on Wed, 22 Apr 2020 08:06:16 -0700
Exception handling and parameter checking in SpringBoot
Hello, brothers, this time to exchange two questions with the old fellow, exception and parameter checking. Before we talk about parameter checking, let's first talk about exception handling, because the latter parameter checking involves exception handling.
exception handling
When it comes to exception handling, I don't know if you've written ...
Posted by liamjw on Mon, 20 Apr 2020 19:12:02 -0700
springboot parameter check
SpringBoot has a built-in Hibernate Validator as the checking framework, so as long as we have integrated SpringBoot, we can use Hibernate Validator to complete parameter checking.
Common Notes
@Null: The commented property must be null;
@NotNull: The commented property cannot be null;
@AssertTrue: The commented property must be true;
@AssertF ...
Posted by soldbychris on Sat, 18 Apr 2020 21:09:36 -0700
Develop wechat applet from scratch (4): after wechat applet binds system account and authorizes login
1. Background development environment:
Language: java
Framework: springboot
2. Code example:
package com.zc.wechat.web;
import com.zc.common.api.util.Result;
import com.zc.wechat.model.Token;
import com.zc.wechat.model.app.Jscode2sessionResult;
import com.zc.wechat.service.WechatAppService;
import com.zc.wechat.service.WechatServerService; ...
Posted by chetanrakesh on Wed, 15 Apr 2020 10:46:26 -0700
Use of LocalDateTime in the project (LocalDateTime docking front end interacts with timestamp, LocalDateTime docking database)
Catalog
1. Blog writing background
2. LocalDateTime front-end interaction
2.1 LocalDateTime writes a timestamp to the front end
2.1.1 fastJson default write format
2.1.2 Change the fastJson write format so that it writes back the timestamp ()
2.2 Receive the time stamp passed by the front end as LocalDateTimme
2.2.1 LocalDateTime Default ...
Posted by haddydaddy on Mon, 13 Apr 2020 18:47:43 -0700
Spring boot exception handling
Spring boot exception handling, usually in two ways
One is to use @ ControllerAdvice
The other is to use ErrorController, the default error handling BasicErrorController of springboot, which is the implemented interface
The first one is called adding interceptor. It's not good. The second one is less error information. It's also bad. It miss ...
Posted by JBS103 on Fri, 10 Apr 2020 08:25:40 -0700
Design Mode-Proxy Mode JAVA Implementation
The proxy model is simply a design pattern for pre- and post-intervention on Methods in existing classes to modify an existing business at the class or method level without modifying an existing business class.
There are currently two implementations, one is a static proxy, implemented purely through code based on design patterns.The other is ...
Posted by mwasif on Sun, 05 Apr 2020 20:15:41 -0700
Spring Boot tutorial (XXVII) receiving uploaded multi file files
Construction project
For example, to create a spring MVC project, you need the start dependency of spring boot starter thymeleaf and spring boot starter web. For example, if you can upload files to the server, you need to add tags to the web.xml to do the relevant configuration, but in the sringboot project, it has been done for you automatica ...
Posted by renob on Sun, 05 Apr 2020 04:41:32 -0700
Understanding Feign Source for Spring cloud Source Text
Introduction to Feign
In the previous article, we analyzed Eureka's registration, renewal, service culling, service self-protection and other mechanisms. https://blog.csdn.net/lgq2626/article/details/80288992 .This article analyzes the feign of SpringCloud.Calls between SpringCloud micro-service items are made through httpress requests, which w ...
Posted by Mount Tropolis on Fri, 03 Apr 2020 23:55:28 -0700
Spring boot transaction related (druid+mybatis)
springboot transaction related
1. Enable global transaction support
Enable @ EnableTransactionManagement in SpringbootApplication to support @Transactional
Enable APO configuration support @ EnableAspectJAutoProxy (exposeProxy = true) to support automatic transaction configuration in aop mode
Where exposePorxy defaults to false and is set t ...
Posted by vipul73 on Tue, 31 Mar 2020 21:32:20 -0700