Recent Posts
-
Java – implement prosody finder
Want to know if anyone has any tips, or can point me in the right direction, find / create some algorithm to find pros…… -
Java – find out if sqlexception is raised due to repetition
I have a java program that is not related to the database. If sqlexception is thrown due to duplicate keys, I need to …… -
Java – I can’t divide two numbers correctly
int percent = (score/numberOfQuestions)*100; int percent = (score/numberOfQuestions)*100; progressText.setText(score+"…… -
Java – upgrade spring security oauth2
I'm trying to change the spring security oauth2 configuration from 2.0 Upgrade from 0.rc1 to 2.0 3.RELEASE. I copied t…… -
Java – spring, @ transactional and Hibernate lazy loading
I'm using spring hibernation All my hibernatedao directly use sessionfactory I have application layer - > service l…… -
Java – gets the generic type of the “real” class
How do I get a "real" class of a generic type? For example: public class MyClass<T> { public void method(){ …… -
JavaFX – set two root nodes for TreeView
Is there a way to set two root nodes for a treeview? I found many examples if simple treeview, but no useful examples …… -
Java – why don’t I use @ batchsize in every lazy loaded relationship?
Hibernate's @ batchsize annotation allows batch fetching of deferred loaded entities For example If I had something li…… -
Using the rolling division method to find the maximum common divisor in Java
It is better to use the rolling division method. For example, 49 and 91 a B temp 49% 91 = 49 91% 49 = 42 49% 42 = 7 42…… -
Java uses a two-way linked list to share the source code of greedy snake programs
Using two-way linked list to realize greedy snake program 1. Linked list node definition: Main program: -
Introduction to bridge pattern of Java design pattern
Bridge definition: it separates abstraction and behavior, which are independent but can be combined dynamically. Why u…… -
Merge sort of Java sorting algorithm summary
This paper describes the merge sort of Java sorting algorithm. Share with you for your reference. The specific analysi…… -
Java text file operation method example explanation
This article describes the operation method of Java text file. Share with you for your reference. The specific analysi…… -
Introduction to composite pattern of Java design pattern
Composite definition: organize objects in a tree structure to achieve a "part whole" hierarchical structure, so that t…… -
Summary of Java sorting algorithm Hill sorting
This paper gives an example of hill sorting, a summary of Java sorting algorithms. Share with you for your reference. …… -
Implementation and simple analysis of several sorting algorithms in Java
This paper describes the implementation and simple analysis of several sorting algorithms in Java. Share with you for …… -
Steps of installing JDK on Linux and configuring vsftp remote connection with Tomcat
It's been a year since I started working in the company. When I was free these two days, I installed a VMware virtual …… -
Introduction to decorator pattern of Java design pattern
Decorator is often translated into "decoration". I think it is more vivid to translate it into "painter". Painter is u…… -
Java tool class for connecting to MySQL database
A encapsulated tool class that links to the MySQL database can easily obtain the connection object and close the state…… -
Simple chat room based on Pushlet and bootstrap in Java
This is a simple chat room. This code contains the following functions 1. User registration. 2. User login. 3. Of cour…… -
Analysis of the difference between bean and EJB in Java
Java beans are reusable components. There is no strict specification for Java beans. Theoretically, any Java class can…… -
Java implementation of half sorting algorithm
Binary Insertion Sort (binary insertion sort) is an improvement on the insertion sorting algorithm. In the process of …… -
Analysis of Java exception handling examples
This article describes the usage of Java exception handling. Share with you for your reference. The specific analysis …… -
Upload file instances in spring MVC
Spring MVC (annotation) several points to pay attention to when uploading files: 1. Enctype = "multipart / form data" …… -
Java interface and abstract class instance analysis
This article describes the java interface and abstract classes. Share with you for your reference. The specific analys…… -
Detailed explanation of interpreter mode of Java design mode
The beginning of Dr. Yan Hong's Book Java and patterns describes the Interpreter pattern as follows: The Interpreter p…… -
FTP download tool written in Java
You need to use java to write an FTP tool, because there is only a little Java foundation, but because it has not been…… -
Mutual transformation between entity classes and JSON objects in Java
When we need to use JSON objects to encapsulate data, we often write a lot of code and copy and paste. In order to use…… -
Method of mutual conversion between IP and integer in Java
This paper describes the method of mutual conversion between IP and integer in Java. Share with you for your reference…… -
A simple server client application example of Java network programming
This paper describes a simple server-side client application of Java network programming. Share with you for your refe…… -
Recursive calculation of the number of 1 in binary representation in Java
With the help of Java language, the number of 1 in the binary representation of integer n is calculated by recursive a…… -
Introduction to shared mode / shared meta mode (flyweight mode) of Java design pattern
Flyweight definition: avoid the overhead of a large number of small classes with the same content (such as memory cons……