Spring cloud bus auto refresh configuration

Problems solved To solve the problem that the project needs to be restarted after the configuration file changes After changing the configuration file in git, push the configuration to the corresponding project to complete the configuration update without restarting Framework Modify the archite ...

Posted by vasoftwaresolutions on Tue, 11 Feb 2020 06:25:18 -0800

SpringBoot+Security dynamic configuration permission

Preface In today's web development, the authentication of security rights has always played an important role, so Spring has also produced its own security module, but this is a relatively heavy framework, configuration is quite cumbersome. Later, shiro, a lightweight security framework, emerged. The ...

Posted by spaze on Tue, 11 Feb 2020 05:32:51 -0800

Pit log (asynchronous thread disappears abnormally & RequestContextHolder)

In a spring MVC project, we can usually use the following code to obtain the HttpServletRequest object bound to the current thread: HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest(); In the recent project development of the company, m ...

Posted by Chamza on Tue, 11 Feb 2020 04:40:19 -0800

Spring Cloud advanced Road 16: service gateway integrated circuit breaker monitoring (zuul + Hystrix Dashboard)

  Preface Last article Spring Cloud advanced Road 15: service gateway integrated circuit breaker (zuul + hystrix) In, describes how the service gateway integrates the circuit breaker. However, like other service integrated circuit breakers before, we still can't see the relevant information of circ ...

Posted by r3n on Tue, 11 Feb 2020 00:09:22 -0800

Microservice framework: building of Leyou mall project

Leyou mall project construction Learning objectives 1. Understand the e-commerce industry 1.1. Project classification 1.1.1. Traditional projects 1.1.2. Internet Project 1.2. Development of e-commerce industry 1.2.1. money scene 1.2.2. data 1.2.3. Technical characteristics 1.3. Common e-commerce ...

Posted by Sam on Mon, 10 Feb 2020 22:10:48 -0800

Initial experience of XXL job distributed task scheduling

brief introduction XXL-JOB Is a lightweight distributed task scheduling platform, its core design goal is to develop quickly, learn simple, lightweight, easy to expand. Open source code and access to a number of companies online product line, out of the box. The official documents are very complete, so there is no need to elaborate. This paper ...

Posted by jonah on Mon, 10 Feb 2020 08:24:36 -0800

Spring security failed to properly catch UsernameNotFoundException exception

Preface In Web application development, security has always been a very important aspect. In the huge spring ecosystem, the authority verification framework is also very perfect. Among them, spring security is very easy to use. Today, I'd like to record a spring security related problem encountered in development. Problem description When using ...

Posted by V-Man on Mon, 10 Feb 2020 08:07:01 -0800

SSM integration Spring+SpringMVC+Mybatis

Chapter 1: building an integrated environment 1. Build an integrated environment Integration Description: there are many ways to integrate SSM. We will choose XML + annotation The idea of integration Build an integrated environment first First, set up the Spring configuration Using Spring to ...

Posted by Admiral S3 on Mon, 10 Feb 2020 07:44:49 -0800

Alibaba cloud SMS out of the box

brief introduction Use SpringBoot to automatically assemble and simplify the docking of Alibaba cloud SMS. A small tool, welcome to use and Star support, if you encounter problems during use, you can raise Issue, I will try my best to improve the Starter. Version basis aliyun-java-sdk-core:4.1.0 How to use Maven <dependency> <grou ...

Posted by daddymac on Mon, 10 Feb 2020 07:06:34 -0800

Simple IOC container implementation

Preface This article is written to learn the execution process of the Spring IOC container. It can't fully represent the Spring IOC container, but simply implements the dependency injection and control inversion functions of the container, which can't be used in production. It can only play a certain role in understanding the Spring container. ...

Posted by ExpendableDecoy on Mon, 10 Feb 2020 05:03:49 -0800