Recently, the project has been done for half a year to the final Test ready to go, after the flow of the process to start doing some performance testing, during this time to do a lot of performance optimization work, in this take notes, share.
Using IO output streaming: Directly on Java code,
HTML interface only needs a Download address directly write the corresponding Java address just fine.
Method One:
@RequestMapping ("domload.it") public
void Domload (httpservletresponse response,
the difference between method overload and method overlay:
Method Overload: Overload
Method Overlay: Override
there is no relationship between the two itself, just because the name is very similar.
method Overload: OverloadFunction:Solves the
This chapter describes some of the combination patterns that make a class easier to thread-safe and do not unintentionally break security guarantees for classes when they are maintained.
In a single thread, if an operation cannot satisfy a priori
1.java class Loader
Boot class loader (bootstrap class loader): It is used to load Java core libraries, which are implemented using native code
Extended class loader (Extensions class loader): It is used to load Java extension libraries.
Systems
/** * @author Neosong * @date Sep, 2017 * 7:30:43 PM * Program of information: Define some linear structure operations * 1, define interfaces and define methods in them, interface is 100% Abstract class, there are only method headers, no method body
In addition to providing built-in lock synchronized, the Java language provides advanced explicit lock locks as a functional supplement after JDK6. In most cases, built-in locks work well and we try to use built-in locks as much as possible. However,
"How to establish a JDBC connection"
First to the official website mysql.com download Connector-j and then unzip it out, there is a type for the jar of the file to establish the connection to the project, there is a Lib folder, it can be.
Next,
Telephone interview asked Threadlocal what to pay attention to use. Find relevant information on the Internet
Threadlocal can save local variables for the current thread, while inheritablethreadlocal can pass local variables of the parent
In Java, threads have 6 basic states, and understanding the relationships between these 6 basic states gives us a better understanding of multithreading. The following illustration shows:
In Java, all threads exist in a thread group, and each
http://blog.csdn.net/xmlrequest/article/details/8992029
The future object in JDK1.5 can be realized;
Returns the future object after submitting the thread through the thread pool;
Important methods in the future class include Get () and cancel ().
Idea to create the Spring boot project, test the AOP times this error, and finally because I import more jars
org.springframework
spring-aop
4.3.3.RELEASE
View Discovery Spring Bot default support AOP does not need to be introduced
Recently read some articles of mind map, found that the mind map is really a powerful tool. After understanding the role of mind mapping, I think it should be a good idea to apply it to Java, so that when you look back at the knowledge point, you
Please read my introduction to Java 8. This guide will step through all the new language features to guide you through Java 8. With the help of the short sample code, you will learn how to use the default interface methods, lambda expressions,
1. Bitwise operators are mainly for binary, which includes: "and", "Non", "or", "XOR".
1.1 and &
Its use rules are as follows:Two operands have a bit of 1, the result is 1, otherwise the result is 0
1.2 or |
Its operation law is as follows:Two
Experimental code:
* * Copyright and Version Statement of the procedure * Copyright (c) 2011, Yantai University Computer College students * All rights reserved. * File name: Testnumber.java * Author: Zhang Zongjia * Completion Date: September 16, 2
Encapsulates operations on Excel, including local read-write Excel and output excel in streams
Import Java.io.File;
Import Java.io.FileInputStream;
Import java.io.FileNotFoundException;
Import Java.io.FileOutputStream;
Import
First you need to understand that final and finally are the keywords, and Finalize is a method.1. Final keywordFinal can modify classes, methods, variables,
A decorated class indicates that a class cannot be inherited
The modifier means
Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each
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