Two ways to get Stream stream

Two ways to get Stream stream Two ways to get Stream stream Demo01GetStream package cn.xiaoge.day21.demo02; /* java.util.stream.Stream<T>Java 1.8 is the most commonly used new stream interface Getting a flow is very simple. There are several common ways: All Collection colle ...

Posted by abolmeer on Sat, 18 Jan 2020 16:59:39 +0100

Mybatis source learning (25)-StatementHandler parsing

I. Introduction The    StatementHandler is one of the most core interfaces of Mybatis. He has completed the work related to the interaction between Mybatis and database (the interaction between Mybatis and JDBC on Statement). StatementHandler is mainly used for: Create Statement object Bind ...

Posted by robsgaming on Sat, 18 Jan 2020 07:07:33 +0100

Two week self-made scripting language - day 5 design of parser

Day 5 design parser 5.1 syntax of stone Listing 5.1 syntax definition of stone primary : "(" expr ")" | NUMBER | IDENTIFIER | STRING factor : "-" primary | primary expr : factor { OP factor } block : "{" [ statement ] { (";" | EOL) [ statement ] } "}" ...

Posted by bostonmacosx on Fri, 17 Jan 2020 15:44:27 +0100

Leyou mall 1 - project construction

You can visit Code cloud - Leyou mall To get the engineering code of Leyou mall. You can visit Baidu cloud leyouyou mall Password: ppzy to get information about Leyou mall. 1, Create parent project Maven Project to manage dependencies     GroupId: the unique identifier in the project, which corresponds to the package structure in java. Her ...

Posted by Pioden on Fri, 17 Jan 2020 14:01:24 +0100

How to integrate Dubbo and SpringBoot

1, How Dubbo integrates spring boot (1)   1) Go straight to the theme, way 1: In pom.xml, Dubbo starter dependency is introduced. In the application.properties configuration, use @ Service [expose Service] and @ Reference [Reference Service], and select the annotation method of application.properties +.   2) Create an ego interface module, wh ...

Posted by blankextacy on Fri, 17 Jan 2020 05:41:57 +0100

Using itext5 to export PDF form documents

Recently, I got a requirement, which needs to export PDF documents. There are many ways to realize it on the market. After testing and research, I decided to use itext5 to realize it. If I don't say much, I'll do what I say. 1. Dependent import <!-- https://mvnrepository.com/artifact/com.itextpdf/i ...

Posted by nuttynibbles on Thu, 16 Jan 2020 12:09:47 +0100

Spring IoC container details

Dependent processing The process of container solving dependency ApplicationContext is created and initialized through configuration metadata, which describes all bean s. Configuration metadata can be XML, java code and annotation For each bean, its dependency is expressed in the form of an attribute ...

Posted by Blaze(!) on Thu, 16 Jan 2020 11:23:43 +0100

Prove java object header biased lock, lightweight lock, heavyweight lock and their performance comparison

  1. Biased lock: the biased lock mode is used to bias the lock to a given lock thread. When this mode is set to the lower three bits, the lock may be biased toward a particular thread or "anonymous", indicating that it may be biased. When a lock is biased toward a given thread, locking an ...

Posted by nephish on Thu, 16 Jan 2020 07:51:45 +0100

Spring Boot integrates with Seata to solve distributed transaction problems

seata introduction Seata is Alibaba's open-source distributed transaction solution in 2019, which is committed to providing high-performance and easy-to-use distributed transaction services under the microservice architecture. Before the open source of Seata, the corresponding internal version of Seata played a role of distributed consistency M ...

Posted by levi_501_dehaan on Thu, 16 Jan 2020 06:42:38 +0100

java object-oriented exercise 5 method overload and deformable parameters

/* Method overload: 1 More than one method with the same name is allowed in the same class if their number of parameters or parameter types are different (Same class, same name, different parameter list) 2 Overload feature: independent of the type of return value, just look at the parameter list, the p ...

Posted by mrjameer on Thu, 16 Jan 2020 03:15:36 +0100