Java
-
Problems and solutions of Java eclipse import project (recommended)
Today, I imported several projects through eclipse. The project name appears red cross, which is intolerable for obses…… -
Detailed explanation of java socket communication based on bio
Bio, that is, blocking io. During socket based message communication, the socket server provides services to the outsi…… -
Java programming implements the method of counting the occurrence times of each character in a string
This example describes the method of counting the occurrence times of each character in a string by Java programming. …… -
Detailed explanation of factory pattern implementation method of Java design pattern
This paper describes the factory pattern implementation method of Java design pattern. Share with you for your referen…… -
Chat room function of java socket communication
This example shares the specific code of java socket chat room function for your reference. The specific contents are …… -
Spring + mybatis returns the result through @ ResponseBody and solves the Chinese garbled code
Problem occurrence: Return via @ ResponseBody result: terms of settlement: In spring MVC Configuration in XML But afte…… -
Java instantiation of an abstract class object method tutorial
preface Recently, in the process of learning, I found a problem. An abstract class cannot build the object through new…… -
On the implementation process of Java garbage collection
This tutorial is to understand basic Java garbage collection and how it works. This is the second part of the garbage …… -
Quickly understand NiO core components in Java
background knowledge Synchronous, asynchronous, blocking, non blocking First of all, these concepts are very confusin…… -
Spring boot integrates Shiro and uses mongodb for session storage
preface Shiro is a permission framework. You can view its official website for specific use http://shiro.apache.org/ I…… -
Detailed explanation of log4j and AOP in spring MVC project
preface Log processing is a very important part of each project. Without logs, the controllability of the system will …… -
Mybatis inserts one or batch inserts and returns instances with self growing primary key records
First of all, the version of mybatis that inserts a record and returns the primary key needs to be upgraded to 3.3 Ver…… -
A method of transforming a common web project developed in Java into a maven project
preface Maven is based on the project object model (project object model), a project management tool that can manage p…… -
Detailed explanation of Java function idioms
In Java programming, some knowledge can not be learned only through language specifications or standard API documents.…… -
23 design patterns (15) Java Interpreter pattern
23 design patterns Part 14: Java Interpreter pattern Definition: given a language, define a representation of its gram…… -
Detailed explanation of session addition, deletion, modification and query operation code in Hibernate
Put the three state transition diagram here to facilitate the function of the analysis method: 1. Save() method of ses…… -
Spring boot uses logback, logstash and elk to record log files
Under spring boot, try to log to logstash using log4j, and add log4j in Src / main / resources directory The custom ou…… -
Java implements a simple timer code analysis
We see a lot of timing functions on mobile phones, such as regular garbage cleaning, alarm clock, etc Timer object is …… -
Implementation of network data cache interceptor Interceptor Based on okhttp3 (supporting retrofit)
Preface: some time ago, when developing the app, it often occurred that due to the user's equipment environment, the d…… -
Implementation of network data cache interceptor Interceptor Based on okhttp3 (supporting retrofit)
Preface: some time ago, when developing the app, it often occurred that due to the user's equipment environment, the d…… -
Complete example of Snake game implemented by Java Swing framework
This article describes the greedy Snake game implemented by Java Swing framework. Share with you for your reference, a…… -
Redis and SSM integration method (mybatis L2 cache)
SSM + redis integration The SSM framework has been built before, and code copying is no longer done here. Redis is mai…… -
On mybatis optimistic lock plug-in
Background: for the same record in the database, if two people modify the data at the same time, and then finally sync…… -
Mybatis loading configuration files (two methods)
I Load using maperlocations of sqlsessionfactory, This method can use wildcards, specify locations, and use multiple l…… -
Analysis on the implementation of JSON view of custom spring MVC
scene Our team is now facing the problem of multi terminal data interface docking. In order to solve this problem, we …… -
Explain how to create a simple web project with eclipse (Graphic)
Eclipse neon Chinese version; 1; Right click New -- > and select dynamic web project 2: Fill in the project name an…… -
Detailed explanation of iterator and listiterator instances in Java
Scope and relationship of iterator and listiterator: (1) Iterator can be used to implement overlapping interface list,…… -
Examples of ANSI, Unicode, BMP, UTF and other coding concepts
1、 Foreword In fact, since I began to write java code, I have encountered numerous problems of garbled code and trans…… -
Implementation tutorial of spring boot custom starter
Spring boot uses starter to solve many configuration problems, but how does it solve these problems@ H_ 502_ 1@ Here i…… -
Java implementation of batch writing data to MySQL
This article describes the method of batch writing data to MySQL in Java. Share with you for your reference, as follow…… -
How to use propertysource annotation in spring boot
preface This article will focus on the use of the @ propertysource annotation in spring and how to load the specified …… -
Example analysis of Java recursive algorithm
The basic idea of recursive algorithm design is: For a complex problem, decompose the original problem into several re……
