Query of general mapper, such as selectByPrimaryKey, select, selectByExample, etc

Recently, there was a query using the general mapper of mybatis. Since I contacted the general mapper, I simply summarized the records so as to help later people. 1, First, put the interface code Mapper.class of mybatis general mapper: package tk.mybatis.mapper.common; import tk.mybatis.mapper.annotation.RegisterMapper; @RegisterMapper publ ...

Posted by einamiga on Sat, 20 Nov 2021 04:40:56 -0800

Spring MVC series - Introduction to spring MVC execution process and related Servlet classes

preface When sending an HTTP request, Spring MVC will perform a series of processing after receiving it, and then respond to the resource. How is the whole process handled? Execution process Core components Dispatcher servlet: front-end controller, which does not need to be developed by engineers. It is provided by the framework to uniforml ...

Posted by djrichwz on Sat, 20 Nov 2021 01:11:11 -0800

Two methods of integrating MongoDB in Spring series

MongoDB is the most popular NoSQL database, and SpringBoot is a best practice for using Spring. Today, let's talk about the two ways SpringBoot integrates MongoDB. The installation of MongoDB can be queried on the official website. The most convenient way for local development is to use Docker. 1, Preparatory work 1. Engineering generation ...

Posted by RobMs on Fri, 19 Nov 2021 18:33:00 -0800

Springboot project practice

Newly learned knowledge points (1) Get data          Obtain web page json data according to Postman (F12)   ALL    ), Stored in IDEA and formatted by Ctrl+Alt+r           Before that, you need to replace the beginning {"ret":   0   "da ...

Posted by jkatcher on Fri, 19 Nov 2021 14:56:52 -0800

SpringBoot 2.X MongoTemplate group aggregation query

​ ​ 1 Summary How does MongoDB implement aggregate queries? Group query? Group paging query? User defined time interval query? Time format conversion query? Don't panic. This article will introduce the implementation of grouping and aggregation query of various dimensions based on SpringBoot 2.X MongoTemplate, and catch all the complex qu ...

Posted by nz_mitch on Fri, 19 Nov 2021 02:33:00 -0800

The old question: how to customize the starter with one click in Spring Boot?

Spring Boot starter We know that Spring Boot greatly simplifies the initial construction and development process of the project, which are completed through the starter provided by Spring Boot. Pinda general permission system is developed based on Spring Boot, and some basic modules are starters in essence, so we need to have a comprehensive a ...

Posted by php_joe on Thu, 18 Nov 2021 22:16:52 -0800

Mybatis plus upgrade complete! What has my system been updated? What's better about mybatis plus than mybatis?

Mybatis plus upgrade complete! What has my system been updated? What's better about mybatis plus than mybatis? I've been writing about the system for nearly a month. Generally speaking, I upgraded my Mybatis to Mybatis plus, but it's not exactly like this. There are many small changes. This time, I specially wrote a blog to record the update ...

Posted by JParishy on Thu, 18 Nov 2021 20:25:28 -0800

Using springboot to do a computer mall project, the next day

User login 1 user login persistence layer Learning video address [actual combat full version of SpringBoot project] actual combat of SpringBoot+MyBatis+MySQL computer mall project_ Beep beep beep_ bilibili 1.1 planning SQL statements to be executed The SQL statement to be executed by the user login function is to query the user data accordi ...

Posted by el_quijote on Thu, 18 Nov 2021 06:57:11 -0800

[docker compose] from building an image to running a Java project with one click

Let's start with a question. How many steps does it take for a new machine to run a regular spring boot project? 1. Download and configure java environment, mysql environment and redis environment (step 6) 2. Initialize mysql database and import sql files (step 2) 3. Download the jar package and start (step 2) As like as two peas Ling Wan ...

Posted by ryochiji on Wed, 17 Nov 2021 20:19:44 -0800

Spring Boot auto configuration source code analysis

catalogue   preface Source version @What did SpringBootApplication do? @What did EnableAutoConfiguration do? summary preface Why is Spring Boot so popular? Because it's convenient, it's out of the box, but have you ever thought about why it's so convenient? The traditional SSM architecture configuration file needs to be written for at ...

Posted by hobojjr on Wed, 17 Nov 2021 17:51:14 -0800