Spring Boot 2.X: integrated Swagger2 development API documentation (Online + offline)

Preface I believe that many back-end development projects will encounter the need to write api documents, whether it is to provide better docking for the front-end, mobile end, etc., or in the future for the convenience of handover, it will be required to write api documents. There are many pain points in handwritten api documents: When the do ...

Added by hmvrulz on Wed, 06 Nov 2019 04:54:00 +0200

Independent completion of enterprise Java e-commerce website development (server side) from 0

Data table structure design unique index ensures data uniqueness CREATE TABLE `mmall_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'User table id', `username` varchar(50) NOT NULL COMMENT 'User name', `password` varchar(50) NOT NULL COMMENT 'User password, MD5 encryption', `email` varchar(50) DEFAULT NULL, `phone` varchar(20) D ...

Added by j007w on Tue, 05 Nov 2019 20:20:49 +0200

[java foundation] generics

Preface Before talking about generics, the blogger wants to talk about the meaning of T, KV E, and? In Java generics. How many Xiaobai students are bothered by these things? It's not clear how many hhhhh. E - Element (used in a collection because it holds elements) T - Type (Java class) T represents the specified type at the time of the call ...

Added by freshneco on Tue, 05 Nov 2019 02:52:06 +0200

Understand prototype and prototype chain

prospect JavaScriptIt's object-oriented programming, but it's different from other programming languagesJavaScriptObject-oriented is not dependent on abstract classes, but through prototype chains. stayC++andJavaUsenewCommand, will be called"class"Constructor for. While inJavascriptIn language,newThe command is not followed by a class, but by a ...

Added by SiMiE on Mon, 04 Nov 2019 11:08:48 +0200

Heaven and earth move! React can also use the computed attribute

Foreword, about calculation properties The first time I saw the word calculation property was in the official Vue document Calculation properties and listeners In the section, the article describes the calculation attributes as follows: Expressions in templates are very convenient, but they are designed for simple operations. Putting too m ...

Added by Lisa23 on Mon, 04 Nov 2019 03:55:45 +0200

Strategy mode and factory mode

The combination of policy pattern and factory pattern can eliminate the multi nesting of code if else demand There is such a demand for under store stores. There are four levels for user customers: ordinary customers, vip customers, super vip users and exclusive vip users. When users purchase goods, different discount strategies are adopted f ...

Added by supermars on Mon, 04 Nov 2019 03:51:54 +0200

Beginners learn Python (13): basic data structure (Dictionary)

Life is short, I choose Python Previous portal Little white learning Python (1): the beginning Little white learning Python (2): basic data types (I) Python (3): basic data type (2) Python (4): basic operation of variables Python (5): basic operators (1) Python (6): basic operator (2) Xiao Bai Xue Python (7): basic process control (Part one) P ...

Added by Admiral S3 on Mon, 04 Nov 2019 03:10:18 +0200

Experiment 2 format input and output and branch statements

---Resume content start--- part 1 format output function printf() and format input function scanf() ex2_1.cpp    #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // Define an array a,String constants are stored continuously in the array hel ...

Added by dibyajyotig on Sun, 03 Nov 2019 21:48:07 +0200

JAVA design pattern builder pattern

1 Definition Separate the construction of a complex object from its representation, so that the same construction process can create different representations. Type: creates a class pattern. Four elements: Product class: generally, it is a more complex object, that is to say, the process of creating an object is more complex, and generally th ...

Added by drock on Sun, 03 Nov 2019 09:35:24 +0200

Python core programming (Second Edition) - Chapter 6 answers

6-1. Is there a string method or function in the string. String module that can help me identify whether a character is part of another large string? #You can use dir(sting) to view all methods and properties s='sbcdefg' s.find('cde') s.find('cde',0) s.find('cde',0,len(s)) 6-2. String identifier. M ...

Added by korion on Sun, 03 Nov 2019 08:04:45 +0200