Java GUI practice, greedy snake

Write a greedy snake Keyboard monitor Timer timer Time monitoring paint brush 1. Data center class Define picture URL Define Icon Icons of head up, down, left and right, body, object and banner 2. Game startup class The main method starts the game Define main window Set the main window size value, visible, size, and close events Ad ...

Posted on Fri, 03 Dec 2021 21:00:44 -0500 by rdbdba

What happened to my style, didn't you when you were a child?

🏇 Small wood come Yes \textcolor{Orange} {here comes Koki} Here comes Koki 🍣 ...

Posted on Fri, 03 Dec 2021 20:27:33 -0500 by DavidGS

I realized that this is the correct way to open distributed transactions

1, Concept of distributed transaction 1. What is a transaction A transaction can be regarded as a big activity. It consists of different small activities. These activities either succeed or fail. 2. Local affairs Four characteristics of database transactions ACID: A(Atomic):   Atomicity  , All operations constituting a transact ...

Posted on Fri, 03 Dec 2021 19:07:35 -0500 by bache

Ten thousand words sorting: introduction to algorithm 0 foundation - a large collection of mainstream sorting algorithms; Hard core sorting diagram + code -- Summary of data structure and algorithm 4

Current brain map: 1. Preface: on algorithm color change? Duck, no!      I wonder if you have this feeling? When it comes to algorithms, the first reaction is: it's too difficult, I won't! I had this feeling at the beginning, but after learning patiently, I found that the algorithm was not so complex. At least gettin ...

Posted on Fri, 03 Dec 2021 18:49:34 -0500 by infomamun

ThreadPoolExecutor source code reading

1. Key attributes /** This property is very interesting. A synchronous Integer stores two values, with a maximum of 3 bits to place the thread pool state; The remaining 29 places the number of workers, so there can be at most 2 ^ 29-1 workers */ private final AtomicInteger ctl = new AtomicInteger(ctlOf(RUNNING, 0)); private static final int CO ...

Posted on Fri, 03 Dec 2021 18:40:40 -0500 by ElkySS

jmeter+ant+jenkins interface automation test

Setting up Jmeter environment Set up a java environment first 1. Official Web http://www.oracle.com/technetwork/java/javase/downloads/index.html Download 2. Setting system variables, The variable name is JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131 (Installed Path Directory) Set Path variable,%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin Variable na ...

Posted on Fri, 03 Dec 2021 18:11:26 -0500 by Kryllster

Spring Boot with MyBatis and JPA

Spring Boot with MyBatis and JPA What is Spring Boot Spring features Ability to create stand-alone Spring Boot applications Embed Tomcat,Jetty Undertow and don't need to deploy them Provides "starters" poms to simplify Maven configuration https://www.cnblogs.com/qlqwjy/p/7979159.html Spring brings a lot of magic into ...

Posted on Fri, 03 Dec 2021 17:20:38 -0500 by djs1

Java Network Programming TCP/UDP (Socket)

Network programming 1.1 overview Purpose: Dissemination and exchange of information, data exchange and communication What you want to achieve: How to accurately locate a host on the network: ip:port locate a resource on this machineFound this host, how to transfer data javaweb: Web programming B/S Network programming: TCP/IP C/S 1.2 ele ...

Posted on Fri, 03 Dec 2021 17:20:00 -0500 by collamack

Java method 02 -- method definition and calling, method overloading, command line parameter passing, variable parameters

Java method 02 -- method definition and calling, method overloading, command line parameter passing, variable parameters Definition of method Java methods are similar to functions in other languages. They are code fragments used to complete specific functions. Generally, defining a method includes the following syntax: Method contains a met ...

Posted on Fri, 03 Dec 2021 16:50:14 -0500 by gj6kings

Spring boot 2.3.0 restful API commonly uses GET and POST requests to send unified return values

1) Introduction to RESTful Definition: RESTful is a design style and development method of network applications. It is based on HTTP and can be defined in XML format or JSON format. RESTful features: 1. Each URI is a unique resource identifier; 2. The client uses GET, POST, PUT and DELETE verbs to operate the server resources: GET is used to ...

Posted on Fri, 03 Dec 2021 16:00:34 -0500 by keyur.delhi