mycat sub database sub table enumeration sub section 1

1. Key xml configuration tables    server.xml The user tab specifies the account to access the database. <?xml version="1.0" encoding="UTF-8"?> <!-- - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - Y ...

Posted by austrainer on Sun, 02 Feb 2020 15:14:14 +0100

MyBatis3 - PageHelper

In the actual development, we always use paging query. Different database paging SQL methods are different. We can use paging plug-ins to help us separate queries. We only need to care about the data itself, not the place 1. Plug in introduction Configure the paging plug-in in the core configuratio ...

Posted by angryjohnny on Sun, 02 Feb 2020 12:01:48 +0100

Data store (file store, SharedPreferences, database store)

data storage File store, SharedPreferences, database store File store In the way of Java flow public class MainActivity extends AppCompatActivity { private EditText editText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.lay ...

Posted by theweirdone on Fri, 31 Jan 2020 18:42:22 +0100

AspectJ pointcut indicators - 06 within and @ within

target() Restrict connection point matching to a class of the specified type @target() Restrict join point matching target objects to classes annotated by specific annotations The function of within() is similar to that of execution(). The difference between the two is that the minimum range of connection points defined by w ...

Posted by zero_ZX on Thu, 30 Jan 2020 17:45:25 +0100

AspectJ tangent indicator-05-this

this() If the proxy class matches the specified class according to the type, then all connection points of the target class to be proxy match the tangent point In general, this() and target() are used to match and define pointcuts. They are equivalent. The difference between them is reflected in the specific performance of generating ...

Posted by zenix on Thu, 30 Jan 2020 15:05:05 +0100

Crawler - Data Crawling - xpath Parser

Xpath Preparatory knowledge HTML DOM model example The HTML DOM defines a standard way to access and manipulate HTML documents, representing them in a tree structure. How to parse the crawler data? 1. Locate nodes in html documents 2. Extract the properties of the specified node, such as href,cla ...

Posted by eddjc on Thu, 30 Jan 2020 02:18:49 +0100

AspectJ tangent indicator-02-@annotation

@annotation() Restrict matching of join points with specified annotations The final structure of each class is as follows: 1,Factory package com.test.aspectj.expression; /** * Factory interface */ public interface Factory { // Make products void make(); // transport void delivery(String address); } ...

Posted by jdc44 on Wed, 29 Jan 2020 18:09:59 +0100

Spring AOP-05-introduction enhanced IntroductionInterceptor

The goal of reference enhancement is to add some new methods and properties to the target class. Take the Waiter class as an example. Now you want to add a manage() method in the Management interface to it without modifying the code of the Waiter class. 1. Classes to enhance package com.test.springadvicetype; import org.springframework.s ...

Posted by gabaod on Wed, 29 Jan 2020 17:41:29 +0100

Read the source code of mybatis -- Interceptor

Reprinted from Read the source code of mybatis (8) -- Interceptor 1 Intercetor MyBatis allows you to make intercept calls at some point during the execution of mapped statements. By default, MyBatis allows the use of plug-ins to intercept method calls including: Executor (update, query, flushState ...

Posted by steelmanronald06 on Mon, 27 Jan 2020 06:01:59 +0100

ContentProvider, one of the four components of Android

Last time I talked about Activity, this time I talked about ContentProvider, one of the four components of Android 1. What is ContentProvider ContentProvider is one of the four components of Android content provider Function: data interaction & sharing between processes, i.e. cross process communication 2.uri introduc ...

Posted by InternetX on Sun, 26 Jan 2020 15:59:52 +0100