Idea uses the MyBatis Generator plug-in to quickly generate code

1. Add in Add the following dependencies to the pom.xml file. Note that this is a plugin <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.0</version> </plugin> 2. Write generatorConfig.xml Place th ...

Posted by Benjigga on Tue, 05 May 2020 14:01:18 -0700

Implementation of PHP+MySQL paging principle

Function introduction: including previous page, next page, first page, last page, jump page and other functions. Code message: turn complexity into simplicity, and you will be enlightened. Running screenshot:    Key steps: After the database is created, dozens of data are inserted to facilitate testing. CREATE TABLE `page` ( `ID` int(10) ...

Posted by the_damo2004 on Tue, 05 May 2020 09:30:37 -0700

Easysoole uses configuration files in *. ini format

brief introduction This article takes you through how to use ini configuration files in easysoole. Advantages and disadvantages of ini Advantages: linear, simple, concise and convenient Disadvantages: weak data configuration of complex types directory structure . ├── App │ ├── HttpController │ │ └── Productor.php │ ├── Process │ ...

Posted by Syrehn on Tue, 05 May 2020 08:35:30 -0700

Android content observer realizes the function of automatically refreshing album (gallery) after screenshots

The author has done an album application some time ago. The basic functions include querying the media library, displaying pictures in reverse chronological order, zooming in, zooming in, sliding pictures, calling albums externally, etc. interested students can confide in me. Today, only the function of automatic refresh of screenshots of album ...

Posted by squizz on Tue, 05 May 2020 05:47:25 -0700

The intersection of Excel table and database

If it is convenient, please pay attention to it. It must be closed. Thank you! Recently, I have just learned how to store the data of Excel table in the database and how to write the content of the database into the excel table. Step 1, first "reference", add reference Microsoft.Office.Interop.Excel Add t ...

Posted by awiedman on Tue, 05 May 2020 04:54:31 -0700

A Device Online Notification Scheme for Century Interconnected Azure IoT Hub

This paper describes a scheme for getting device online notifications for Century Interconnected Azure IoT Hub.   Video Introduction: You can watch the video introduction at Station B: https://www.bilibili.com/video/BV1dp4y1X7X3/ Or watch it on the author's blog: https://www.51azure.cloud/post/2020/4/30/azure-iot-hub-device-on-line-report      ...

Posted by MannyG on Tue, 05 May 2020 03:03:33 -0700

Exporting excel table with php header function

In addition to exporting tables with PHPExcel, another simple table import method that does not need to import class files is recommended: header() exports excel tables. The steps of exporting the table are encapsulated into a method for reuse. The code is as follows: 1 /** 2 * Export data to excel 3 *@param $data A two-dimensional arr ...

Posted by Valera on Mon, 04 May 2020 23:51:50 -0700

Database design and implementation of comment system

requirement analysis Generally, when we browse the website, we can often see the effect as shown in the figure below (the picture comes from CSDN) This kind of comment is nested layer by layer, and there are several replies to the comment under each comment. This kind of structure is similar to the tree structure. Users can see it at a gla ...

Posted by andco on Mon, 04 May 2020 23:32:08 -0700

The usage of Litepal and the solution of dbname is empty

The steps to use Litepal are as follows: 1. Introduce JAR package and change configuration Use Android Studio to add: dependencies { compile 'org.litepal.android:core:1.6.1' } 1.6.1 is the version number, which can be changed according to the requirements. Then configure the litepal.xml file. Generally, create ...

Posted by MSK7 on Mon, 04 May 2020 22:10:01 -0700

Hibernate, Session object, Query object and HQL

Session object 1. Introduction Session object is the object of database session, which provides the method of interaction with database session object is thread unsafe, so it cannot be used as a global variable 2. Obtaining and closing the session object How to get / create and close: //Get new session object (not commonly us ...

Posted by voyde on Mon, 04 May 2020 21:59:42 -0700