How to find ContentProvider from Uri in source Teahouse

Introduction We all know the use of ContentProvider, one of the four components, which provides you with a unified data access format. The caller doesn't need to care where the data comes from (such as DB, XML file, network, etc.), just get the corresponding ContentResolver to add, delete, query and m ...

Posted by sridhar golyandla on Wed, 29 Jan 2020 03:21:11 -0800

Take you to know Mybatis interceptor and handwriting paging plug-in

The principle of Mybatis interceptor is a bit convoluted and simple. The principle is to implement agents for our customized interceptor class through the dynamic agent technology of JDK, and there can be multiple agents. Therefore, Mybatis interceptor will exist in the form of a chain, and each agent w ...

Posted by ctsiow on Wed, 29 Jan 2020 03:10:09 -0800

HBase1.1.x is deployed on Hadoop 2.6.0 (partial distribution of three vm virtual machines)

HBase1.1.x is deployed on Hadoop 2.6.0 (partial distribution of three vm virtual machines) download hbase.apache official website Configure environment variable / etc/profile #hbase export HBASE_HOME=/usr/local/soft/hbase-1.1.5 export PATH=$PATH:$HBASE_HOME/bin Configure $HBase? Home / conf / h ...

Posted by kobayashi_one on Wed, 29 Jan 2020 02:19:51 -0800

C Note: object serialization and XML file

(1) Object serialization and deserialization 1) Insufficient text saving objects When the attributes of an object change, the number of information writes or reads needs to be increased or decreased; Poor information security; 2) New method of object saving: Use serialization and deserializati ...

Posted by somedude on Tue, 28 Jan 2020 20:12:03 -0800

The AOP operation of Spring's aspectj

  AOP concepts 1 aop: Aspect oriented programming, extensions do not modify the source code implementation.   2 aop takes the horizontal extraction mechanism instead of the traditional vertical inheritance system duplicate code.   3 aop underlying implementation using dynamic proxy (1) In t ...

Posted by fiddlehead_cons on Tue, 28 Jan 2020 17:45:25 -0800

Export jsp content to Excel table

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns:x="urn:schemas-microsoft-com:office:excel"> <script type="tex ...

Posted by satre on Tue, 28 Jan 2020 08:40:29 -0800

Spring AOP-01 pre enhanced MethodBeforeAdvice

1. Classes to enhance package com.test.springadvicetype; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.Date; /** * Attendants */ @Component public class Waiter { /** * service * @param name */ public String serve(String name) { System.ou ...

Posted by Emperio on Tue, 28 Jan 2020 07:50:07 -0800

Spring cloud basic tutorial - getting started with configuration center

My blog: Smile in Lanling Welcome to blog!    previous chapter Spring cloud basic tutorial (3) - Eureka advanced Among them, based on our basic understanding of Eureka, we have a deep understanding of some configurations used in Eureka high availability clusters and other production environments. This chapter begins to understand the ...

Posted by N-Bomb(Nerd) on Tue, 28 Jan 2020 05:56:34 -0800

Allow multiple lines in Android's EditText view?

How to allow multiple lines in the edit text view of Android? #1 building This is useful for me, in fact these two attributes are important: inputType and lines. In addition, you may need a scroll bar, and the following code shows how to make one: <EditText android:id="@+id/addr_edittext" android:layout_width="fill_p ...

Posted by fiddy on Tue, 28 Jan 2020 01:07:40 -0800

Android development case 2 - start and stop service in standard binding mode, and complete addition calculation

Android development case 2 - start and stop the service in the standard binding mode, and complete the addition calculation Preface 1. services When the startService() method is used to start the service, the execution life cycle method is onCreate(), onStartCommand(), and then the service is in the running state until the ...

Posted by PJ droopy pants on Mon, 27 Jan 2020 08:04:04 -0800