How does the Spring Boot run instruction run the Spring Boot project?

Author: Shahu Wanghttps://segmentfault.com/a/1190000021687878 When learning Spring Boot for the first time, according to the official documents, after setting up a project, execute mvn spring-boot:run We can run this project. I'm curious about what this instruction does and why the class in the project that contains the main method needs to b ...

Posted by Solar on Fri, 15 May 2020 01:51:22 -0700

shiro introduction and use

1, shiro internal structure 1. Components contained in shiro shiro mainly includes Authenticator, authorizer, session manager, encryption, remember me and cache manager 2. Introduction to components of shiro Subject: the subject, which can be understood as the user interacting with the application, contains all the information of the us ...

Posted by MrSheen on Fri, 15 May 2020 01:50:42 -0700

Spring Cloud cognitive learning: the use of Zuul gateway

catalog zuul effect: Simple example: 0. Create module 1. Import dependency: 2. Add notes to the main program: 3. Configure application.yml: 4. test Configuration syntax:route Add: 💡 The previous article introduced a new component, hystrix. Hystrix is a fuse, which can be used to solve the problem of service fuse and service degradati ...

Posted by BradZynda on Fri, 15 May 2020 00:58:16 -0700

Spring Cloud cognitive learning: the use of fuse Hystrix

catalog Hystrix Service fuse and service degradation Simple use example: Deploy to service provider Deployed to service consumers Integrate feign 1. Modify Feign code 2. Modify consumers 3. Test: Hystrix Dashboard 1. Configure and start the Hystrix Dashboard 2. Modify service provider 3. Test: Add: 💡 The previous article introduc ...

Posted by amma on Fri, 15 May 2020 00:21:43 -0700

Log Series 2 - Profile Details

Catalog 1.logback Composition of configuration file 1.1 rootnode 1.2.property node 1.3.appender node 1.3.1 ch.qos.logback.core.ConsoleAppender 1.3.2 ch.qos.logback.core.FileAppender 1.3.3 ch.qos.logback.core.rolling.RollingFileAppender 1.3.4 ch.qos.logback.classic.AsyncAppender 1.3.5 rollingPolicy 2. Examples of configuration files 3 s ...

Posted by member on Thu, 14 May 2020 18:44:30 -0700

Spring boot basic combat series integration view

SpringBoot integrates freemarker 1. Add dependency: springboot is basically seamless. Basically, you only need to add the corresponding dependency, without or with a small amount of configuration Note: the creation of springboot project is not described here <dependency> <groupId>org.springframework.boot</groupId> & ...

Posted by dpearcepng on Thu, 14 May 2020 07:31:52 -0700

spring framework integration quartz

spring framework integration quartz @Scheduled Spring context support has two annotations for Scheduled tasks under spring, @ enablescheduled and @ Scheduled, which are easy to use 1. Add enableschedule where spring can scan @SpringBootApplication @MapperScan("com.hsm.quartztask.mapper") @EnableScheduling public class QuartzTaskApplication { ...

Posted by forcerecon on Thu, 14 May 2020 01:48:38 -0700

9 Best Practices for Java to handle exceptions!

Handling exceptions in Java is not an easy task. It is not only difficult for beginners to understand, even some experienced developers also need to spend a lot of time thinking about how to handle exceptions, including which exceptions need to be handled, how to handle and so on. This is also the reason why most development teams will make som ...

Posted by vonnero on Thu, 14 May 2020 01:31:20 -0700

How to integrate Shiro+JWT with Spring Boot? Here's the easiest way to teach you

brief introduction At present, most RESTful systems use JWT for authorization verification. In Spring Boot, Shiro and JWT can be used for simple permission and authentication verification. In the process of integration with Spring Boot, there are many holes. Combined with their own and common application scenarios, we developed the simplest in ...

Posted by TronB24 on Wed, 13 May 2020 06:54:44 -0700

File download - Download Excel

1. Prepare the data first. The data here is not the data directly found in the database, but a copy of the data found. The data of the two does not affect each other, so that the copied data can be modified. (1) define a method (implementation class method of service layer) of data found from database, omit the method of mapper mapping file and ...

Posted by Duey on Tue, 12 May 2020 07:10:01 -0700