Asp.Net Core webApi Swagger configuration description

outlineYou can find the configuration information to enable Swagger Gen on the official website, which is also the beginning of our rapid development of ApiSo we don't need to write API documents and tests. It's ideal to be full, but some of our Get interfaces can be used when using, butWe need to do authentication when we Post. Token is a goo ...

Posted by jainsy on Wed, 19 Feb 2020 10:21:01 -0800

Python development of Chinese chess practice (with source code)

  Pygame's Chinese chess has always been fond of playing chess. When we write python, we will try it. The level of computer walking is limited and the level of computer walking is low. We need to update the computer walking in the next version. We hope that the source code can help you learn Python better. There are four files in total: ch ...

Posted by xatter on Fri, 14 Feb 2020 08:21:45 -0800

Detailed explanation of how python obtains the executed command parameters through getopt module

This article mainly introduces to you the relevant information about how python obtains the executed command parameters through getopt module. The example code is introduced in detail in this article, which has a certain reference learning value for your study or work. The friends who need it will learn ...

Posted by PHPrev on Tue, 11 Feb 2020 06:37:12 -0800

Start and call of Spring Boot

[eye] 1. A way to start Spring BootService startup class package com.npc.rest; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ImportResource; /** * Frozen * 2020-1-29 */ /** * Previously, users used three annotations to ...

Posted by blakey on Wed, 29 Jan 2020 07:39:19 -0800

Spring Boot configuration unified format Result return value

In web development, the separation of front and back development has been deeply rooted in the hearts of the people. Such a development mode is very useful for the development of elegant and beautiful web applications. I have consulted some materials on the Internet and learned to use the unified format ...

Posted by bobbybrown on Wed, 15 Jan 2020 19:52:49 -0800

Getting Started with the web Front End in Practice: Vertical and Horizontal Centering with Variable Heights and Widths of CSS, 9 Ways to Summarize

Vertical centering is a common topic in CSS and is often mentioned during interviews.So today, let's talk about nine different ways of centering. Common flex, transform, absolute, and so on.There are also grid layouts for CSS3.There are also pseudo element methods, yes, you can read them correctly:: after and:: before can also achieve centerin ...

Posted by robertf on Wed, 15 Jan 2020 08:21:15 -0800

Getting Started with the web Front End to Practice: N Scenes and N Ways for css to Center Vertically

Elements of inline or inline-* are vertically centeredThe properties padding, line-height, vertical-align can be used.There are two specific scenarios: One line vertically centered, such as a single line of text or a link In this case, vertical centering can be achieved by adding a padding value of the same size above and below the element. ...

Posted by rab on Wed, 01 Jan 2020 08:09:29 -0800

Using ksoap2 to call webservice in Android

In recent demand, Android app calls remote webservice and checks it on the Internet. In general, it uses ksoap2 for a try. At first, it is not successful. Then it uses axis used in web development last year for reference. Finally, it returns to ksoap2. After several attempts, it is finally successful. The share is as follows: ...

Posted by ICEcoffee on Mon, 23 Dec 2019 09:05:28 -0800

From the beginning of web front end to practice: HTML to PDF graphic report practice

Export PDF graphic report practice Method 1: jsPDF When using jsPDF, it should be noted that its default unit is mm, and configuration needs to be passed in when new jsPDF() const doc = new jsPDF({ unit: 'px', format: 'a4' }) This method is useless. This ghost has multiple lines of text and multiple pictures. It's killing! Method 2: w ...

Posted by fireant on Wed, 18 Dec 2019 02:19:20 -0800

Red, green or something is the most interesting

Recently, the stock market of a factory has fallen sharply. It's really green, so there are all kinds of jokes As expected, what's red and green is the eternal topic. The stock market is as deep as the sea In the web development related to financial companies, it is a common demand to show the up and d ...

Posted by the_NEWBIE_ON_THE_BLOCK on Sun, 15 Dec 2019 09:46:26 -0800