Spring Boot returns XML
In general, RESTful is to return json. Sometimes it may be necessary to return xml. What should we do?
Jackson
Maven adds jar file import
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency& ...
Posted by POGRAN on Tue, 18 Feb 2020 04:40:45 +0100
Implementing deep copy of objects in C ා
Deep copy refers to copying a reference type (including the reference types in the type) to a copy (completely two objects in memory, without any reference relationship)...... direct code:
1 /// <summary>
2 /// Deep copy of object (serialization)
3 /// </summary>
4 public static class MyDeepCopy
5 {
6
7 ...
Posted by thangappan on Thu, 13 Feb 2020 19:34:42 +0100
Spring MVC self study log 07 (Mybatic integration)
Integration steps
Import related jar package
<!--junit-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis& ...
Posted by jamal dakak on Thu, 13 Feb 2020 16:50:30 +0100
[Bi set environment] configure Centos6, install Hadoop pseudo distribution
**
Install Centos6
**1, Download the CentOS 6.10 installation package, link . Install in VMWare.
2, Set virtual machine fixed ip
Edit - > virtual network editor - > device NAT mode - > View gateway.
Right click virtual machine - > set NAT mode
2. Modify the network card configuration. ...
Posted by jae_green on Wed, 12 Feb 2020 19:23:10 +0100
Spring boot project integrates websocket to realize connectivity
Spring boot project integrates websocket to realize connectivity
brief introduction
pom.xml introduces dependency
Create websocket configuration file for spring boot project
websocketServer core code
An entity class not understood, annotated to be solved
js of front-end page, creating websocket for ...
Posted by aahh on Wed, 12 Feb 2020 16:30:55 +0100
IDEA: getting started with Spring: IOC inversion of control
1, Writing process
First create a web project using IDEA
1. Download the latest Spring development package (jar package)
2. Copy the jar package to the project project (under lib)
3. Write the core configuration file, for example (applicationContext.xml)
4. Read the Spring configuration file ...
Posted by beanman1 on Wed, 12 Feb 2020 15:11:01 +0100
Crazy God said that day1: idea2019.3.2+maven set up springboot project
Catalog
1.idea configures maven warehouse (alicloud image)
2. Use IDEA to quickly build springboot project
1. Select project construction method: default to go to official website.
2. Fill in project information
3. Select dependent components
4. Project name and project path
3. Running the spr ...
Posted by willc on Wed, 12 Feb 2020 11:41:54 +0100
Spring MVC - integration with spring
I. overview
1.1 ask questions
Spring MVC is a part of spring. Do you need to integrate spring MVC?
Do you need to add Spring's IOC container?
Do you need to configure the ContextLoadListener in the web.xml file to start the Spring IOC container?
1.2 problem solving
Need. The configuration fil ...
Posted by clodagh2000 on Wed, 12 Feb 2020 11:28:29 +0100
Building a simple picture server with Tomcat
Prerequisite
Tomcat 7.0.90
Method 1: modify the configuration file
Add a sub label in < host > in the TOMCAT_HOME/conf/server.xml configuration file:
<Context docBase="C:\exambase\" path="/img"/>
Method 2: add Servlet
Create a new application, add the following Servlet, deploy the application and start Tomcat.
package com.lun.se ...
Posted by smokenwhispers on Tue, 11 Feb 2020 18:36:00 +0100
Presto cluster deployment (upgrade)
Let's talk about the last step of preparing to upgrade presto, because the pre deployed Presto machine itself deployed a CDH cluster (customer's home), and the machine was Centos6.x. according to the JDK on the Cloudrea official website, it can't move. Later, it was found that his JDK environment variab ...
Posted by B of W on Tue, 11 Feb 2020 11:48:16 +0100