Step by step teach you SSM integration swagger

First: What is swagger? swagger is a very useful framework for writing API documents. Other self-owned Baidu Second: ssm integration swagger? 1: Introduce dependencies in maven's pom file: (Note version, otherwise tomcat will not start properly) <!-- Introduce swagger --> <!--springfox The core of jar package --> &l ...

Posted by abasel on Sat, 26 Jan 2019 00:57:14 -0800

Kafka-Kafka-Java extension query specifies all consumer-group s of topic

Reference article: https://www.bbsmax.com/A/n2d9bqDvzD/   The corresponding Kafka version: kafka_2.12-2.0.0.jar, namely scala 2.12, kafka 2.0.0 version.   Note the kafka version and recommend 1.0.0 + version. We usually use the following way to query the group.id of all consumption:   kafka-consumer-groups.sh --bootstra ...

Posted by speckledapple on Fri, 25 Jan 2019 15:21:13 -0800

springboot supports spring security custom database queries

This article will introduce how to use Spring Security to control security in Spring Boot. The data of privilege control are queried by database. 1. background Spring Security mainly adds filters before accessing. The main functions of the filters are accessing authentication manager and accessDecision Manager (which resources of the system ca ...

Posted by skeetley on Fri, 25 Jan 2019 13:36:13 -0800

4.Spring Cloud Initial Acquaintance - --- Feign Load Balancing

Preface: In the last section, we learned about the use of ribbon. We learned that ribbon is a client load balancing mechanism. And what we're going to talk about today is Feign, which is also a client load balancing mechanism. In other words, Feign encapsulates ribbon's load balancing and implements Interface-oriented call service programming t ...

Posted by Randomizer on Thu, 24 Jan 2019 21:09:15 -0800

idea writes WordCount program under windows and uploads it to hadoop cluster by jar package (fool version)

Typically, programs are programmed in IDE, then packaged as jar packages, and submitted to the cluster. The most commonly used method is to create a Maven project to manage the dependencies of jar packages using Maven. 1. Generating jar packages for WordCount 1. Open IDEA, File New Project Maven Next Fill in Groupld and Artif ...

Posted by kcgame on Thu, 24 Jan 2019 19:45:14 -0800

5.Spring Cloud's First Acquaintance--Hystrix Fuse

Preface: 1. Introduction to Hystrix In a distributed system, many dependencies inevitably fail to invoke, such as timeouts, exceptions, and so on. How to ensure that the whole service fails when a dependency fails is what Hystrix needs to do. Hystrix provides functions such as fuse, isolation, Fallback, cache, monitoring and so on. It can ensu ...

Posted by mrdonrule on Thu, 24 Jan 2019 14:48:13 -0800

6. First acquaintance of Spring Cloud - --- Zool routing

Preface: In the production environment, it is impossible for us to leak out the true information of each service, because it is too unsafe. We will choose to use the routing agent to forward the real service information. Create a new Zool: 1. Adding dependencies <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache ...

Posted by jengle52 on Thu, 24 Jan 2019 14:33:15 -0800

Storm Learning-Cluster Submission Topology

1. Write a word-count case. Some of the introductions have been introduced in the code comments. There is no extra space to write about the use of storm. The code is as follows:1. Write a spout to generate a sentence, as follows /** * @Auther: 18030501 * @Date: 2018/10/24 14:25 * @Description: Data stream generator * * sp ...

Posted by Popgun on Thu, 24 Jan 2019 02:12:15 -0800

Spring boot integration freemarker of Spring Cloud 2.x series

Construction of Multi-Version Library Environment for SVN What is OAuth 2.0? That's enough to read this article. Front-end Java Python and other resources aggregation and release The page rendering tool in spring boot is thymeleaf. freemarker, a template engine, is also widely used. 1. Spring MVC represents view layer components in ...

Posted by BDabrowski on Tue, 22 Jan 2019 17:03:13 -0800

springboot(2.1.0.RELEASE) series The first restful interface main method starts the jar package to start the mvn boot

springboot official document https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#_working_with_spring_boot maven dependence spring-boot-starter-parent <?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="htt ...

Posted by matbennett on Tue, 22 Jan 2019 12:21:13 -0800