SpringBoot core ① - getting started
Based on the compilation of teacher Lei Fengyang's tutorial
brief introduction
A framework to simplify Spring application development;A large integration of the whole Spring technology stack;One stop solution developed by J2EE;
Baidu Encyclopedia
advantage
Quickly create independent Spring projects and integ ...
Posted by morris520 on Mon, 16 May 2022 12:06:29 +0300
AopLog is a logging toolkit based on Spring Aop and ThreadLocal to intercept and process request method content logs.
Scenario:
At present, most of the methods of using Spring Aop to intercept parameter logs are basically the same. I don't want to write such Aop interception and processing log code for every project in the future, or even code ...
Posted by quick5pnt0 on Mon, 16 May 2022 08:45:34 +0300
It is always necessary to generate various reports in work, which is very troublesome. Recently, I found a UReport2, which is said to be able to realize complex Chinese style reports. I'm a little excited...
1. Create a new springboot project
1.1 pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<arti ...
Posted by skoobi on Sun, 15 May 2022 22:28:19 +0300
Data
catalogue
Data
1. Configuration file
2. Test use
3. CRUD
4. Druid
1. Import dependency
2. Specify the data source and configure Druid
3. Bind Druid to spring datasource
4. Enable background monitoring
5. Set the Filter for background monitoring
5. MyBatis
1. Import dependency
2. Write entity class
3. Write Dao layer
4. Integrate Myb ...
Posted by ltoso on Sun, 15 May 2022 14:20:01 +0300
Source code of this article: Gitee point here
Introduction (from Official website)
MyBatis-Plus (MP) is a MyBatis On the basis of MyBatis, the enhancement tool is only enhanced without change, and is born to simplify development and improve efficiency.
characteristic
No invasion: it is only enhanced without change, and its introduction w ...
Posted by pieai on Sun, 15 May 2022 12:45:43 +0300
Apply for QQ Internet Login
Document address: [QQ login] OAuth2.0 development document.
Apply for an application address Precautions:
Add a QQ login button on the homepage of the website (how to add it will be explained below)
The website information is consistent with the record information
model
This article uses the server-sid ...
Posted by rrijnders on Sun, 15 May 2022 10:42:06 +0300
@EnableDubbo
@SpringBootApplication
@MapperScan(basePackages = "com.xiaoze.consumer.dao")
public class DubboConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(DubboConsumerApplication.class, args);
}
}
This is a very common way to scan the Dao layer path and register the interface class of ...
Posted by doberman on Sun, 15 May 2022 05:48:09 +0300
1. Pain points of mybatis
We know that MyBatis is a persistence layer framework based on java. It encapsulates jdbc internally, which greatly improves our development efficiency.
However, there are many pain points in developing with Mybatis:
Each Dao interface needs to define a bunch of addition, deletion, modification and query methods ...
Posted by greenber on Sun, 15 May 2022 00:18:14 +0300
Operating environment:
Development tools: IDEA /Eclipse Database: mysql5 seven Application service: Tomcat7/Tomcat8 Using the framework springboot+vue
Project introduction
For the design of the ordering platform website, the system development mainly adopts java language technology and applies MySQL database to complete data storage in the d ...
Posted by drums on Sat, 14 May 2022 22:16:22 +0300