react+koa realizes message board function

Preface I use react+koa to realize the function of a message board. The content of the message can be words, pictures, expressions, videos, audio. Record and summarize here. Project address: github address Preview address: Preview address screenshot Realization The front desk uses react and ant ...

Posted on Thu, 01 Aug 2019 01:19:58 -0400 by rajmohan

High concurrency series of java - Day 19: Executor framework in JUC 1, fully grasp the related technology of java concurrency

This is the nineteenth article in the java high concurrency series. The main content of this paper Introduction to Executor Framework Introduction to Executor Introduction to Executor Service ThreadPool Executor and its case Introduce timer Scheduled Executor Service and case study Introduce the use of Excecutors class Introduction to Future I ...

Posted on Wed, 31 Jul 2019 22:28:02 -0400 by sigmon

[Java] Five Paging Ways Using MyBatis Framework

Initial preparation Create Paging Object Classes to facilitate the transfer of values between modules //PageInfo.java import lombok.Data; @Data public class PageInfo { private int pageNo; private int pageSize; } Define DAO Layer Interface import org.apache.ibatis.session.RowBounds; im ...

Posted on Wed, 31 Jul 2019 06:33:33 -0400 by Dimwhit

flume-ng-sql-source reads the database with a delay of more than 8 hours to report an error

use https://github.com/keedio/flume-ng-sql-source When this project reads the database, run.query.delay settings take too long to cause errors in java. sql. SQL Recoverable Exception. MySql defaults to automatically disconnect a connection when it is idle for more than 8 hours. This error will be re ...

Posted on Wed, 31 Jul 2019 06:31:26 -0400 by RickyD77

Java IDEA c3p0 configuration

(1) Importing jar packages Import the first and second jar packages into the libs directory, and don't forget to import the driver jar packages into the database (the third) (2) Importing configuration files Code: <?xml version="1.0" encoding="utf-8"?> <c3p0-config> <default-confi ...

Posted on Tue, 30 Jul 2019 20:22:20 -0400 by igoy

sqlaclhemy related usage

sqlalchemy related usage The biggest advantage of sqlalchemy is its clear structure and the fact that migrating databases does not cause too much redundancy. But the disadvantage is that there are no pure sql functions, and there is no pure sql convenience. But for developers, the biggest advantage of sqlalchmey is that it can read code more in ...

Posted on Tue, 30 Jul 2019 18:50:14 -0400 by jarcoal

1-Develop Shared APP (Build Guide) - Build your own server quickly

The APP installation package download link: http://www.mnif.cn/appapk/IotDevelopmentVersion/20190730/app-debug.apk Or scan for QR code download   Access to APP source code: (please read the baby's instructions) This APP is built on basic, upgrade, data and security chapters. You can only understand the source code after you have learned ...

Posted on Tue, 30 Jul 2019 14:53:02 -0400 by alohatofu

Fields and field parameters of the model

Introduction to ORM 1. Concept: ORM (Object Relational Mapping), Object Relational Mapping 2. Essence: mapping between classes and databases 3. Advantages: Developers do not need to write databases 4. Disadvantages: Developers, database skills lost Class - > SQL statement, takes time, reduces efficiency II. FIELDS 1. Common fields ...

Posted on Sun, 28 Jul 2019 10:42:26 -0400 by Hatdrawn

shiro custom realm

We know that Shiro framework provides a functional interface for information authentication and authorization, but Shiro will not help us maintain data. User information in Shiro and the corresponding rights of users need us to query from the database and then pass it to shiro's corresponding interface, so a single jdbcRealm can no longer be us ...

Posted on Sun, 28 Jul 2019 04:50:17 -0400 by Naez

This article clarifies the relationship and usage scenarios between resultType and resultMap in Mybatis

1. Summary Mybatis ORM semi-automatic mapping framework should be one of the necessary frameworks for java development engineers. Its benefits are not the focus of our discussion here. What confuses many new Java development partners is the use of resultType and resultMap. Let's talk about this today. 2.resultType and rsultMap Next, let's talk ...

Posted on Sat, 27 Jul 2019 11:50:36 -0400 by pocobueno1388