JAVA-IO streaming advanced NIO

NIO Java NIO (New IO) is a new IO API introduced from Java version 1.4. NIO has the same function and purpose as the original IO, but it is used in a totally different way. NIO supports buffer oriented, channel based IO operations. NIO will read and write files in a more efficient way. Main differences ...

Added by Bill H on Tue, 16 Jun 2020 10:48:24 +0300

Spring series. AOP use

AOP introduction Using the object-oriented method can organize the code well, and also can realize code reuse in the way of inheritance. However, there will always be some duplicate code in the project, and it is not convenient to use inheritance methods to reuse and manage them, such as general log printing, transaction processing and security ...

Added by dessolator on Tue, 16 Jun 2020 05:58:28 +0300

Method of Using Redis to Count Web UV s

Article Directory Preface thinking HyperLogLog Use Redis command action Working with Java code The Principle and Feature of HyperLog Implementation Implement HyperLog using Java Summary Preface Web site UV refers to the amount of Unique Visitor visited by independent users of a Web site, that ...

Added by BlueSkyIS on Tue, 16 Jun 2020 03:56:18 +0300

Summary of method parameter modification in java

catalog Overall code String and basic type Object, container class, array summary Overall code package test.t05new; import java.util.ArrayList; import java.util.Arrays; public class Test9 { public static void main(String[] args){ //test String String str = "value"; ...

Added by eddjc on Mon, 15 Jun 2020 10:56:52 +0300

Using maven to create spring project registration bean, running successfully

1: Project creation and configuration 1. 2 if your maven warehouse is not under the default.. / user / directory, modify the settings settings, and then pom.xml Add spring dependency in. Note that you need to re-enter it even if it is not reported as red after adding       3. Create a ...

Added by Hellusius on Mon, 15 Jun 2020 08:56:53 +0300

Summary of WebService learning -- using JDK to develop webservice

Summary of WebService learning (2) -- using JDK to develop webservice 1, Development means of WebService When using Java to develop web services, you can use the following two development methods 1. Development with JDK (version 1.6 and above) 2. Develop with CXF framework (in work) 2, Using JDK to develop WebService 2.1 develop WebService s ...

Added by po on Mon, 15 Jun 2020 07:24:40 +0300

Java ticket selling task_ Detailed implementation of multithreading

Java ticket selling task_ Detailed implementation of multithreading Title Review: the Ministry of Railways has issued a ticket sales task, which requires 1000 tickets to be sold and three windows to be sold. Please write a multi-threaded program to simulate this effect. i. window 001 is selling ticket 1000 ii. Window 001 is selling ticket ...

Added by JustLikeIcarus on Sun, 14 Jun 2020 11:38:42 +0300

java Basics - day09_ Byte stream, character stream

Article catalog 02_IO overview (concept & classification) 03_ Everything is byte 04_ Byte output stream_ OutputStream class & introduction to fileoutputstream class 05_ Byte output stream writes data to file 06_ The principle of file storage and notepad opening 07_ The method of writing multi ...

Added by jiggaman15dg on Sun, 14 Jun 2020 07:51:46 +0300

Introduction to the features provided by Stream`

1. Preface Stream is a very important new feature in Java8. From this article, I will introduce each of the features Stream provides and show you how to use Stream with a simple and practical example. 2. Introduction Note that first of all, we should not confuse Java 8 Stream with Java I/O, they have little to do with each other. Simply put, S ...

Added by sankaty on Sat, 13 Jun 2020 23:19:52 +0300

Kafka Java client use

Article catalog 1. Common configuration 2. kafka-clients 2.1 producers 2.2 consumers 2.3 multithreading 1. Common configuration producer to configure describe type Default bootstrap.servers It is used to establish the connection with kafka cluster and only affects the hosts used for init ...

Added by Gmans on Sat, 13 Jun 2020 07:34:03 +0300