Demand:Often encountered the need to perform a task every day, the time to perform the task is 3 o'clock in the morningRealize:For ease of detection, I assumed the next minute to perform the task, repeating every 10 seconds. (For realistic projects:
Common ways to implement threadsThree kinds: Inherit the thread class, implement Runnable interface1, inherit the thread class to realize multithreading1 Public classMyThreadextendsThread {2 3 @Override4 Public voidrun () {5System.out.println (
2017-11-06 16:30:25IOC: Control inversion, and the creation of objects is managed by spring. IOC Bottom-up principle: factory class + Reflection + configuration file, create objects to be completed by factory class. DI (Dependency injection):
The full name of PermGen space is permanent Generation space, which refers to the permanent storage area of memory,This memory is primarily stored by the JVM with class and meta information, and class is placed in PermGen space when it is
1:java Many packages are not availableWorkaround: Open the Libraries file to see JRE System Library[java] library in the absence, if not, to import this yourself: Right-click the project->properties->java Build path->libraries- >add Library2:java
This week to learn a chapter of the collection, I combined with the search summed up a bit of knowledge, as follows:The 1.java collection can be roughly divided into set, list, and map systems, where set represents an unordered set, and the list
objects in 1.set are not repeated in the order they are loaded . repeat judgment: as long as the two objects equals equal to the line. ( to understand that, not repeating the error, but only one storage time, the output will only output one.) )Data
This class contains various methods for manipulating arrays, such as sorting and searching. This class also contains a static factory that allows the array to be viewed as a list.Arrays.aslist () is a way to view an array as a list, notably: Public
This week, the teacher tuned the teaching goals, and in the Thursday class we explained in detail the knowledge that we didn't have in the programming that we left out in the last few weeks with our own code. Through the teacher's explanation, I do
1. What is a greedy algorithm? greedy algorithm, also known as greedy algorithm (greedy algorithm), refers to when solving problems, always make the best choice in the present. In other words, not considering the overall optimal solution, it makes
Class Car extends Vehicle {public static void Main (string[] args) {New Car (). run ();}Private final void run () {SYSTEM.OUT.PRINTLN ("Car");}}Class vehicle{Private final void run () {SYSTEM.OUT.PRINTLN ("vehicle");}}Analysis: First the final
Java job 6 () and java job
/* Game engine package, playing music */import com. rupeng. game. gameCore; public class Mc implements Runnable {public static void main (String [] args) {GameCore. start (new Mc ();} public void run () {GameCore.
Java multithreading,11.1) multithreading concept 11.2) 2 ways to create multithreading 11.3) multithreading lifecycle 11.4) Why synchronization is required?
Because of the thread security issue, for example, the bank's money Acquisition problem, the
File upload tool
UploadUtils
To use this tool class, you only need to call the upload method in the uploaded Servlet to pass the path and request object to be uploaded. This tool class returns a list set with a Map in the list set. If it is a
Installation of MySQL on Linux and installation of LinuxMySQL
A. Check whether mysql is installed.
Rpm-qa | grep mysql
B. Uninstall the mysql
Rpm-e -- nodeps unmounted package
Rpm-e -- nodeps mysql-libs-5.1.71-1.el6.i686
C. Upload mysql
D. Create a
Install Apache Maven and apachemaven
Apache Maven installation is a simple process: Decompress the extraction file, and configure the decompressed bin directory to the PATH of the system environment variable so that shell can be used in various
IDEA's first springBoot, ideaspringboot
1. In the first step, Open File> New> Project. Select the SDK based on your needs. Here, select java7.
2. Set group and artifact after "Next" and modify them as needed.
3. Import a Web package.
4.
What is the difference between classpath and classpath *?
First, classpath refers to the classes directory under the WEB-INF folder.Classes meaning:1. Store various resource configuration files2. Store template files3. Store the class file, which
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