Enable FeignClients for Feign Source Analysis

    springcloud-openfeign-core-2.1.1.release. When using feign in spring cloud, List-1 below, the name of the FeignClient is the service name, which automatically gets the physical address from Eureka.     List-1 @FeignClient(name="UserProvider") public interface UserProvider { ... } How does this work in Springcloud? Starting with @Ena ...

Posted on Mon, 07 Oct 2019 09:17:34 -0700 by aneesme

Spring Boot Cache Actual Redis

Spring boot uses SimpleCacheConfiguration by default, even using Concurrent MapCache Manager to implement caching. But switching to other cache implementations is also simple. The following is the use of redis as a cache: pom file Introducing corresponding jar packages into pom <dependencies> <dependency> <groupId>org.sprin ...

Posted on Mon, 07 Oct 2019 08:41:03 -0700 by novice_php

Task scheduling: Quartz

1. Quartz example public class JobTest implements Job { /** * Specific tasks * * @param jobExecutionContext Save some information about the job runtime */ @Override public void execute(JobExecutionContext jobExecutionContext) { //Reference to scheduler to exe ...

Posted on Mon, 07 Oct 2019 05:50:14 -0700 by Natty_Dreadlock

springboot integrates pits of elastic search-rest-high-level-client

I used Elastic Search 7.2.0 and tried to climb the pit because the elastic search-rest-high-level-client end was recommended on the official website for integration in spring boot. First, introduce the configuration file of the official network directly. <dependency> <groupId>org.elasticsearch.client</groupId> ...

Posted on Mon, 07 Oct 2019 03:20:21 -0700 by Pyrite

Eight Ways to Create Threads in the Series of Dead java Threads

(mobile phone horizontal screen source code is more convenient) problem (1) What are the ways to create threads? (2) what scenarios do they have? brief introduction Creating threads is the most basic operation in multithreaded programming. Tong Ge summed up that there are probably 8 ways to create threads. Do you know? Inherit the Thread class ...

Posted on Mon, 07 Oct 2019 01:47:39 -0700 by pyr

Custom Implementation of Spring Security User Authentication Success and Failure

[1] Spring boot Security OAuth2 user login failure event publishing and monitoring [two] Source Code Analysis of Spring Security User Authentication Success and Failure The last article explained the whole process of issuing successful or failed user authentication events., This article explains the im ...

Posted on Sun, 06 Oct 2019 14:19:14 -0700 by davey_b_

Spring Cloud Learning: Creation of config client project

I. Introduction We learned how to create a configuration center service project and use url to request the return result. Now we learn how to build a config client project and get the content information of the specified file on github. Create config-client project 1. Dependency Introduction < ...

Posted on Sun, 06 Oct 2019 09:24:59 -0700 by awared

Web Application Stack Travel-Spring Distributed Session

1. Implementation of Distributed Session with Edits In the framework of micro-service, we need to support distributed Session. Distributed Session can be implemented by Redis or database. This paper introduces the implementation of Redis. II. Installation of Redis Download address: https://github.com/MSOpenTech... Select the appropriate vers ...

Posted on Sun, 06 Oct 2019 07:15:07 -0700 by EagerWolf

A'small test'on data length in mysql

When I tested insert method today, I found some mistakes: Looks like my sql is okay: ==> Preparing: INSERT INTO user(user_id,username,password,age,gender,phone,QQ,email,portrait,authority,status,integral) VALUE(?,?,?,?,?,?,?,?,?,?,?,?) ==> Parameters: 359522221443518464 (Long), Coconut Milk S ...

Posted on Sun, 06 Oct 2019 03:41:24 -0700 by njwan

SpringBoot+MQ+Redis+BootStrap spike system project framework construction

Project address: https://github.com/wannengdek/spring-boot-seckill If the project is helpful to you, please help light up the small one. Project introduction To achieve the spike request, can resist the live high concurrent spike website. How to solve it? Page optimization Page caching, URL ca ...

Posted on Sat, 05 Oct 2019 17:57:20 -0700 by arion279