Linked list of data structure and Java implementation

1, Basic introduction of linked list Linked list is the most basic data structure. The implementation principle of linked list in Java is linked list. The linked list is composed of multiple nodes, each node only stores data and the location of the next node, so that multiple nodes can be strung together level by level ...

Posted by jamesflynn on Tue, 31 Mar 2020 04:06:01 -0700

Spring boot (III) integration with mybatis

Preface With the release of spring boot2.0. The API interface of the project team has considered the transformation to spring boot. We always use mybatis as the underlying interface, so in this article, I specially practiced the integration of mybatis in spring boot.   1, Preparations 1,pom.xml   1 <dependencies> 2 &lt ...

Posted by ntnwwnet on Tue, 31 Mar 2020 02:57:27 -0700

Spring boot multi environment separation of resources and lib for packaging

In order to facilitate local development, testing and production packaging are occasionally involved. The configuration of each environment is different. Configuration files of multiple environments need to be configured to avoid having to modify the configuration files when packaging The default configuration file of the SpringBoot project is ...

Posted by riespies on Tue, 31 Mar 2020 02:38:28 -0700

java implementation of Sudoku solution

Use exhaustive method to solve Sudoku problem. The general idea is: 1. First pick out the existing numbers and do not deal with them. 2. The enumeration of unknown numbers starts from top to bottom and from left to right. If the first number is [0] [0], first assume that it is 1, judge whether there are duplicates in ...

Posted by Bisdale on Mon, 30 Mar 2020 23:45:54 -0700

A sort algorithm with bad reputation -- simple selection sort algorithm

Simple selection sorting algorithm idea: Set: sorting interval R [1... N]; I n the process of sorting, the whole sorting interval is divided into two sub intervals: ordered region R [1... I-1] and disordered region R [I... N]; The minimum record Rmin in the disordered area is selected for each n-1 sorting, and the position of Rmin and the firs ...

Posted by dimitar on Mon, 30 Mar 2020 22:50:57 -0700

Netflix Zuul service gateway of Spring Cloud series

What is Zuul    Zuul is the front door for all requests from devices and websites to the back end of the application. As an edge service application, zuul aims to realize dynamic routing, monitoring, flexibility and security. Zuul includes two main functions of request routing and filtering. Zuul is the open-source microservice gateway of Ne ...

Posted by doucie on Mon, 30 Mar 2020 21:01:30 -0700

Calculate the surface area and volume of box and pyramid (Java)

Calculate the surface area and volume of box and pyramid Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description Calculate the surface area and volume of the following solid figure. When viewed from the graph, its common attributes can be extracted into the parent class Rect: length: l width: h height: z In ...

Posted by kidd1270 on Mon, 30 Mar 2020 14:15:03 -0700

Android recyclerview multi layout Listview multi layout code implementation

Preface Everyone will read the latest news on the browser every day. As an IT programmer, you will find that their layout and layout are different. Sometimes, there are 4 or 5 interfaces for the same style of items, and 1 appears below There are different items. Is the effect beautiful? This is called multi layout in Android. L ...

Posted by DeX on Mon, 30 Mar 2020 11:49:03 -0700

Using MathJax to display MathML and LaTeX formulas in web pages

MathJax is an open source JavaScript display engine for LaTeX, MathML, and ASCII math representations for all modern browsers. Display MathML MathML is a mathematical markup language. It is a standard based on XML (a subset of Standard General Markup Language), which is used to write mathematical symbols and formulas on the Internet. Some brows ...

Posted by tullmejs on Mon, 30 Mar 2020 10:26:48 -0700

java inserts time into mysql and formats time and date

Several ways of Java inserting current time into MySQL and several ways of java time date format: (refer to network resources for information) Several ways of java inserting current time into MySQL The first is to convert the time of type java.util.Date to the time of type java.sql.Date recognized by mysql database Note: ja ...

Posted by ghostdog74 on Mon, 30 Mar 2020 10:21:31 -0700