Spring Boot Tutorial - Test

1. Introduction to Application Testing Usually after we have written the code, the test of the code will be given to a dedicated tester to test. If a test runs to your job and says to you that your code seems to have a Bug, you will be unhappy. That's what I am doing anyway(viii).So to show you that your code is a bit of a good quality, we'll t ...

Posted by vinny69 on Sat, 30 May 2020 10:06:20 -0700

Spring boot 1.5.3 source code analysis (IV): Custom Conditional annotation

The book follows. I've talked about the principle of condition before. In fact, it's easy to customize a condition. You only need to implement the SpringBootCondition class, and override the com.example.demo.condition.OnLblCondition#getMatchOutcome method. Let's write a simple example: judge whether to load the bean ...

Posted by bweekly on Sat, 30 May 2020 09:07:37 -0700

Configuration file of Spring Boot configuration (configuration file, loading order, configuration principle)

configuration file Spring Boot uses a global configuration file whose name is fixed application.properties application.yml Function of configuration file: modify the default value of Spring Boot auto configuration, that is, modify the value that Spring Boot has configured for us at the bottom YAML(YAML Ain't Markup Language) Markup Language: ...

Posted by ManInBlack on Sat, 30 May 2020 02:51:32 -0700

Build the spring cloud microservice framework: VI. database persistence layer - spring datajpa

Build microservice framework (database persistence layer spring datajpa) Used to Mybatis, this time for a change, integrate spring datajpa in SQuid. Source address: Build microservice framework (database persistence layer spring datajpa) Github address: SQuid introduce I've heard of HibernateJPA before, but I've never used it. Mybatis i ...

Posted by vimukthi on Fri, 29 May 2020 04:31:05 -0700

Read this article, let you less step on the pits of ArrayList

I am a kite, the official account "ancient kite", a technical public official account not only of technology, but also a 6 slash developer who has been in the program circle for many years, and has been playing Java in the main industry, and Python and React are also playing. The Spring Cloud series has been completed and you can go ...

Posted by ntg on Thu, 28 May 2020 21:31:19 -0700

Learn from me about the design and implementation of spring boot development backend management system 8: matrxi web permission

The last article describes the idea of permission control implemented by matrix web as a whole. Let's review: First of all, the user needs to log in and fill in the user name and password. The backend receives the login request and verifies the user and password. After the verification is successful, the Token is generated according to the u ...

Posted by sparrrow on Thu, 28 May 2020 19:14:15 -0700

Spring boot integrated configuration logback-spring.xml

Using logback instead of log4j is because logback is another open source log component designed by the founder of log4j. The kernel of logback has been rewritten and its performance has been improved by more than 10 times on some key execution paths. Moreover, the logback not only improves the performance, but also reduces the initial memory lo ...

Posted by 7724 on Thu, 28 May 2020 01:53:36 -0700

Using Spring Shell to quickly develop your own command interaction window

Spring Shell Sometimes, in order to facilitate the development and testing of the server, it does not need a beautiful user interface, just use a simple command window. As follows: Here is a quick, convenient, easy-to-use and simple interactive command window development component Spring Shell Yes, it's in spring ecology again. Source address ...

Posted by AlexP on Wed, 27 May 2020 21:09:04 -0700

What is layered jar in Spring Boot 2.3

background In our actual production containerization deployment process, we often encounter the situation that the Docker image is large and the deployment and release are slow There are three main factors that affect the image size of docker: The size of the underlying mirror. Try to choose Apache as the basic image to reduce the built-in sof ...

Posted by mattr on Wed, 27 May 2020 01:43:37 -0700

Spring02_XML-based IOC

For the source code of this tutorial, please visit: tutorial_demo In the previous tutorial, we learned how to use factory mode decoupling to give the creation of objects to a custom factory class by a programmer. In this tutorial, we will learn how to use Spring's IOC to solve coupling problems. 1. What is IOC IOC: Inversion of Control, contr ...

Posted by TCovert on Sun, 24 May 2020 10:48:08 -0700