Log4j2 configuration and customization

The new requirements need to make some customized things on log4j, so the log4j2 is supplemented To configure Let's look at the traditional configuration of log4j2 <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <properties> <property name="log_path"&gt ...

Posted by fluteflute on Fri, 17 Jan 2020 03:18:16 -0800

Data source and connection pool of Mybatis principle

In Java engineering projects, we often use the Mybatis framework to add, delete, query and modify the data in the database. Its principle is to encapsulate JDBC and optimize the connection of data sources. Let's review the process of JDBC operating database. JDBC operation database When JDBC operates the database, you need to specify the co ...

Posted by The End on Thu, 16 Jan 2020 23:08:18 -0800

Django Web framework teaching notes

Catalog Article directory Catalog Query data Field lookup query predicate Modify data record Delete record Aggregate query F object Q object - Q() Native database operation method Query data The query of database needs to use manager object Call the query interface through the MyModel.ob ...

Posted by BDKR on Thu, 16 Jan 2020 07:22:00 -0800

store (mall project) Springboot+springmvc+ajax+mybatis(11)

44. Receiving address - display list - controller layer (a) Handling newly created exceptions nothing (b) Requests to be processed for design Request path / addresses/ Request parameter: HttpSession session Request method: GET Response result: jsonresult < list < address > > (c) P ...

Posted by tengkie on Thu, 16 Jan 2020 05:31:01 -0800

Flow operation of new Java 8 features

What is flow operation The Java 8 API adds a new abstraction called streaming Stream, which allows you to process data in a declarative way. Stream provides a high-level abstraction of Java set operations and expressions in an intuitive way similar to querying data from a database using SQL statements. Stream API can greatly improve ...

Posted by mathewvp on Thu, 16 Jan 2020 00:24:28 -0800

How to solve this problem?

How to solve this problem? What is' IndexDB '? What is homology strategy? What is cross domain? How to solve this problem? jsonp node backend code Native implementation (add script tag) $.ajax implementation vue is implemented by vue jsonp Cross domain resource sharing (CORS) node backend code Na ...

Posted by stupid girl! on Wed, 15 Jan 2020 23:32:52 -0800

EMQ X plug-in persistence series MySQL MQTT data store

In this paper, the actual example in CentOS 7.2 is used to illustrate how to store the relevant MQTT data through MySQL MySQL is a traditional relational database product. Its open architecture makes users highly selective. With the gradual maturity of technology, MySQL supports more and more functions, ...

Posted by bob on Wed, 15 Jan 2020 01:36:11 -0800

18 MySQL middleware proxysql realizes mysql read-write separation

1. The way of separating read from write in MySQL There are several ways for mysql to achieve read-write separation: The program modifies mysql operation, communicates with database directly, realizes load balance in a simple and quick way with separation of reading and writing and random way, and di ...

Posted by palace on Tue, 14 Jan 2020 21:33:23 -0800

Address book management system based on JDBC

Article directory 1. Design stage 1.1 demand analysis 1.2 function diagram of address book management system 1.3 use case diagram of address book management system 1.4 E-R diagram of address book management system 2. Database design 3. Program design 2.1function 2.1.1 design ContactPerson class 2 ...

Posted by teng84 on Tue, 14 Jan 2020 20:58:32 -0800

Java 8 Stream introduction

Introduction: The Java 8 API adds a new abstraction called Stream, which allows you to process data in a declarative way, under the java.util.stream package. Stream provides a high-level abstraction of Java set operations and expressions in an intuitive way similar to querying data from a database ...

Posted by jack5100nv on Mon, 13 Jan 2020 23:20:56 -0800