Before you get to know Bio,nio,aio, let's look at several concepts of IO:1. SynchronizationThe user process triggers an IO operation and waits or polls to see if the IO operation is ready, for example by taking a bank card to withdraw money from the
A few of the terms of a generic type:For List and listEntire list generic typeT- type parameters in listEntire list parameterized typeUser Actual type parameters in list<> for typeof Note the place: Parameterized types have no inheritance
Required Tools MyEclipse, Jar2exe (attached, direct decompression can be linked with: https://pan.baidu.com/s/1qYPRgXu password: WBVA)1. Export the Java project as a. jar PackageRight-click the project name, select ExportSelect the runnable JAR file
The use of Jmap can be used to:Official Document Http://docs.oracle.com/javase/6/docs/technotes/tools/share/jmap.htmland this blog http://blog.csdn.net/fenglibing/article/details/6411953This article is mainly about the Jmap often use several of the
The understanding of print and println is simple, and today suddenly comes into contact with printf (), a little confused, and tidy up and help yourself to a reasonprintf is the form of formatted outputBelow for an example: PackageOther ; Public
1.java compile and run process---can draw detailed2.JDK, JRE, JVM three relationships3.8 Basic types and range of values--complement introduction https://wenku.baidu.com/view/d17dd4ba1a37f111f1855b10.html4. Conversions between basic types5.switch
java Generic erase :What is a generic wipe?First look at what generics are. My personal understanding: Because the collection can store arbitrary types of objects. However, once the object type stored in the collection is determined, it is not
There are two situations in which a byte is converted to int:1) to keep the value constantApplication scenarios: Numerical calculations, and so on.Method: The ability to directly adopt the coercion type conversion: int i = (int) Abyte,For example:
1. Configure two databases first2, then configure a dataSource management key value and value corresponding to the default selection Datasourcea , the other configurations follow the normal spring MVC configuration. correlate data sources in
Object flow in Java: Writing or Reading object objects directly1. Serializable interface: serialization, can be serialized, if you really need to write a class of objects on the hard disk or on the network, want to serialize them into a byte stream,
A volatile-modified member variable forces the value of the member variable to be reread from main memory each time it is accessed by the thread. Also, when a member variable changes, the forcing thread writes the change value back to the main
Directory
1 Problem Description
2 Solutions
1 problem description Problem Descriptionthere are N children sitting around in a circle. The teacher gave each child a random number of candies and then played the following games:each of
Java has 21 kinds of design patterns, which are often asked in the interview is a single case design mode;The singleton design pattern has two common ways: 1. Lazy: 1) First privatize the constructor so that the class cannot be instantiated,
first, the database installationHttp://jingyan.baidu.com/article/363872ec2e27076e4ba16fc3.htmlsecond, Eclipse Connection MySQLHttp://jingyan.baidu.com/article/a501d80cea3ed4ec630f5e2f.htmlor install the DBViewer
Learn how to use the first line of code to test the problem (2) and the first line of code
The VM uses the cool family F1. After adding the menu, the menu is not displayed in the upper right corner. In this case, add the following method to the
Cache penetration and cache penetration avalanche
The so-called cache is to insert a buffer layer between the logic code and the database, and query and other operations can be solved at the buffer layer, without any further database operations,
Create maven module in eclipse and eclipsemaven Module
Create an aggregation module first.
Check Create a simple project
Click finish.
We can see that this aggregation has been created.
Next, create a sub-module. Pay-hk pay-web is a
Create, run, and configure the SpringBoot project for Java EE development.
This blog will show you how to use the Eclipse + STS plug-in to create a Spring Boot project. Spring Boot makes it easier for us to use the Spring framework. Many items are
Distributed cache technology redis Learning Series-deep understanding of the use of Spring Redis, redisspring
There are many examples on the Internet about the use of spring redis framework. However, during my recent usage, I found that these
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service