springboot integrates the original version of websocket

Articles Catalogue HTTP Disadvantages HTTP websocket distinction websocket principle Use scenarios springboot integrates websocket Environmental preparation Client Connection Join the team Wechat Public Number theme HTTP requests are used in one of the most widely developed protocols between us and ...

Posted by McJepp on Tue, 06 Aug 2019 02:24:09 -0700

Preliminary use of swagger generated documents

In most cases, companies will require detailed interface documentation. Documentation is sometimes a headache in the case of rapid development. And swagger's automatic document generation function can help us reduce the workload. Document modification can also be modified at any time in the code, for items. An urgent project is also a good solu ...

Posted by Myrkul on Fri, 02 Aug 2019 04:17:38 -0700

Java Understanding Observer Patterns

Foreword: Recently, in learning RxJava, RxJava has been extended on the basis of observer mode. This article takes you to understand the observer mode. What is the Observer Model The observer pattern is the object's behavior pattern, also known as Publish/Subscribe, Model/View, Source/Listener or Dependents. When there is a one ...

Posted by engelsol on Thu, 01 Aug 2019 01:27:38 -0700

SpringBoot -- Core Annotations

_SpringBook projects usually have application entry classes and main methods in the entry classes. This is a standard java application entry method. @ SpringBoot Application is used for the most core annotations on the Spring main class, indicating that this is a SpringBoot project to open the capabilities of SpringBoot. _Next let's analyze the ...

Posted by EvoDan on Tue, 30 Jul 2019 22:39:01 -0700

SpringBoot - Data validation of forms

SpringBoot uses the Hibernate-validate checking framework ValidateRules @ NotBlank: Determines whether a string is null or empty (removing the first and last spaces). @ NotEmpty: Determines whether a string is null or empty. @ Length: Determine the length of a character (maximum or minimum) @ M ...

Posted by shush on Tue, 30 Jul 2019 12:12:25 -0700

Spring injects components through annotations

Component declaration Annotations such as @Component, @Configuration, @RestController, @Service, @Repository are declared on the class to indicate that the class needs to be injected into the IoC container. 1, @Configuration and @Bean @Configuration is often used in conjunction with @Bean to inject third-party components. Example: Injecting Dru ...

Posted by Oxymen on Tue, 30 Jul 2019 10:47:49 -0700

SpringBook integrates Swagge, Quartz, Transactions, logback

Swagger Integration To automatically generate interface documents in a project, only some annotations are added to the controller and controller methods and entity classes to generate a complete interface document. Adding dependencies <dependency> <groupId>io.springfox</groupId> ...

Posted by bulrush on Thu, 25 Jul 2019 23:58:55 -0700

How Ribbon customizes client and global configurations

cause The reason for this is that to implement grayscale routing based on Zuul Gateway within the company and to perform grayscale tests when online, you need to configure metadata metadata registered with Eureka by Business Micro Services and customize Ribbon's load rules to access grayscale services only.This requires customizing Ribbon's IRu ...

Posted by Jumba on Sun, 21 Jul 2019 19:48:27 -0700

Discovery Consumers in the Spring Cloud + Nacos Trilogy

1,Config of Spring Cloud+Nacos Trilogy 2,Discovery Service Registration Discovery in the Spring Cloud + Nacos Trilogy 3,Discovery Consumers in the Spring Cloud + Nacos Trilogy Edition springboot version: 2.1.6.RELEASE nacos version Nacos 1.1.0 Create a springboot project Quick Start pom refere ...

Posted by woobarb on Fri, 19 Jul 2019 23:38:04 -0700

7 Initializations for SpringBoot

background In daily development, we often need to execute a piece of logic when the SpringBoot application starts, as in the following scenarios: Get some configuration or variables for the current environment Write some initial data to the database Connect some third-party systems to confirm that the other party can work.. When implementin ...

Posted by FaT3oYCG on Tue, 02 Jul 2019 09:13:12 -0700