Swagger is a tool used to describe and test restful interface. As long as some description notes of classes and methods are added when defining restful interface, a page displaying interface definition can be obtained through simple configuration, and parameter submission test interface can also be set on the page (replacing some functions of p ...
Posted on Mon, 06 Apr 2020 00:05:33 -0400 by sparc-e
As our project continues to iterate over beans, initialization can be time consuming at startup.Spring Boot allows delayed initialization of applications, that is, to initialize Spring Bean s as needed, instead of creating all Beans when Spring Boot starts.This reduces the time it takes to start the application.Delayed initializatio ...
Posted on Fri, 03 Apr 2020 03:52:25 -0400 by iamngk
1, Purpose of profile
In project development, we often use configuration files to write some public information to the configuration, such as database configuration information, port configuration information, etc.
Creating a spring boot project through IDEA will automatically generate a configuration file of application.properties. The conte ...
Posted on Thu, 02 Apr 2020 03:09:33 -0400 by Zero20two
When using springboot for development, unit testing is necessary. When you build a spring project, it will generate a test project for us. When your project starts, the test cases are carried out at the same time. When we carry out the integration test of the WEB layer, we can use the WebTestClient tool provided by spring for us, which is very ...
Posted on Mon, 30 Mar 2020 14:33:54 -0400 by nkyoung1
ssh ssm has transaction management service layer configured through applicationContext.xml, and all service methods are added with transaction operations;
It is used to ensure consistency, that is, multiple dao operations in the service method succeed or fail at the same time;
Just make a @ Transactional under springboot
Posted on Sat, 28 Mar 2020 10:51:55 -0400 by bigmichael
4.9. Use external Servlet container
Embedded Servlet content: application is made into executable jar
Advantages: simple, portable;
Disadvantages: JSP is not supported by default, and optimization and customization are more complex (using the customizer [ServerProperties, custom EmbeddedServletContainerCustomizer], write the creation factory [E ...
Posted on Sat, 28 Mar 2020 06:51:51 -0400 by vbzoom.com
4.8. Configuring an embedded Servlet container
SpringBoot defaults to Tomcat as the embedded Servlet container: version 9.0.31
4.8.1. How to customize and modify the configuration of the Servlet container
1. Modify server-related configurations (see parameters) ServerProperties Class;
server.servlet.context-path= /ep ...
Posted on Mon, 23 Mar 2020 13:06:36 -0400 by php_dev_101
Springboot is now more popular than spring because it is simple, fast and convenient. Springboot was originally designed to simplify the configuration of spring by integrating new functionality faster in development, simplifying or reducing related configurations.Springboot is based on convention over configuration.All frameworks are integrated ...
Posted on Sun, 22 Mar 2020 13:09:25 -0400 by BornForCode
This article continues with the previous one SpringBoot integrates multiple data sources, do you know? At the end of the article, I left a few questions for you to think about, and they will be announced one by one today.
How to optimize configuration
In the above integration process, Mybatis and transaction manager are also in ...
Posted on Wed, 18 Mar 2020 05:43:02 -0400 by xSN1PERxEL1TEx
Startup principle of SpringBoot
Use Spring Boot
First open IDEA to create a Spring Boot project
Select SpringInitializer and the next process is not cumbersome.
Then we opened the pom file and found that Srping Boot has a configuration dependency
Posted on Mon, 16 Mar 2020 12:44:26 -0400 by cyandi_man