Second exploration of lambda expression First exploration of lambda: https://my.oschina.net/lt0314/blog/3144851 From Example 2, explore the lambda transmission. Before the Runnable creates Thread java8, package com.baigt.learn.nolambda; public class NoLambd...
Lambda expression practice leads from examples. Lambda passes Runnable. Before creating Thread java8, Thread thread=new Thread (new Runnable()) {@ Override public void run() {//do some
Introduction to the HttpClient API of Java 9. I believe that everyone who pays attention to Java 9 knows that the built-in module of Java 9 version provides Http function. Of course, it does not mean that the jdk did not support it before, so what's more about this update? Or what problems have been solved
Before learning JSHELL, make sure that jdk9 has been installed. Please refer to Java 9 installation. Why do you want to learn Jshell? To learn Jshell, you need to know its characteristics. The Read Eval Print Loop (REPL) interactive interpreter (REPL) can be used as an independent
Source code analysis @ EnableAutoConfiguration's loading and instantiation process in SpringBoot is the first step in a long march. Let's first understand what EnableAutoConfiguration is? What is the EnableAutoConfiguration annotation? where? org.spring...
SpringBoot 2.0 Series 007 -- WEB Container Details We know that two containers commonly used in Java, tomcat and jetty, are embedded in SB by default. What attributes does SB support? See ServerProperties. java is basically a general server configuration
SpringBoot 2.0 series 006 -- The annotation of the startup practice uses some mistakes. It means that many online tutorials use the SpringBootApplication annotation by default, and you can scan all beans under the startup class package using only this annotation. The official default tutorial uses @ EnableAuto
SpringBoot 2.0 series 004 - Start the actual configuration file configuration file configuration file loading process Many documents, including official documents, say that the default configuration file of SB is the file beginning with application, so why? Let's take a look at the flow chart
SpringBoot 2.0 Series 003 -- Customizing Parent By default, we use SpringBoot through the SB parent project. We have demonstrated this in previous tutorials, so we won't repeat it here. Use custom parent to manage SpringBoot project
SpringBoot 2.0 Series 002 -- Running Process Analysis SpringBoot 2.0 Series 001 -- Introduction and Related Concepts 1 Several ways to run SpringBoot 1.1 development environment, right click to configure the main method of the class to run the configuration as follows, introduce the relevant pom dependencies
We still need to correct the mistakes. Waste recycling 1 How to determine whether an object is garbage? The reference counting method adds a reference counter to an object. When the object is referenced somewhere, the value of the reference counter is+1. When the reference fails, the value is - 1 This method cannot solve
Question Recently, a group friend threw out an interview question, the second question in the figure below, about the execution result of a for loop. What is the execution result of his code? Code reproduction of the following example and the interview question above the same, is a very simple example
Introduce the instruction function of the Java virtual machine, and at least be able to read the meaning of the bytecode instructions generated by the java code. 1. Overview The Java virtual machine adopts a stack based architecture, and its instructions are composed of opcodes and operands. Opcode: a byte length (0~255), which means that the operation of the instruction set
An arrangement of data in computer memory by a data structure. Common data structures Data structures Advantages and disadvantages Array insertion is fast (according to subscripts) Search is slow, Delete is slow, Fixed size ordered array is faster than unordered array search Delete and insert
No more
Loading failed, please refresh the page
Load more