SpringBoot integrated Swagger ultimate, madness

Project integration Swagger Learning objectives: Understand the concept and function of Swagger Master the integration of Swagger in the project and automatically generate API documents About Swagger Front and rear end separation Front end - > front end control layer, view layer Backend - > backend control layer, service la ...

Added by trink on Sat, 05 Feb 2022 20:28:54 +0200

Message middleware RabbitMQ -- message sending and receiving method

Working principle of rabbitmq Explanation: Producer: publishes messages to the switch (Exchange) in RabbitMQExchange: establishes a connection with the producer and receives messages from the producer. On the one hand, it receives messages from the producer, on the other hand, it pushes messages to the queue. The switch must know exactl ...

Added by vinaip on Sat, 05 Feb 2022 07:24:35 +0200

springBoot+ShardingJDBC to Separate Repository from Table and Read from Write

Code Address Sharding_ Sphere_ Demo: Getting started with shardingJDBC Introduction to ShardingSphere ShardingSphere is an application framework that originated within Dangdang. Born in Dandang in 2015, it was originally called ShardingJDBC. In 2016, Zhang Liang, one of the main developers, brought to Jingdong Department of Mathematics, and ...

Added by nou on Fri, 04 Feb 2022 19:39:52 +0200

Spring boot + Vue deployed on nginx server (linux) -- full version

In the front and back-end separate development of springboot+vue, how to release the project to the server of centos (or other linux version) system after the project is developed? Due to the lack of complete information on the Internet, I specially write this blog to record my deployment process in recent days. premise Install spring boo ...

Added by dshevnock on Fri, 04 Feb 2022 12:09:37 +0200

Use Springboot + Thymeleaf+Mybatis to realize the addition, deletion, modification and paging query of Mysql database

Article catalogue I Create a spring project using IDEA II Establish project structure III Create database IV Import pom dependencies V Writing pojo entity classes Vi Write dao layer VII Write service layer VIII Write controller layer IX Write usermapper XML Mapping File X Write yml configuration information Xi Write front page XII ...

Added by bouton on Fri, 04 Feb 2022 09:56:32 +0200

01 Nacos unified configuration management

Nacos implements configuration management ① Add profile in Nacos ② Introducing the config dependency of nacos into microservices ③ Add a bootstrap. In the microservice YML, configure the nacos address, current environment, service name, file suffix and namespace. These determine which file to read from nacos when the program starts Add conf ...

Added by sglane on Fri, 04 Feb 2022 07:49:09 +0200

How to deploy Spring Boot application on Tomcat Server

In this section, we will learn how to deploy Spring Boot applications on Tomcat Server. It consists of three steps: Set up Spring Boot applicationCreate a Spring Boot WARDeploy WAR to Tomcat example Let's create a Maven example to deploy on Tomcat Set up Spring Boot application Step 1: open Spring Initializr http://start.spring.io. Step ...

Added by champrock on Fri, 04 Feb 2022 05:19:16 +0200

Upload and download files using the Spring Boot application

Upload and download the files using Spring Boot Application - PixelTricehttps://www.pixeltrice.com/upload-and-download-the-files-using-spring-boot-application/ If you are on the Internet, you will certainly upload or download some files, such as movies, songs or any files, such as pdf, images, etc. These are very common features of any applica ...

Added by washbucket on Fri, 04 Feb 2022 03:57:04 +0200

Spring Boot: Global exception handling

Spring Boot also provides good support for exception handling. It provides @ ControllerAdvice annotation and @ ExceptionHandler annotation. The former is used to enable global exception capture, while the latter describes which exceptions are captured and handles these captured exceptions. Test code Project structure diagram: pom.xml: &lt ...

Added by rich11 on Thu, 03 Feb 2022 20:03:33 +0200

Spring boot sorting (build environment + basic use)

Using idea to create a spring Boot project Add web dependency support <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> >Run first SpringBoot project @RestController public class First ...

Added by cachemony on Thu, 03 Feb 2022 16:21:04 +0200