Spring MVC JSON interaction processing

Spring MVC JSON interaction processing 8, JSON interactive processing 1. What is JSON? JS ON (JavaScript Object Notation) is a lightweight data exchange format, which is widely used at present;Data is stored and represented in a text format completely independent of the programming language;The hierarchical structure of hydrogen makes JS ...

Posted on Sun, 19 Sep 2021 14:28:53 -0400 by davey_b_

Object parameter injection with request type of application/x-www-form-urlencoded is supported

Background: After joining the new company, when developing business code at work recently, I found that the method parameters in the controller layer cannot be in the form of user-defined objects, but can only be single attribute methods one by one, and the objects can only be objects of PageRequest and FallsPageRequest types. Therefore, if ...

Posted on Sun, 19 Sep 2021 10:06:01 -0400 by digibrain

The loadUserByUsername of SpringSecurity threw an exception and could not catch the cause analysis

The loadUserByUsername of SpringSecurity threw an exception and could not catch the cause analysis I believe everyone is familiar with spring security. It is a framework that I love and hate. The configuration is not simple, but the function is extremely powerful. Let's analyze the reason why the custom exception thrown in loadUserByUsernam ...

Posted on Thu, 16 Sep 2021 19:38:11 -0400 by Stickdragon

yml and properties configuration files, automatically prompt settings when writing the configuration of SpringBoot components, and Chinese garbled code

SpringBoot uses a global configuration file with a fixed name; •application.properties •application.yml Function of configuration file: modify the default value of SpringBoot automatic configuration; SpringBoot is automatically configured at the bottom; YAML(YAML Ain't Markup Language) YAML A Markup Language: is a markup language YAML isn ...

Posted on Wed, 08 Sep 2021 20:15:05 -0400 by knighthawk1337

Spring MVC notes (crazy God)

Madness theory 1. Review MVC 1.1 what is MVC MVC is the abbreviation of model, view and controller. It is a software design specification.It is a method to organize code by separating business logic, data and display.The main function of MVC is to reduce the two-way coupling between view and business logic.MVC is not a design pattern, MVC ...

Posted on Wed, 08 Sep 2021 14:50:31 -0400 by dgudema

Spring MVC file upload and download

Spring MVC file upload and download File upload and download are frequently used functions in Web projects. Spring MVC can well support file upload and download; This section creates a new SpringMVC-09-File project. Learn to upload and download files in SpringMVC. 1. File upload 1.1 pre knowledge File upload is to transfer data from the cli ...

Posted on Mon, 06 Sep 2021 23:37:58 -0400 by dai.hop