6, spring boot tutorial -- integrating swagger

spring boot tutorial -- integrating swagger 1, About swagger 2. How to use swagger 1. Introduce the jar package of swagger 2. Write swagger configuration class 3. Code in controller 3, Operation effect 1, About swagger Swagger is a standardized and complete framework for generating, describing ...

Posted by geetakhurana on Wed, 19 Feb 2020 02:04:24 -0800

fastDFS is built by Docker

fastDFS is built by Docker Step 1: build a docker on the ECS https://blog.csdn.net/wjyyhhxit/article/details/83582588 It's almost the same with this blog. This blog uses Centos 7 Step 2: use Docker to pull the required image docker pull morunchang/fastdfs Because I use other methods to insta ...

Posted by Rabea on Tue, 18 Feb 2020 02:24:48 -0800

Spring takes notes the next day

Spring Learning Notes 1. Implementation of AOP based on aspect annotations Step 1, Create Bean s for Objects <!-- create object --> <bean id="book" class="com.itcast.aop.Book"></bean> <bean id="myBook" class="com.itcast.aop.MyBook"></bean> Step 2: Open AOP operations ...

Posted by Smruthi on Mon, 17 Feb 2020 17:35:45 -0800

Generating REST client using Swagger CodeGen in Spring Boot

Article Directory What is an Open API specification definition file? Generate Rest Client Use in Spring Boot API Client Configuration Use Maven plugin Online Generation API Generating REST client using Swagger CodeGen in Spring Boot Swagger is a very useful API tool. We will use Swagger to expose ...

Posted by auday1982 on Mon, 17 Feb 2020 17:13:12 -0800

Spring -- Junit test tool, property injection method, annotation

1. Junit test tool Junit is a unit testing framework for Java programming language Common comments are: @BeforeClass: indicates that the method using this annotation is executed before the test class is called. This annotation can only be declared once in a test class, and the method corresponding to ...

Posted by Sanoz0r on Sun, 16 Feb 2020 23:18:51 -0800

2. Monitor mode

When you click Download Sources in the IDEA, you will get an error and cannot download sources. To solve this problem, enter in Terminal mvn dependency:resolve -Dclassifier=sources Reference: https://www.cnblogs.com/wwjj4811/p/10364580.html When the system runs to some key nodes, it will broadcast some events, and there are some listeners in ...

Posted by Develop_Sake on Sun, 16 Feb 2020 22:43:36 -0800

Spring annotation driven learning notes declarative transaction

Environment building 1. Import dependent Data source, database driver, spring JDBC module <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version> ...

Posted by bdbush on Sun, 16 Feb 2020 21:53:56 -0800

Dynamic agent, annotation, classloader learning

Record learning content Today's main learning: dynamic agent, annotation, classloader 1, Dynamic agent Role: enhance a method. There are three ways to enhance an object: 1. Inherit, override method after inheriting parent class. Advantages: simple, easy to implement, can inherit the class after rewritin ...

Posted by mizkit73 on Sun, 16 Feb 2020 02:50:18 -0800

java Foundation Start

This exercise contains points of knowledge: Identifier, keyword, comment, variable, data type, constant Basic data types: Integer type (int) Floating Point Type (float) Character type (char) Boolean type java provides a series of access controllers to set different levels of access based on class es, v ...

Posted by activeserver on Sat, 15 Feb 2020 17:23:45 -0800

Spring boot integrates WEB Development -- processing JSON return data

1. Use the default json to convert HttpessageConverter At present, JSON is the mainstream front and back end data transmission mode. In spring MVC, HttpMessageConverter is used to support the conversion of JSON, and the relevant configuration is further simplified in spring boot. pom.xml <dependency> <groupId>org.springframework.b ...

Posted by fazlionline on Sat, 15 Feb 2020 02:14:09 -0800