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

MVC development mode and the use of Smarty template engine

Linux global installation composer Switch the directory to the / usr/local/bin / directory cd /usr/local/bin/ Download composer in bin directory curl -sS https://getcomposer.org/installer | php View composer through composer.phar -v Change to Chinese image composer.phar config -g repo.packagist composer https://packagist.phpcompo ...

Posted by pbs on Thu, 16 Jan 2020 00:22:31 -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

Example of using redis in spring boot

1. Start by creating a spring boot project. See the following links for a way to create a spring boot project:  https://blog.csdn.net/liutong123987/article/details/79385513 2. Add the following configuration to the pom.xml file that you just created the project <dependency> <groupId>org.springframework.boot ...

Posted by splitinfo on Wed, 15 Jan 2020 08:07:13 -0800

Django framework: design model

1. Design model We used to operate the database by writing sql statements. Can we operate the database without writing sql statements? Of course, it's time to use the ORM framework. 1.1 ORM framework O is object, which means class object, R is relation, translated into Chinese is relation, which means data table in relational database, M is map ...

Posted by pocobueno1388 on Wed, 15 Jan 2020 03:06:21 -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

How do beanautils copy lists?

Background We may often transform data between DO, Model, VO layer data: Entity corresponds to the data structure of persistence layer (generally the mapping model of database table); The Model corresponds to the data structure of the business layer; VO is the data structure that the Controller interacts with the client. For example ...

Posted by smook on Wed, 15 Jan 2020 00:22:10 -0800

Getting started with Spring Boot Security

1, Spring Boot Security integrates OAuth2 to design security API services OAuth is an open network standard about authorization, which is widely used all over the world. The current version is version 2.0. This article focuses on the implementation of OAuth2 by Spring Boot project. If you don't know ...

Posted by sovtek on Tue, 14 Jan 2020 23:24:43 -0800

Analysis of Shiro security framework

Shiro function introduction The following describes the meaning of each function point: Authentication: authentication / login, to verify whether the user has the corresponding identity; Authorization: authorization, that is, permission verification, to verify whether an authenticated user has a cert ...

Posted by rednaxel on Tue, 14 Jan 2020 22:12:51 -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