Love! Share a spring boot based API, restful API project seed (skeleton)

Preface Recently, I have used Spring Boot with MyBatis, general Mapper plug-in and PageHelper paging plug-in to do several small and medium-sized API projects. I feel that it is very comfortable to develop this project with this set of framework and tools, and the team's response is also good. In the process of project construction and develop ...

Posted by northk on Tue, 05 May 2020 03:08:29 -0700

Spring integrates MyBatis bulk insertion

The for loop has been used for single insertion before. When the traffic volume increases to tens of thousands, a Connection is null error will be reported. This is the first time I have encountered this business scenario. Record the following. If I know more, I will continue to update this article. Combined posts: ...

Posted by dwfait on Mon, 04 May 2020 08:33:47 -0700

Using mybatis plus 3.1.2 and Druid 1.1.20 invalidates the serialization and deserialization of localdateformat to a custom date format string

Time record April 21, 2020 Preface       At present, the project reconstruction adopts springboot2.1.13 to integrate mybatis-plus3.1.2 and druid connection pool 1.1.20. When the response body json result set and the request body json result set are returned in the controller controller controller, both serialization and dese ...

Posted by dnice on Mon, 20 Apr 2020 21:29:42 -0700

Knowledge point ③: druid configuration and use in Spring Boot

Spring Boot druid configuration rely on Add druid dependency to Spring Boot project <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>${druid.version}</version> </dependency> To configure spring.datasource.url= spring.datasource.username= spring.datasour ...

Posted by madd_maxx on Sun, 05 Apr 2020 18:53:31 -0700

Introduction to using JDBC template in Spring

Spring provides a powerful template class -- JDBC template to simplify JDBC operations. The data source DataSource object and the template JDBC template object can be defined in the configuration file in the form of Bean, giving full play to the power of dependency injection.   Case: use JDBC template to query all books 1. Introduce jar package ...

Posted by Loafin on Fri, 03 Apr 2020 01:06:22 -0700

Spring boot (III) integration with mybatis

Preface With the release of spring boot2.0. The API interface of the project team has considered the transformation to spring boot. We always use mybatis as the underlying interface, so in this article, I specially practiced the integration of mybatis in spring boot.   1, Preparations 1,pom.xml   1 <dependencies> 2 &lt ...

Posted by ntnwwnet on Tue, 31 Mar 2020 02:57:27 -0700

Spring boot integrates mybatis plus multi data source Druid monitoring, Atomikos deals with transactions, cross database and linked table query

Spring boot integrates mybatis plus (2) multi data source Druid monitoring, Atomikos deals with transactions, cross database and linked table query In the previous chapter, I used springboot project to integrate mp, mp basic use, code generator use, Druid data monitoring, etc., but only for single dat ...

Posted by joshbb on Thu, 05 Mar 2020 01:36:39 -0800

Springboot web construction yml module annotation of Java framework

SpringBoot Spring Boot is a one-stop framework for integrating all application frameworks, simplifying the development of spring applications. It is a runtime application monitoring framework with more conventions than configurations, less complexity and simplicity, and ready to use out of the box, quasi production environment To quickly build ...

Posted by ngng on Thu, 05 Mar 2020 01:07:52 -0800

Spring boot 2.0.3 integrated druid data source and monitoring

I. Druid Druid is the best database connection pool in the Java language, and also the open source project of Alibaba. Druid is a database connection pool developed by Alibaba called monitoring. In terms of function, performance and scalability, Druid is superior to other database connection pools, including DBCP, C3P0, BoneCP, ...

Posted by Alffallen on Sat, 15 Feb 2020 11:20:50 -0800

Simple login case

preparation: Import the required jar package, import it into the lib package under the web directory and WEB-INF directory, and add it into the module The following picture:Configuration database file druid.properties driverClassName=com.mysql.cj.jdbc.Driver url=jdbc:mysql:///Day14 you can create your o ...

Posted by Lukey on Sun, 09 Feb 2020 07:52:08 -0800