Eureka service registration and discovery
Eureka can maintain the status of various Spring boot microservices. The microservice end is registered with Eureka service end. Service consumers can obtain various service addresses from Eureka. There are not many specific details. There are already many online addresses.
In order to register and discover Eureka's services, ...
Posted by quikone on Mon, 25 Nov 2019 13:30:51 -0800
Integrating spring cloud cloud service architecture - common service project construction process
We will analyze the whole project of common service, record the whole construction process, and let more people to learn.
First, before building the common service of spring cloud, we need to prepare the following technologies:
Maven (project construction), Spring Boot, Spring Cloud, microservice concept, decentralization idea, distribution, e ...
Posted by Bertholt on Mon, 25 Nov 2019 06:36:01 -0800
Spring Boot: Spring Doc Generates OpenAPI 3.0 Documents
1. Overview
The company is currently documenting the project, and documentation is critical to building the REST API.In this article, I will introduce Spring Doc, a tool that simplifies the generation and maintenance of API documents for Spring Boot 1.x and 2.x applications based on the OpenAPI 3 specification.
2. Set up springdoc-openapi
If yo ...
Posted by polybiosis on Sun, 24 Nov 2019 17:54:50 -0800
Why is it not necessary to write version number < version > when writing dependencies < dependencies > in maven configuration of some spring projects
Why do you not need to write version number when writing dependency in maven configuration of some spring projects
I. The first situation:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> ...
Posted by sherri on Sun, 24 Nov 2019 14:24:27 -0800
Spring boot integrates Spring Security and uses Demo
https://start.spring.io/ generate SpringBoot project
The pom file should be me:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0 ...
Posted by jaku78 on Sun, 24 Nov 2019 11:22:30 -0800
Handwritten MQ framework - server implementation
First, set sail
Based on the principle of from nothing to have, from having to being excellent, we plan to realize the function through web first, and then optimize it to socket.
1. Technology selection
The web framework uses the gmvc framework written before( Handwritten MVC framework (I) - start again )Message storage adopts the way of existi ...
Posted by seddonym on Sun, 24 Nov 2019 01:46:44 -0800
Spring Cloud Stream of spring cloud: message driven
Spring Cloud Stream is a framework for building message driven microservices. Based on Spring Boot, the framework integrates spring integration to connect message broker middleware (RabbitMQ, Kafka, etc.), provides personalized automatic configuration implementation, and introduces three core concepts: publish subscribe, consumption group and p ...
Posted by courtewing on Sat, 23 Nov 2019 09:56:15 -0800
Spring dependency injection method (based on xml configuration)
Preface
There are three methods of Spring dependency injection:
Property injection (setter method injection)
Constructor injection (different ways of entering parameters)
Factory method injection (static and non static methods)
Spring dependency injection principle: using Java's reflection mechanism
Note: Spring can inject external resources ...
Posted by opalelement on Fri, 22 Nov 2019 01:46:02 -0800
Gradle Core: Getting Started with Gradle, Life Cycle Exploration, Basic Scripting
After learning Groovy's core grammar, I'll move on to Gradle.
Gradle is a system building tool whose DSL is based on Groovy. Most of its functionality is achieved through plug-ins. If built-in plug-ins do not meet your needs, you can customize your own plug-ins.
Gradle Getting Started and Exploring Life Cycles
We can Reference Documents Get sta ...
Posted by Justin L H on Thu, 21 Nov 2019 18:28:09 -0800
4. Service registration & service provider
Xiaobian public address: java paradise
Source codehttps://gitee.com/hjj520/spring-cloud-2.x
1. What is a service provider
Service Provider: refers to the callee of the service (i.e. the service that provides services for other services); Service Provider, as an Eureka Client, performs service registration, renewal and offline op ...
Posted by shahryar on Thu, 21 Nov 2019 13:46:22 -0800