Java learning path-45: XML quick start-dom4j, XPATH, application cases
Chapter 5: dom4j of XML parsing
Introduction to lesson 31 dom4j
https://dom4j.github.io/
rely on
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>2.0.0</version>
</dependency>
demo.xml
<?xml version="1.0 ...
Posted by ednark on Fri, 14 Feb 2020 07:16:22 -0800
Infinite recursion and Jackson JSON and Hibernate JPA problems
When trying to convert a JPA object with two-way associations to JSON, I kept
org.codehaus.jackson.map.JsonMappingException: Infinite recursion (StackOverflowError)
All I found was The thread , basically ending with a recommendation to avoid two-way Association. Who knows the wrong solution this spring?
------Edited on July 24, 2010 16 ...
Posted by Xzone5 on Fri, 14 Feb 2020 06:14:15 -0800
maven common operations
1, Using docker to build maven nexus private server
1: Download Image
docker pull sonatype/nexus3
2: create the mount directory and grant permissions to / var / lib / docker / volumes / nexus data
chmod 777 nexus-data/
3: start container
docker run -d -p 8081:8081 --name nexus -v /var/lib/docke ...
Posted by mosizlak on Fri, 14 Feb 2020 00:22:47 -0800
Spring framework - Part 2
Chapter 1: Spring's IOC implementation of CRUD
1.1 - Requirements and technical requirements
Requirement: realize CRUD operation of account
Technology:
Using spring's IoC to manage objects
Using dbutils as a persistence layer solution
Using c3p0 data source
1.2 - environment construction
1.2.1-Maven project import dependency
<dependen ...
Posted by davinci on Thu, 13 Feb 2020 23:29:13 -0800
SQL Server parent recursion
It's a little complicated. I'm confused today.
First, put in the pages you need
https://blog.csdn.net/u011872945/article/details/14452641
This person wrote a function in SQL server. You can find the parent node from the child node or all the child nodes from the parent node. It's powerful, and it uses recursion.
https://zhi ...
Posted by MikeTyler on Thu, 13 Feb 2020 13:14:42 -0800
mybatis cache, starting from a "psychic" event
Just about to leave work, I was stopped by a development colleague. Let's see a strange problem: the query method of the same Mapper interface of Mybatis, the first return result is different from the second return result. I can't think about it!
problem
Talk is heap. Show me the code
mapper interface definition
public interface GoodsTrackMap ...
Posted by jonorr1 on Wed, 12 Feb 2020 18:53:50 -0800
jq of linux tools
brief introduction
In the daily development under linux, we often need to process and analyze the json format data. jq Is an open source JSON format data processing tool, it provides a lot of flexible syntax, very powerful.
install
macOS:
brew install jq
Ubuntu
apt-get install jq
Other reference Official website
jq syntax
Basic usage
Suppose t ...
Posted by AudiS2 on Wed, 12 Feb 2020 09:42:18 -0800
Hystrix Circuit Breaker (Hoxton version)
Getting Started with Spring Cloud - Hystrix Circuit Breaker (Hoxton version)
Original
ThinkWon
Last released from December 29-27 15:25:21
Reading 680 Collections
Released from December 29-27 15:25:21
Category Column:
Spring Cloud
Cop ...
Posted by KindredHyperion on Wed, 12 Feb 2020 08:47:12 -0800
SSM integration practice
Management dao layer of mybatis framework
spring mainly manages the service layer
Spring MVC manages the cortroller layer
1. guide pack
2. Write web.xml. When Tomcat starts, load the web.xml file and put its contents into the spring container (webApplicationContext, which is the sub interface of applica ...
Posted by jim.davidson on Wed, 12 Feb 2020 07:58:06 -0800
How to become a loyal fan of IntelliJ IDEA? Start with the first plug-in you developed
When writing Java code, it often involves repetitive operations. At this time, it's better to have such a plug-in. If it's a scenario that everyone will encounter, the IDE may have provided it. Otherwise, someone may have written related plug-ins. If this operation is unique to your coding environment, you can only write your own tools. So her ...
Posted by sleightofhand on Wed, 12 Feb 2020 05:56:23 -0800