Mybatis -- input mapping in mapper.xml

6. Input mapping The type of input parameter is specified by parameterType, which can be simple type, hashmap, POJO packing type. 6.1 packaging object of POJO 6.1.1 demand To complete the comprehensive query of user information, the query conditions that need to be passed in are very complex (may include user information, other information, ...

Posted on Wed, 16 Oct 2019 10:27:58 -0700 by gentusmaximus

Java EE -- JSP development mode (model 1)

Model 1 development mode Workflow: ① browser request, JSP page receiving ② JSP interacts with JavaBean according to the request ③ JavaBean processes business and JDBC manipulates database ④ JSP returns the request result to the browser page Using model 1, design a simple landing page Create a new Java web project. The project struc ...

Posted on Wed, 16 Oct 2019 07:08:46 -0700 by Stingus

Analysis of SpringBoot source code -- Analysis of SpringBoot project startup class SpringApplication

Source version description The source code of this article is spring boot 2.1.0 build, corresponding to spring framework 5.1.0.rc1. Note: This article only combs the process as a whole, without detailed and in-depth analysis. SpringBoot entry class @SpringBootApplication public class DemoApplication { public static void main(String[] a ...

Posted on Tue, 15 Oct 2019 10:46:44 -0700 by dan7474

How to insert tens of millions of data quickly and safely

Preface Recently, there is a requirement to parse an order file, and it shows that the file can reach tens of millions of data, each data is about 20 fields, each field is separated by commas, and it needs to be stored in half an hour as far as possible. thinking 1. Estimate file size Because there are tens of millions of informing documents, a ...

Posted on Tue, 15 Oct 2019 05:19:51 -0700 by jaiswal

Mybatis Source Analysis: Environment Settings

Mybatis Environment Configuration Class Environment When initializing the Mybatis framework, we need to configure the environment element, which allows multiple elements, so that we can switch back-end storage in different environments. If you have an id attribute for the environment, the id must be unique. Otherwise, the subsequent configurat ...

Posted on Mon, 14 Oct 2019 08:48:17 -0700 by Nabster

java Foundation (30):DBUtils, Connection Pool

1. DBUtils If we only use JDBC for development, we will find that there is too much redundant code. In order to simplify JDBC development, we use a member of apache commons component: DBUtils. DBUtils is JDBC's simplified development toolkit. The project needs to import commons-dbutils-1.6.jar to use the DBUtils tool properly. 1.1 overvi ...

Posted on Sun, 13 Oct 2019 06:43:07 -0700 by mick_otoole

Mybatis generates model, dao, mapper files

Overall structure: pom file <dependencies> <!-- MyBatis generator --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.7</versio ...

Posted on Thu, 10 Oct 2019 02:48:28 -0700 by MikeSnead

Ali Open Source Data Synchronization Tool--DataX

  Ali Open Source Data Synchronization Tool--DataX What is it? : Offline Synchronization Tool for Heterogeneous Data Sources What can we do? : It can synchronize data between MySQL sqlServer Oracle Hive HBase FTP stably and efficiently.   Design ideas: Network Connection - "Star Connecti ...

Posted on Tue, 08 Oct 2019 00:14:34 -0700 by programming.name

CRUD Using spring Dependency Injection

Steps: Establishment of database tables Introducing dependency Create an entity class domain Create dao layer, create dao interface and implementation class Create service layer, create service interface and implementation class Write configuration files Test class Code example: 1. Database tables ...

Posted on Sun, 06 Oct 2019 05:37:09 -0700 by icarpenter

java database completes additions, deletions and alterations

First, the origin of the problem When beginners start to do management system, they finish it in console, give the client, then input the specific operation, and the problem arises. As long as they close the eclipse data, it will disappear, which will cause great inconvenience. Then, we start to try ...

Posted on Sun, 06 Oct 2019 03:23:04 -0700 by www.phphub.com