Shiro authority management framework: custom Filter implementation and troubleshooting records

Clear demand When using Shiro, the authentication failure is usually to return an error page or login page to the front-end, especially the back-end system. This mode is particularly used. But now more and more projects tend to use the way of front-end and back-end separation for development. At this time, the front-end needs to respond to the ...

Posted by HairyArse on Tue, 07 Jan 2020 07:15:13 -0800

Agent mechanism of spring boot project [1]

This is the first article to understand the Spring proxy mechanism, trying to understand how Spring implements Bean registration and proxy. This article will raise the question: will Spring register beans and create proxy objects with Jdk proxy or cglib? 1 project preparation 1.1 create a Spring Boot project Create a Spring Boot project that ...

Posted by mrfritz379 on Tue, 07 Jan 2020 03:22:55 -0800

The construction of zookeeper single machine and cluster environment

1. Preface 19 years passed pretty fast. As the first one of 20 years, I want to make a simple summary here for the previous year: seriously, 19 years passed pretty miserable. Yes, the conclusion is this sentence. After all, the sense of ceremony must still exist. Well, let's not talk about it. I hope it's better after 20 years. Save more money ...

Posted by randydg on Tue, 07 Jan 2020 02:51:34 -0800

In-depth communication with @FeignClient notes that night

Bullshit That night, I had a deep exchange with the @FeignClient comment, cool! Mainly in the technical group, I see some students asking related questions, such as: What is contextId for?Multiple Client s with the same name will fail? Then I think it's necessary to write an article to chat about the use of @FeignClient. It's not easy to write ...

Posted by vincente on Tue, 07 Jan 2020 02:11:31 -0800

SpringBoot Connect Multiple RabbitMQ Sources

In practical development, many scenarios require asynchronous processing, where RabbitMQ is required, and as the number of scenarios increases, programs may need to connect multiple RabbitMQs.SpringBoot itself provides a default configuration to quickly configure the connection to RabbitMQ, but only one RabbitMQ can be connected. When multiple ...

Posted by epp_b on Tue, 07 Jan 2020 00:29:49 -0800

Three ways to create a Bean

1, Call the default parameterless constructor to create (common) bean object: Car.java package com.zj; public class Car { private String brand; private double price; public Car(){ System.out.println("Car Object created "); } public String getBrand() { return brand; } public voi ...

Posted by dacio on Mon, 06 Jan 2020 21:16:04 -0800

Spring MVC and Mybaits integration

Integration steps Guide bag 1.spring (including spring MVC) 2.mybatis 3. Mybatis spring integration package 4. Database drive 5. Third party connection pool. Configure the web.xml file spring listener and front-end controller as well as solving the Chinese scrambling of post submission request <?xml version="1.0" e ...

Posted by mark bowen on Mon, 06 Jan 2020 19:16:00 -0800

Springboot @Autowired failed to inject problem

Special note: pay attention to the file structure WebappApplication must be at the outermost layer of the package, otherwise Spring cannot host all classes, which will cause @ Autowired to fail to inject. 1. Add a tool class to get the Bean hosted in Spring (1) tools package com.common; import org.springframework.beans.BeansException; import ...

Posted by pradee on Mon, 06 Jan 2020 13:03:54 -0800

How to implement the like function in springboot

In information projects, we often encounter the function implementation of article comment and comment. However, these functions appear frequently in projects. If you operate the database directly, you will have too much pressure on the database. How to solve this problem? redis cache The first thing we think about is to add a caching mechanis ...

Posted by djanim8 on Mon, 06 Jan 2020 10:42:02 -0800

Integration of the SpringBoot 2.x development case Srping Boot Admin

PrefaceSpring Boot Admin is a visual representation of the endpoint information provided in the Spring Boot Actuator and can send alert messages via mail, Telegram, Hipchat, and so on. IntegrateBe aware that versions must match, otherwise unexpected problems may occur. Srping Boot Admin version 2.0+ or above is recommended for multilingual swi ...

Posted by earl_dc10 on Mon, 06 Jan 2020 10:03:31 -0800