Using jconsole to check java thread deadlock

1, What is jconsole jconsole is the built-in Java performance analyzer of jdk, which is used to monitor the performance of Java applications and track the code in Java; It has a close relative, that is, JVM; 2, How to use 1. It's very simple. On the command line of idea, enter: D:\java\workspace\AS> jconsole The GUI: Here is a dead ...

Posted by Pi_Mastuh on Fri, 03 Apr 2020 20:19:10 -0700

Mybatis: how to use mybatis

1, Create a project (this article takes the project that Idea builds based on Maven as an example) New->Project                   I choose my local Maven and configuration here       Finally, click Finish       2, Add dependency package in configuration file Add package dependency of Mybatis, JDBC driver and log4j log management ...

Posted by piyushsharmajec on Fri, 03 Apr 2020 18:46:29 -0700

On Java exception handling

1, Exit exit exception: import java.util.Scanner; public class Test3exit { /** * @param Cats in Fangshan * finally When not to leave * alt+shift+z */ public static void main(String[] args) { try { Scanner input=new Scanner(System.in); System.out.print("Please enter the first intege ...

Posted by simple_man_11 on Fri, 03 Apr 2020 18:32:44 -0700

On equals and HashCode

In actual work or interview, you will always encounter the following Java Fundamentals: [x] equals method [x] hashCode method [] interfaces and abstract classes equals method Agreements or guidelines used by equals: Reflexivity x.equals(x) = true Symmetry x.eqlas(y) = y.equals(x) Transitivity x.eqlas (y): tru ...

Posted by sdm on Fri, 03 Apr 2020 15:58:25 -0700

Collection of Android Development Engineers - 1 hour learning how to develop Widget

Preface Hello, I'm Vic. Today I'll bring you a collection of Android Development Engineers - an overview of learning Widget development in one hour. I hope you like it Learn to use Widget Widget widgets are very convenient, fast, personalized, customized, relevant functions, and can update the latest content in real time. Widg ...

Posted by Nandini on Fri, 03 Apr 2020 14:36:15 -0700

java RSA asymmetric encryption decryption (concise)

Last article: Generation of RSA asymmetric encryption certificate (concise and clear) See my last article for the generation of Java asymmetric encryption certificate. The lower part is mainly the Java decryption part. Use the certificate pkcs8 ﹣ private ﹣ key.der (that is: Generation of RSA asymmetric encryption cer ...

Posted by dwu on Fri, 03 Apr 2020 13:45:11 -0700

Android develops TabLayout and Fragment to achieve tabbed effect

Android develops TabLayout and Fragment to achieve tabbed effect Use TabLayout and Fragment to realize the function of tabs First on the renderings Write the interface first. Main activity.xml code vertical linear layout, two controls, with tabs above and content below <android.support.design.widget.TabLayout ...

Posted by nafarius1357 on Fri, 03 Apr 2020 13:33:33 -0700

Struts 2 and Spring integration

Preface This post mainly explains how Spring integrates with struts 2 framework Key points of integration of struts 2 and Spring: The action object is given to Spring to create Building environment Entering the jar package To import a jar file: 1) Introduce struts. Jar related files 2) Spring core related jar files 3) Spring web support jar ...

Posted by jarv on Fri, 03 Apr 2020 11:58:34 -0700

Source code analysis system server

I. overview 2, System server startup sequence diagram 3, Source code analysis of system server startup Class ZygoteInit Class RuntimeInit Class methodandargscaler 4, System server source code analysis I. overview When Android starts, it will involve many system level services, such as activity manager s ...

Posted by akillez on Fri, 03 Apr 2020 11:53:41 -0700

java implementation of maven project file upload SSM ajax asynchronous request upload

java ssm framework for file upload Implementation: single file upload, multi file upload (single choice and multi choice), and use ajax to asynchronously refresh, display the uploaded file in the current interface First, the configuration file of springmvc needs to configure the upload file parser: 1 <!-- Profile resolver --> 2 ...

Posted by kustomjs on Fri, 03 Apr 2020 11:21:06 -0700