Andropoda fit exploration

Android adaptation has always been a big hate of Android developers. Fortunately, Android 5.0 provides a universal adaptation method. For details, please refer to Zhang Hongyang's universal adapter. However, it doesn't necessarily work for the development of TV or the Internet of things in the current fire, because the companion machine of the ...

Posted by Crazy-D on Sun, 31 May 2020 07:37:35 -0700

Configuration file of Spring Boot configuration (configuration file, loading order, configuration principle)

configuration file Spring Boot uses a global configuration file whose name is fixed application.properties application.yml Function of configuration file: modify the default value of Spring Boot auto configuration, that is, modify the value that Spring Boot has configured for us at the bottom YAML(YAML Ain't Markup Language) Markup Language: ...

Posted by ManInBlack on Sat, 30 May 2020 02:51:32 -0700

Spring boot integrated configuration logback-spring.xml

Using logback instead of log4j is because logback is another open source log component designed by the founder of log4j. The kernel of logback has been rewritten and its performance has been improved by more than 10 times on some key execution paths. Moreover, the logback not only improves the performance, but also reduces the initial memory lo ...

Posted by 7724 on Thu, 28 May 2020 01:53:36 -0700

Using Spring Shell to quickly develop your own command interaction window

Spring Shell Sometimes, in order to facilitate the development and testing of the server, it does not need a beautiful user interface, just use a simple command window. As follows: Here is a quick, convenient, easy-to-use and simple interactive command window development component Spring Shell Yes, it's in spring ecology again. Source address ...

Posted by AlexP on Wed, 27 May 2020 21:09:04 -0700

Implementing API Gateway Service based on Ocelot for.NET Core Micro Services (continued)

Tip: This post has been added Index of.NET Core Microservice Basic Series Articles Load Balancing and Request Caching 1.1 Load Balancing To verify load balancing, we have configured two Consul Client nodes where ClientService is deployed within each node (192.168.80.70 and 192.168.80.71). To better show which node API Repsonse comes fro ...

Posted by avalonindigo on Wed, 27 May 2020 17:20:17 -0700

Design and implementation of self defined persistent layer framework

Traditional jdbc Code: package com; import java.sql.*; /** * @author liuyj * @Title: JdbcTest * @create 2020-05-27 17:31 * @ProjectName algorithm-Exercise * @Description: TODO */ public class JdbcTest { public static void main(String[] args) { Connection connection=null; PreparedStatement preparedStatement=null; ...

Posted by mraiur on Wed, 27 May 2020 04:46:12 -0700

MyBatis code generator - based on Maven plug-in

MBG is the official code generator of MyBatis. MBG can automatically generate entity classes, Mapper interfaces and corresponding XML files, which can reduce the workload of developers to a certain extent. This paper introduces how to use MBG Maven plug-in. 1, In pom files, dependency packages and plug-ins are introduced. <dependency ...

Posted by WormTongue on Tue, 26 May 2020 10:01:20 -0700

Using log4net to output the log file to csv format

When we write a program, we will record some logs during the program running. log4net, as a durable log component, is worthy of our trust. In small and medium-sized companies, there is often no professional log server to handle the logs generated by the application program, and the poorly formatted log file makes it difficult to count, analy ...

Posted by ericm on Tue, 26 May 2020 00:58:54 -0700

Android | super simple integration HMS ML Kit for maximum face smile capture

preface    if you have some knowledge of the face detection function of HMS ML Kit, I believe you have manually called the interface provided by us to write your own APP. At present, there are feedback from small partners in the process of calling the interface. It is not clear how to use the interface mlmaxsizefacetransportor in the ...

Posted by whizzykid on Mon, 25 May 2020 09:20:06 -0700

Spring02_XML-based IOC

For the source code of this tutorial, please visit: tutorial_demo In the previous tutorial, we learned how to use factory mode decoupling to give the creation of objects to a custom factory class by a programmer. In this tutorial, we will learn how to use Spring's IOC to solve coupling problems. 1. What is IOC IOC: Inversion of Control, contr ...

Posted by TCovert on Sun, 24 May 2020 10:48:08 -0700