Learn JAVA from scratch (basic introduction)
1. Build JAVA development environment
Uninstall JDK (please ignore those not installed)
Delete the JDK installation directory Delete JAVA_HOME and CLASS_PATH environment variable Delete PATH and JAVA_HOME and CLASS_PATH related environment variables
Install JDK
Go to Oracle's official website to download JDK or go to some domestic image ...
Posted by iamtheironman on Sat, 20 Nov 2021 01:49:42 -0800
Interview prerequisite: Java thread pool parsing
preface
Mastering thread pool is a basic requirement for back-end programmers. I believe that almost everyone will be asked about thread pool during the job interview. I collected several classic thread pool questions on the Internet and took them as a starting point to talk about my understanding of thread pool. If ...
Posted by sufian on Sat, 20 Nov 2021 01:44:27 -0800
Spring MVC series - Introduction to spring MVC execution process and related Servlet classes
preface
When sending an HTTP request, Spring MVC will perform a series of processing after receiving it, and then respond to the resource. How is the whole process handled?
Execution process
Core components
Dispatcher servlet: front-end controller, which does not need to be developed by engineers. It is provided by the framework to uniforml ...
Posted by djrichwz on Sat, 20 Nov 2021 01:11:11 -0800
Processes and threads
Processes and threads
A process (. exe) contains multiple threads, which occupy the resources of process memory Why? It's like QQ can type and chat with others while video
There is a picture and a truth
example
Write a Java The program implements multithreading. The name of the thread is output in the thread. It is output once in 1000 ...
Posted by baseballkid420 on Sat, 20 Nov 2021 00:10:45 -0800
SpringMvc -- request forwarding and redirection
Request forwarding and redirection for spring MVC
1. Request forwarding of spring MVC -- thymeleafView
thymeleafVIew view
If the return value [view name] of the method processing the request is not prefixed, this view will be parsed by the view parser configured by spring MVC. This view is a thymeleaf view. As for why there is such a distinc ...
Posted by cwspen on Sat, 20 Nov 2021 00:03:04 -0800
Three auxiliary classes of JUC
scene
Three commonly used auxiliary classes are provided in JUC. These auxiliary classes can well solve the frequent operation of Lock lock when there are too many threads. The three auxiliary classes are: • CountDownLatch: decrease count • CyclicBarrier: Circular barrier • Semaphore: signal light
Decrease count CountDownLatch ...
Posted by Akenatehm on Fri, 19 Nov 2021 23:13:35 -0800
Analysis of Spring event monitoring principle
1. Introduction to spring event monitoring
The Spring framework provides a set of event publishing and listening mechanism. For developers, they can publish events as long as they hold the ApplicationContext instance, and they can receive and process events as long as they implement the ApplicationListener interface. A typical use example ...
Posted by TitanKing on Fri, 19 Nov 2021 22:50:36 -0800
mybatis learning notes, 2.MyBatisTest
mybatis learning notes, 2.MyBatisTest
1. Introduction
1. Interface programming
Native: Dao = = = = > daoimplmybatis: Mapper ====> xxMapper.xml
2. SqlSession represents a session with the database; It must be closed after use;
3. SqlSession, like connection, is non thread safe. You should get a new object every time you use it.
...
Posted by mystrymaster on Fri, 19 Nov 2021 22:29:05 -0800
Android studio study notes - try turning on the microphone
I haven't written java for a long time. I came back this time because the voice function is required before the project. Turing connected with the company only supports amr and opus audio format upload for recognition, However, as far as I know, the microphone provided by unity only supports wav and mp3. Therefore, the previous solution has ...
Posted by Markx on Fri, 19 Nov 2021 22:14:41 -0800
Based on java springboot, Alibaba P8 explained it in person
import hue.edu.xiong.volunteer_travel.core.Result;
import hue.edu.xiong.volunteer_travel.core.ResultGenerator;
import hue.edu.xiong.volunteer_travel.model.*;
import hue.edu.xiong.volunteer_travel.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.sp ...
Posted by ts2000abc on Fri, 19 Nov 2021 20:17:02 -0800