OkHttp accessing xml resources in the server

First, add OkHttp dependency implementation 'com.squareup.okhttp3:okhttp:3.14.2' Because the static interface needs Java8 to support use, we need to add the following configuration declaration in the build.gradle file to use the static interface, and compile with Java8 compileOptions { sourceCompatibility JavaVersion.VER ...

Posted on Sun, 03 Nov 2019 10:00:53 -0500 by diesel

[system log note 2] - roll up the sleeve and write a custom log note

background Recently, a project at hand has entered the test transfer stage. The test team leader asked to output all the input parameters of http requests and the corresponding json messages to the log file in detail, in order to facilitate the verification of each interface by the test team's small partners. Although it's not a functional requ ...

Posted on Sun, 03 Nov 2019 05:55:03 -0500 by akki85

Eureka of spring cloud: service publishing and invocation example

Eureka is a service discovery framework developed by Netflix. It is a REST based service. It is mainly used to locate the middle tier services running in the AWS domain to achieve the purpose of load balancing and service failover in the middle tier.  Spring cloud integrates it into its subproject, spring cloud Netflix, to realize the serv ...

Posted on Sun, 03 Nov 2019 05:20:49 -0500 by blackwinged

Java [tomcat] configuration file

Tomcat(2): details and deployment of tomcat configuration file server.xml   Classification: Website architecture   The original address of this article is in blog Park: https://www.cnblogs.com/f-ck-need-u/p/8120008.html   Tomcat series: http://www.cnblogs.com/f-ck-need-u/p/7576137.html 1. Introduction example: virtual host pr ...

Posted on Sun, 03 Nov 2019 02:08:45 -0500 by Genux

When using @ RequestBody to parse json in Spring Boot, LocalDateTime deserialization failed

Scene description demand The main requirement is to automatically bind the time transmitted by the front end through json to the LocalDateTime member in the Bean through @ RequestBody. Binding method Use @ JsonFormat annotation, example: @ JsonFormat (pattern = "yyyy MM DD HH: mm: SS ...

Posted on Sun, 03 Nov 2019 01:19:55 -0400 by CAM

Java get file code

Almost no method is absolutely correct to detect the file coding by certain means without informing the file coding. Only the success rate. 1. The following are several commonly used methods for identifying file codes. Common encoding file starts to identify file encoding: ANSI: no format definition Unicode: the first two bytes are FFFE Unico ...

Posted on Sun, 03 Nov 2019 00:17:03 -0400 by wilorichie

Spring Boot integrates tk.mybatis

0. About tk.mybatis General Mapper can be very convenient for developers. Programmers can choose general methods according to their own needs at will, and can also develop their own general methods conveniently. Single table operation is supported, and general multi table joint query is not s ...

Posted on Sat, 02 Nov 2019 19:14:16 -0400 by isaac_cm

JSX used in vue

What is JSX? JSX is a combination of JavaScript and XML. React invented JSX and used HTML syntax to create virtual DOM. When you encounter <, JSX will be used as HTML parsing and when you encounter {as JavaScript parsing Most scenes in vue do not need to use render function, or use template more concise and intuitive Use temp ...

Posted on Sat, 02 Nov 2019 18:17:02 -0400 by mrdeadman

ELK log system - spring boot project of ELK log system integration of upgraded cluster

[ The whole ELK log system has been set up. The next process is as follows: The logback log configuration in the springboot project is transmitted through tcp, and all the log data in the springboot project is transmitted to the logstash, and then the collected log data is transmitted to the elastic search cluster and finally displayed by kib ...

Posted on Sat, 02 Nov 2019 14:40:23 -0400 by nerya

[mybatis] learn note 3 dynamic statement foreach generator use [be careful to generate the database in the system, such as uesr table country table]

Introduction to dynamic sql: Be careful mysql is not open! I'll be in this hole all night Code UserMapper.java package com.mapper; import java.util.List; import com.bean.User; public interface UserMapper { public List<User> selectUserListByUser(User user); } xml file: This is the case without if. <?xml version="1.0" encoding ...

Posted on Sat, 02 Nov 2019 13:04:46 -0400 by Hybride