MyBatis implements basic CRUD and unit test

Overall project structure bean code package bean; public class Apply { private long id; private String sname; private String qq; private long enterTime; private String type; private String school; private long number; private String repLink; private String goal; @Override public String toString() { ...

Posted by qaladien on Mon, 18 Nov 2019 16:52:59 +0100

Dashboard of microservice fuse current limiting Hystrix

brief introduction Hystrix Dashboard is a real-time monitoring tool for hystrix. Through the Hystrix Dashboard, you can directly see the request response time, request success rate and other data of each Hystrix Command. Quick start Engineering description project name port Effect eureka-server 8761 Registry Center service-hi 8762 Servic ...

Posted by kickoff3pm on Sat, 16 Nov 2019 19:32:09 +0100

Spring boot configuration JVM cache

Cache classification: cache is divided into memory cache and JVM cache Memory cache, such as redis JVM cache is only used in java, and a single JVM is valid Cache usage scenarios Reduce database access pressure Create the springboot project < this article configures the JVM cache > Add cache dependency in pom.xml ...

Posted by micbox on Thu, 14 Nov 2019 16:06:48 +0100

(Reprint) Android camera development: efficient real-time processing of preview frame data

Summary In this article, we will not introduce the new functions of Camera APP, but how to process the Camera preview frame data. Presumably most people don't need to deal with preview frames, because cameras only need to be used for taking photos and recording. In fact, this article doesn't have much connection with general Camera development ...

Posted by domainbanshee on Thu, 14 Nov 2019 13:58:35 +0100

Interesting bug - Circular dependency of Java static variables

background Yes, the title is correct, not Spring Bean's circular dependency, but the circular dependency between static variables. Recent projects are simple Maven projects, deployed on the Ali Cloud through K8S, with configuration file reading rules as follows: (1) Priority is given to reading the configuration files in the same directory of t ...

Posted by seidel on Thu, 14 Nov 2019 06:43:31 +0100

Creation of spring MVC entry program (annotation mode)

The annotation method is the same as the configuration file method, so there are different points written here and the configuration file method. Profile to create a connection for springMVC: Portal The web.xml file is: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/j ...

Posted by phpScott on Wed, 13 Nov 2019 16:26:54 +0100

How to use RestTemplate to call API (interceptor, exception handling, message transformation) elegantly in microservice

Follow me to get the latest knowledge, classic interview questions and technical sharing                                     . Among them: RestTemplate uses HttpMe ...

Posted by scription on Wed, 13 Nov 2019 04:39:08 +0100

AOP development of Spring (XML based on AspectJ)

Introduction to Spring's AOP: AOP idea was first proposed by AOP alliance. Spring is the best framework to use this idea Spring's AOP has its own implementation (very cumbersome) Aspect is an AOP framework. Spring introduces aspect as its own AOP development. Two sets of AOP development methods in Spring ◆ traditional way ...

Posted by stry_cat on Tue, 12 Nov 2019 19:08:44 +0100

Compression and caching for Apache web page optimization

Overview of Apache Web Page Optimization In the enterprise, when Apache is deployed, only the default configuration parameters are used.This causes a lot of problems for the website, in other words, the default configuration is for a lower level than beforeServer Configuration, Previous Configuration No longer Applies to Today's Internet AgeTo ...

Posted by jaiswal on Tue, 12 Nov 2019 01:10:50 +0100

The integration of Tomcat 8.0 and Solr 8.0 linux

Reprint: https://blog.csdn.net/alibaba_f / article / details / 89407754 First, create an empty folder to facilitate the management of tomcat, solr and solr data source management; 2. Install tomcat and solr, and wear an empty folder solrHome         3. Copy the files under server → solr webApp → webApp in the so ...

Posted by webtech123 on Mon, 11 Nov 2019 19:27:17 +0100