Spring boot (III) integration with mybatis

Preface With the release of spring boot2.0. The API interface of the project team has considered the transformation to spring boot. We always use mybatis as the underlying interface, so in this article, I specially practiced the integration of mybatis in spring boot.   1, Preparations 1,pom.xml   1 <dependencies> 2 &lt ...

Posted by ntnwwnet on Tue, 31 Mar 2020 02:57:27 -0700

Spring boot multi environment separation of resources and lib for packaging

In order to facilitate local development, testing and production packaging are occasionally involved. The configuration of each environment is different. Configuration files of multiple environments need to be configured to avoid having to modify the configuration files when packaging The default configuration file of the SpringBoot project is ...

Posted by riespies on Tue, 31 Mar 2020 02:38:28 -0700

Netflix Zuul service gateway of Spring Cloud series

What is Zuul    Zuul is the front door for all requests from devices and websites to the back end of the application. As an edge service application, zuul aims to realize dynamic routing, monitoring, flexibility and security. Zuul includes two main functions of request routing and filtering. Zuul is the open-source microservice gateway of Ne ...

Posted by doucie on Mon, 30 Mar 2020 21:01:30 -0700

Springboot returns json or xml or html according to the url suffix

Springboot is based on the url suffix Return json or xml; Returns html based on the suffix name. Author: liuren Copyright notice: This is an original article, following CC 4.0 BY-SA copyright agreement. Please attach the original source link and this notice for reprint. Initializing the Springboot project 1, pom.xml package introduced first ...

Posted by srdva59 on Mon, 30 Mar 2020 09:33:51 -0700

Ali Yun released Spring Boot new scaffolding, really fragrant

Author|Good Name Alibaba Technical Expert background I believe many people have used start.spring.io to initialize their own Spring Boot project. This tool provides developers with a wide range of optional components and can be packaged in a variety of ways, making it easy for developers to use.Recently, Alibaba's Nacos and Sentinel have also ...

Posted by clapton on Sun, 29 Mar 2020 21:14:18 -0700

9. SpringCloud Chapter 9, Upgrade, Load Balancing and Service Calls Ribbon and OpenFeign

SpringCloud Chapter VIII, Upgrade, Load Balancing and Service Calls Ribbon and OpenFeign 1. Ribbon 1. Overview SpringCloud Ribbon is a set of client load balancing tools that give NetFlex Ribbon implementations. Simply put, the main function is to provide load balancing algorithms and service calls for clients.The Ribbon client componen ...

Posted by worldcomingtoanend on Sun, 29 Mar 2020 21:12:58 -0700

Architect's Inner Work, the most complex of the 23 design patterns for visitors

Visitor Pattern is a design pattern that separates data structure from data operation.It refers to the encapsulation of operations that act on various elements in a data structure. It can define new operations that act on these elements without changing the data structure. Visitor mode is called the most complex design mode and is not used freq ...

Posted by A JM on Sun, 29 Mar 2020 21:03:38 -0700

IoC container initialization of spring framework

Analysis example Startup class Application, using ClassPathXmlApplicationContext to load xml files /** * @author jianw.li * @date 2020/3/16 11:53 PM * @Description: TODO */ public class MyApplication { private static final String CONFIG_LOCATION = "classpath:application_context.xml"; private static final String BEAN_NAME = "hello"; ...

Posted by eagleweb on Sun, 29 Mar 2020 09:48:58 -0700

Version F spring cloud 4 - Eureka registry development and client development

Source address: https://gitee.com/bingqilinpeishenme/Java-Tutorials Preface In the first three articles, the concepts related to microservices, spring cloud and service governance are introduced in large vernacular, and the development of spring cloud code starts from this article. Spring cloud project environment construction All demo s of ...

Posted by hypedupdawg on Sun, 29 Mar 2020 02:50:24 -0700

docker+springboot+rabbitmq to implement dead letter queue

1. Download and start rabbitmq docker pull hub.c.163.com/library/rabbitmq:3-management docker run -d -p 5672:5672 -p 15672:15672 --name mymq hub.c.163.com/library/rabbitmq:3-management #web access path ip:15672 #User name: guest password: Guest 2. Introduce dependency into the project of springboot <dependency> < ...

Posted by Wolverine68 on Sat, 28 Mar 2020 07:31:46 -0700