Practice of separating project development from 0 to 1

Front and rear end separation project development preface Front end separation means that the front-end code and back-end code of an application are written separately. Why? What are the problems if the front and rear end separation is not used? In traditional java web development, the front end uses JSP and the back end uses servlet. ...

Posted by Kazlaaz on Tue, 21 Dec 2021 19:34:31 +0100

Django REST Framework——5. View and routing

A key benefit of class based views is that they allow you to combine some reusable behaviors. DRF takes advantage of this by providing a large number of pre built views, which provides us with some common patterns. What we need to do is to select the appropriate view class for inheritance. 1, APIView class The APIView class provided by DR ...

Posted by mmonaco on Sun, 19 Dec 2021 02:59:35 +0100

Detailed tutorial on using knife interface document generator

knife Gitee address: https://gitee.com/xiaoym/knife4j 1, Introduction to interface generator knife In previous projects, swagger has been used to generate background interface documents, which is easy to use, at least more convenient than writing interface documents in word and debugging interfaces in postman. Swagger provides a set ...

Posted by liro on Sat, 18 Dec 2021 21:27:54 +0100

Spring Boot builds a web project

1, The main features of Spring Boot are: Create an independent Spring application to provide a very fast and widely accepted entry experience for all Spring developers Directly embedded in application servers, such as tomcat, jetty, underow, etc; There is no need to deploy the war package Provide fixed initiator dependency to simplify componen ...

Posted by vince81 on Sat, 18 Dec 2021 08:52:14 +0100

SpringBoot builds the back-end interface gracefully

SpringBoot builds the back-end interface gracefully directory structure 1. Validator parameter validation 2. Global exception handling 3. Unified data response 1. Preface: A complete back-end interface is roughly divided into four parts: interface mapping address, request mode, request data and response data. How to build these four componen ...

Posted by convinceme on Fri, 17 Dec 2021 08:03:36 +0100

Servlet--HttpServletRequest to obtain the detailed explanation of request information (request header, request line and parameters)

Overview of ttpServletRequest object In the Servlet API, an HttpServletRequest interface is defined, which inherits from the ServletReauest interface and is specially used to encapsulate HTTP request messages. Since the HTTP request message is divided into three parts: request line, request header and request message body, the relevant methods ...

Posted by Sassy34 on Fri, 17 Dec 2021 04:56:54 +0100

Spring MVC RESTFul description

1 what is RESTFul RESTFul programming is a style, not a protocol. Interpretation of HTTP protocol (landing scheme) and landing of request mode There are 8 http protocols Serial numbermethoddescribe1GET  Request the specified page information. The request data is placed in the protocol header and the entity body is returned2POSTSubmit resou ...

Posted by ukalpa on Thu, 16 Dec 2021 17:30:05 +0100

RestFul interface design

1. Rest and RestFul REST (English: Representational State Transfer, referred to as REST), Representational State Transfer, refers to a set of architectural principles. Restful: a web service or web application that complies with the rest principle. 2. Six elements of API design Resource path (URI), HTTP verb (Method), query string, status c ...

Posted by horsleyaa on Wed, 15 Dec 2021 14:07:51 +0100

Spring MVC learning notes

Learning route: JavaSE: learn object-oriented concepts and characteristics, classes, interface methods and other basic knowledge, as well as relational database, the use of JDBC and the simple encapsulation of JDBC JavaWeb: Learn browser and server related technologies, follow HTTP protocol to complete the interaction between browser ...

Posted by mephistoo on Sun, 21 Nov 2021 07:03:23 +0100

Servlet.init() of Servlet[springmvc] raises an exception;

explain: (1) Why write this blog?: In[ RESTful development style 2: first experience of RESTful development style 2: develop the first RESTful project; ]Encountered the [exception thrown by Servlet.init() of Servlet[springmvc]] problem in; This blog records; (2) Brief description of error cause: [Spring]   While initializing the Dispat ...

Posted by sonofyoda on Wed, 10 Nov 2021 23:46:46 +0100