SpringBoot pit avoidance guide -- building a data access layer
1, JDBC specification
1.1 introduction to JDBC
JDBC is the full name of Java Database Connectivity. Its original design intention is to provide a set of unified standards that can be applied to various databases. This set of standards needs to be observed by different database manufacturers, and provide their own implementation schemes for JD ...
Posted by silviuchingaru on Sat, 18 Dec 2021 10:07:37 +0100
Spring Boot builds a web project
1, The main features of Spring Boot are:
Create an independent Spring application to provide a very fast and widely accepted entry experience for all Spring developers Directly embedded in application servers, such as tomcat, jetty, underow, etc; There is no need to deploy the war package Provide fixed initiator dependency to simplify componen ...
Posted by vince81 on Sat, 18 Dec 2021 08:52:14 +0100
jdk1.8 new feature - termination of Stream (example demonstration of reduction)
1, Understanding of Stream
Stream is a key abstract concept for processing collections in Java 8. It can specify the operations you want to perform on collections, and can perform very complex operations such as finding, filtering and mapping data.Use the Stream API to operate on collection data, similar to database queries executed using ...
Posted by pplexr on Sat, 18 Dec 2021 08:16:03 +0100
Use AOP section to print the operation of each interface in the project
1. Foreword
AOP aspect technology, you should know, is one of the main functions of the Spring framework.
AOP aspect has a wide range of uses, one of which is to print the operation log and operation time of interface methods.
Log is very important for a project. It is not only helpful for error adjustment, but also an important data source ...
Posted by markmh84 on Sat, 18 Dec 2021 02:11:26 +0100
springboot configuration log file
Logback Manualhttp://logback.qos.ch/manual/index.html To create a new springboot project, configure the log output file logback XML to control log output through custom configuration files. Usually, we configure three log components:
<configuration scan="true" scanPeriod="2 seconds">
<!--Define the storage address of the log file- ...
Posted by golfinggod on Fri, 17 Dec 2021 16:59:46 +0100
Mybaits interceptor, purpose of interceptor, mybaits L1 cache
1.mybaits interceptor
Original design intention
In order for users to implement their own logic at some time without moving the inherent logic of Mybatis. Through the Mybatis interceptor, we can intercept the calls of some methods. We can choose to add some logic before and after the execution of these intercepted methods, or we can execut ...
Posted by thepriest on Fri, 17 Dec 2021 12:51:48 +0100
Spring boot project tuning
Project tuning overview
As a senior engineer, project tuning must be mastered. In SpringBoot projects, tuning is done mainly through configuration files and configuration of JVM parameters.
1, Modify profile
About modifying the configuration file application properties. Detailed configuration file modification document of SpringBoot project ...
Posted by blue-genie on Fri, 17 Dec 2021 03:59:15 +0100
Analyze the automatic assembly source code and understand the @ Import and other related source code (full text 3w words, super detail)
preface
When it comes to SpringBoot, we are certainly familiar with it. The automatic configuration makes it very cool for us to use in the development process. For example, the traditional mvc project needs to write a large lump in the xml file to start aop, while the SpringBoot project only needs to add the @ EnableAspectJAutoProxy an ...
Posted by kutyadog on Fri, 17 Dec 2021 03:18:33 +0100
Java project: design and implementation of luggage deposit management system in scenic spot (java+ssm+springboot)
Main technical implementation: spring, springmvc, springboot, springboot security permission control, mybatis, session, jquery, md5, bootstart JS, tomcat, interceptor, etc.
Main functions: login, user management, role authority management, menu management, department management, luggage cabinet management, user deposit management, record query ...
Posted by Squallyboy on Fri, 17 Dec 2021 00:53:20 +0100
Springboot AOP for aspect programming, upper part: explain AOP aspect technology in detail!
0. Preface
This paper is divided into two parts. The upper part is the basis of AOP aspect technology to learn the spring boot AOP aspect technology.
The lower part is the practice, which uses AOP aspect technology to create a unified login log for restful API interface.
1. Introduction to AOP section programming
There is a scenario in whic ...
Posted by Travist6983 on Thu, 16 Dec 2021 20:20:39 +0100