MyBatis Notes - EhCache Level 2 Cache

Links to the original text: https://my.oschina.net/u/2400661/blog/596247 introduce ehcache is a distributed caching framework. In order to improve system concurrency, our ...

Posted by jstarkey on Mon, 07 Oct 2019 10:05:51 -0700

1. Integration of Dubbo and Spring to parse configuration files

1. Dubbo consumer invocation service provider example public class Consumer { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"}); context.start(); DemoService demoService = (DemoSer ...

Posted by silas101 on Sun, 06 Oct 2019 22:05:58 -0700

log4net Quick Start

Original address: https://www.cnblogs.com/lsgsanxiao/p/5845300.html Slight deletion 1. configuration files, you can create a log4net.config file separately, then specify the directory manually, or insert the following code under the app.config or web.config node of the project <?xml version="1.0" encoding="utf-8" ?> <configuratio ...

Posted by bznutz on Sun, 06 Oct 2019 20:08:13 -0700

Android Advanced Components

This chapter will introduce the content of setting up UI for XML: Tab Host, tabWidget, FrameLayout Image Switcher GridView Tab Host, tabWidget, FrameLayout Previously, I have written two ways to implement tags. Although the top tag of this article is different from the previous two, it is much the s ...

Posted by camadan on Sun, 06 Oct 2019 17:35:10 -0700

Spring MVC Implements Upload and Download Function

Configuration resources (jar package)   Tidy up front-end pages:   Write several core configuration files (application Context + wed. XML + jdbc. properties + log4j + spring MVC. xml) All in the src directory: applicationContext-mybatis.xml (file associated with configuration and mybatis) ...

Posted by rReLmy on Sun, 06 Oct 2019 13:38:47 -0700

Detailed explanation of Android Vibrator mobile phone vibration

add permission Add the following shake permissions to the AndroidManifest.xml file <uses-permission android:name="android.permission.VIBRATE"/> Get Vibrator vibrator = (Vibrator)context.getSystemService(this.VIBRATOR_SERVICE); Simple vibration First look at the source code of the simple ...

Posted by ayampanggang on Sun, 06 Oct 2019 04:34:55 -0700

Small animation and dynamic storage setdata problem

Small animation and dynamic storage setdata problem If you want to make multiple elements in the WeChat applet one by one, the effect will be similar to the following: First, refer to the contents of the API animation part of the development document.Developing Document API - Animation Create animati ...

Posted by camdagr81 on Sun, 06 Oct 2019 00:47:13 -0700

spring cloud eureka service discovery registration

Environment description: spring boot 2.0 + JDK1.8 Step 1: Build the eureka server, create a maven project, or directly idea or https://start.spring.io/ Quick creation pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi ...

Posted by timgetback on Sat, 05 Oct 2019 23:55:00 -0700

How to Use websocket to Realize Front-end and Back-end Communication

websocket communication is a very interesting and useful way of communication. The ways of using it are as follows:   The first step is to introduce dependencies in the pom.xml file because spring boot integrates websocket well. <dependency> <groupId>org.springframework.boot</groupId> <artifac ...

Posted by ILYAS415 on Sat, 05 Oct 2019 22:44:57 -0700

springboot returns json and xml

Summary: Return data in json, xml format      @XmlRootElement <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency>   SpringBoot returns json and xml https://www.jianshu.com/p/231b5ff ...

Posted by zamzon on Sat, 05 Oct 2019 21:58:30 -0700