12, SpringBoot elegant integration of Spring Security

Preface As for what spring security is, there are two main functions: user authentication and authorization. That is, we often say that users can only perform other operations after logging in. If they do not log in, they will be redirected to the login interface. Some users have permission to perform an operation, while others are authorized i ...

Posted by kpasiva on Tue, 24 Dec 2019 22:17:45 -0800

Learn from me about Spring Cloud AlibabaNacos service registration and discovery

Service registration and discovery, service discovery is mainly used to achieve automatic registration and discovery of individual micro-service instances. It is the core of micro-service governance. To learn Spring Cloud Alibaba, first of all, you need to understand the service registration and discovery component in the framework, Nacos. 1. S ...

Posted by Grimloch on Tue, 24 Dec 2019 17:55:27 -0800

Adding, deleting, modifying and querying solr index by springboot

solr version: 8.x springboot version: 1.5.6 1. To prepare the springboot project, pom.xml needs to introduce the following jar package <properties>     <project.final.name>htsolr</project.final.name>     <java.version>1.8</java.version>     <project.build.sourceEncoding>UTF-8</project.build.sourceEnc ...

Posted by j007w on Tue, 24 Dec 2019 02:11:39 -0800

Feign source code learning

feign introduction Feign is a Restful client component of Java. Feign makes it easier to write Java HTTP client. Feign was inspired by Retrofit, JAXRS-2.0 and WebSocket. Feign has nearly 3K stars on github, which is a quite excellent open source component. Although it is inferior to nearly 30K stars of Retrofit, spring cloud integrates feign, w ...

Posted by jfgreco915 on Mon, 23 Dec 2019 02:05:29 -0800

Getting started with spring (3) using spring mvc

1. Create project / module New empty project:springMvcStudy New module: type Maven webapp, name mvcStudy 2. Set Sources and Resources for module Create two new folders under mvcStudy/src/main: java,resourcesOpen File/Project Structure/Project Settings/Modules, select mvcStudy, and click the Sources tabSet the java folder to Sources and the ...

Posted by Viper_4 on Sun, 22 Dec 2019 13:35:44 -0800

SpringBoot 1.5.x Integrated Quartz task scheduling framework

Quartz has different memory and database modes In memory mode, task information is saved in memory, and it will be lost during shutdown. It needs to be re executed manually. In database mode, task information is saved in database, and the focus is to support cluster RAMJobStore in memory mode and database mode JobStoreTX, RAMJobStore is suita ...

Posted by Juan Dela Cruz on Sun, 22 Dec 2019 06:37:12 -0800

Spring boot - @ controlleradvice intercepts exceptions and handles them uniformly

SpringBoot is the product of a series of problems to simplify the creation, operation, debugging and deployment of Spring applications, The feature of automatic assembly enables us to pay more attention to the business itself rather than the external XML configuration. We can easily build a WEB project by following the specification and introdu ...

Posted by lssjg on Sun, 22 Dec 2019 03:49:47 -0800

Source code analysis Dubbo service consumer startup process

Through the detailed explanation of the previous article, we know that the Dubbo service consumer label dubbo:reference will eventually create a corresponding ReferenceBean instance in the Spring container, and ReferenceBean implements the Spring life cycle interface: InitializingBean. Next, we should look at the implementation of its afterprop ...

Posted by Fari on Sun, 22 Dec 2019 02:06:53 -0800

spring02 - component registration - @ ComponentScan - auto scan components & specify scan rules

As we mentioned in the previous article, when @ Bean annotation is marked on a method, the method return value will be put into the ioc container when the ioc container is started In the development process, there are many package scanning methods. Next, we will introduce two methods: one is based on xml, the other is based on annotation. Let ...

Posted by dustinnoe on Sun, 22 Dec 2019 01:08:04 -0800

maven builds executable jar package

You can pay attention to some dry goods. Build jar package with dependency <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> ...

Posted by jkejser on Sat, 21 Dec 2019 12:07:49 -0800