SpringBoot adds mybatis plus and configures dual data sources

MyBatis plus (MP for short) is an enhancement tool of MyBatis. Based on MyBatis, only enhancements are made and no changes are made to simplify development and improve efficiency. Mybatis plus official website address 1. Create sb project 2. Add mybatis plus dependency <!-- Omission above sb This is web Project dependence -- ...

Posted on Fri, 08 Nov 2019 14:34:36 -0500 by Romeo20

spring cloud microservice architecture b2b2c e-commerce - common service project construction process

We will analyze the whole project of common service, record the whole construction process, and let more people to learn. First, before building the common service of spring cloud, we need to prepare the following technologies: Maven (project construction), Spring Boot, Spring Cloud, microservice concept, decentralization idea, distribution, et ...

Posted on Wed, 06 Nov 2019 09:59:46 -0500 by dirty_n4ppy

springBoot rapid integration Druid

brief introduction Druid is a database connection pool. Druid is currently the best database connection pool. Druid is a database connection pool developed by Alibaba called monitoring. springBoot rapid integration druid I. introducing druid dependency into pom files <!--Alibaba database connection pool --> & ...

Posted on Mon, 04 Nov 2019 17:04:18 -0500 by Jude

Spring Boot 2 series of tutorials Spring Boot integrates JdbcTemplate

In the Java field, there are several common schemes for data persistence, including Spring's own JdbcTemplate, MyBatis, and JPA. Among these schemes, the simplest one is Spring's own JdbcTemplate. Although this is not as convenient as MyBatis, it is much stronger than the original Jdbc. It is not as powerful as MyBatis, of course It also means ...

Posted on Sun, 03 Nov 2019 21:20:37 -0500 by iankent

The separation of reading and writing based on springboot+mybatis+Sharding jdbc

I took the time to do Sharding jdbc in the past two days. In view of the fact that this part is also used in the current project (not by me), as a slag man who is obsessed with technology, how can he ignore its existence and have to do it by himself? Start up ~ Project building 1. Create a new spring boot project and add dependency <depe ...

Posted on Wed, 30 Oct 2019 14:33:10 -0400 by rockinaway

SpringBoot take off series - data access

I. Preface We have learned some basic development processes. The most important step is how to interact with the database. After all, without data, it is equivalent to doing nothing. In this paper, we will learn how to use springboot to integrate jdbc, mybatis, jpa and other commonly used database persistence technologies. II. Integrate jdbc ...

Posted on Tue, 29 Oct 2019 03:44:50 -0400 by leszczu

SpringBoot: SpringBoot integrates mybatis plus

Although the version of this section only uses the basic features, it can satisfy most of the additions, deletions, modifications and queries. I. environmental preparationSpringBoot 1.5.10.RELEASEMybatis-Plus 2.1.9Official address of mybatis plus: http://mp.baomidou.com/ pom dependency. For convenience, post it all: <project xmlns="http ...

Posted on Mon, 28 Oct 2019 04:43:12 -0400 by Lambneck

How Druid automatically logs in

First of all, why would you like to log in automatically? It must have a password, otherwise other people can directly access the project address + "/ druid", which is not safe; Don't want to log in twice (don't explain); Implementation ideas Menu configuration path toDruid; After jumping to the page, ajax triggers the doduid.json ...

Posted on Fri, 25 Oct 2019 16:44:53 -0400 by synking

Build SpringBoot - build project, configure data source

Build a SpringBoot (I) build project and configure data sources Create or download a pure SpringBoot Demo https://start.spring.io custom create Download IDE creation Modify configuration Startup Test Configure mybatisPlus Configure multiple data source files Configure MyBatisPlus Create or d ...

Posted on Thu, 24 Oct 2019 06:43:18 -0400 by drak

Java EE basic development process and database connection pool Druid

I. Basic development process of the companya. understand the demand information (fuzzy)The demand is not what others tell you, but what you dig out.Pre sales engineer (knowledge of the industry): poor programming, but a little understanding of the code, which requires a high level of comprehensive ability.b. Product Manager:Sort out the require ...

Posted on Tue, 22 Oct 2019 08:48:28 -0400 by brokencode