SpringBoot2.X integration integrates Dubbo

Environment installation Dubbo uses zookeeper as the registration center. You must first install zookeeper. Install zookeeper on Windows as follows: https://blog.csdn.net/qq_33316784/article/details/88563482 Install zookeeper on Linux as follows: https://www.cnblogs.com/expiator/p/9853378.html SpringBoot new project If you still don’t know how to create a new SpringBoot project, you can refer to: https://www.cnblogs.com/expiator/p/15844275.html Service providerDubbo-provider Created dubbo-provider module as a […]

[SpringBoot] SpringBoot startup source code analysis

Overview 1. SpringBoot startup process source code analysis2. Extension point source code analysis during SpringBoot startup process3. SpringBootConfiguration File Priority Analysis4. SpringBoot has built-in Tomcat to start source code analysis SpringBoot startup class: @SpringBootApplication public class MyApplication {<!– –> public static void main(String[] args) {<!– –> SpringApplication.run(MyApplication.class, args); } } public static ConfigurableApplicationContext run(Class<?>[] primarySources, […]

SpringBoot integrates Shiro

1. What is Shiro Shiro is a security framework provided by Apache. It is a permission management framework that performs authentication, authorization, password and session management. It is very powerful and easy to use; There is Spring Security in Spring, which is a permissions framework. It is too closely dependent on Spring and is not […]

# Poverty alleviation and assistance system source code based on Java-SpringBoot2.X-VUE-Antd-MyBatis-Shiro-Graduation Project

Poverty alleviation system source code based on Java-SpringBoot2.X-VUE-Antd-MyBatis-Shiro-Graduation Project Introduction SpringBoot2. System overview diagram Contact the author This is the author’s WeChat QR code. If you need the source code of this project, you can scan the code or contact the author at VX:flyCoding2. Demo address Login address: https://www.skywalking.pro/poor-assist Login account: admin Login password: 123456 […]

SpringSpringBoot log

SpringBoot log Log overview Log usage Print log Get log object Print log using log object Introduction to log framework facade mode Introduction to SLF4J framework (simple logging facade for java) Log format description Log level Classification of log levels Use of log levels Log configuration Configure log level Log persistence Configure the path and […]

[SpringBoot] Handwriting simulates the core process of SpringBoot

Dependency package Create a new project containing two modules: springboot module, representing springboot source code implementation;The user module represents the business system and uses the springboot module; Dependency packages: Spring, SpringMVC, Tomcat, etc., introduce dependencies as follows: <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>javax.servlet</groupId> […]

SpringBoot @Async: magic and pitfalls

Source: https://medium.com/ The @Async annotation is like the secret weapon for performance optimization in springboot projects. Yes, we can also manually create our own executors and thread pools, but @Async makes things simpler and more magical. The @Async annotation allows us to run code in the background, so our main thread can continue running without […]

Encapsulating EventBus in SpringBoot

Foreword EventBus is Guava’s event processing mechanism and an implementation of the observer pattern (production/consumption model). The observer mode is widely used in our daily development. For example, in the order system, changes in order status or logistics information will send APP push messages, text messages, notifications to sellers, buyers, etc. to users; in the […]

Design and implementation of like-minded dating website based on springboot

Table of Contents Preface 1. Technology stack 2. Introduction to system functions Member management Member information management Article classification management Article information management Dating forum member information 3. Core code 1. Login module 2. File upload module 3. Code encapsulation Foreword The fast-paced development of the modern economy and the constantly improving and upgrading of […]

Springboot integrates Elasticsearch

1. Introduce dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> 2. Two methods to configure ElasticSearch settings 1. Configure in application.yml spring: data: elasticsearch: cluster-nodes: localhost:9300 cluster-name: es-wyf 2. Configure using configuration classes /** * ElasticSearch client configuration */ @Configuration public class RestClientConfig extends AbstractElasticsearchConfiguration { @Override @Bean public RestHighLevelClient elasticsearchClient() { final ClientConfiguration clientConfiguration = ClientConfiguration.builder() .connectedTo(“localhost:9200”) […]