Seven notes of ssh integration combined with xml

1. In the previous pure xml mode, we have many configuration files. We can use annotation and xml to develop. In this way, our configuration files will be much less. At the same time, we can directly see the configuration in the class, so that we can quickly build a ssh integration project First of all, we should consider: what do we need to re ...

Posted by FraXTC on Wed, 01 Apr 2020 16:31:22 -0700

Android imitation Alipay numeric keypad

brief introduction In some apps with payment function, the password can only be a pure number. Although we can specify that the EditText input box can only be a number, in order to provide user experience, we tend to use a custom pure number keyboard. Effect of this paper: Customize KeyboardView Implementation steps: ...

Posted by rationalrabbit on Wed, 01 Apr 2020 11:56:38 -0700

Remember a packet scan error

For a long time, I was very distressed about the problem of unable to inject dependency. For similar problems, I made the following summary: 1. For distributed architecture If the prompt indicates that the dependency cannot be injected, consider which project is not referenced. For the war package, all references should be made, for example:   ...

Posted by shams on Wed, 01 Apr 2020 11:06:51 -0700

Simple use of memcached java client

Simple use of memcached java client Start Memcached server ./memcached -d -m10 -u root -l 192.168.1.106 -p 2222 -c 256 -P /tmp/memcached.pid -The d option is to start a Daemons -m is the amount of memory allocated to Memcache, in MB, here is 10MB -u is the user running Memcache, here is r oot -l is the IP address ...

Posted by parkej60 on Wed, 01 Apr 2020 10:24:20 -0700

[Java crawler] use Xpath + HtmlUnit to crawl basic information of web page

I. Preface Using Jsoup + HttpClient (combination I) can basically crawl a lot of information we need. The combination of Xpath + HtmlUnit (combination II) is even more powerful, and it can be competent for combination I no matter in terms of selection or analysis. Here is a simple example to show the main technologies: ① simul ...

Posted by collette on Wed, 01 Apr 2020 08:42:47 -0700

java refactoring ActionServlet to reduce the configuration item code of Web.xml

Two fatal disadvantages of Servlet (interview questions): There are many configuration items in web.xml file: due to the increase of Servlet, a large number of Servlet configurations will be generated Servlet has container dependency reason: HttpServletRequest and HttpServletResponse objects are created by the Web container when a servlet proc ...

Posted by Paavero on Wed, 01 Apr 2020 08:34:57 -0700

Spring learning journey (7) comparison of AOP programming based on XML configuration and AspectJ annotation configuration

This blog uses a slightly complex case to compare the differences between AOP programming based on XML configuration and AspectJ annotation configuration. Related to the introduction of packages and other Spring AOP programming preparation, please refer to other blog posts in the small edition. Case requirements: Write a simple calculator to re ...

Posted by Kinneh on Wed, 01 Apr 2020 06:21:33 -0700

Implementing Http server in Golang and parsing header parameters and form parameters

In HTTP service, header parameters and form parameters are often used. This article is mainly to practice how to parse the parameters and form parameters in the header of HTTP request in Go language. The specific code is as follows: package server import ( "net/http" "strconv" "fmt" ) func HttpStart(port int) { http.HandleFunc(" ...

Posted by KCAstroTech on Wed, 01 Apr 2020 05:54:39 -0700

Four components of Android content resolver

ContentResolver For complete code see: longlong's github Standard format for content URI s:   content://com.example.app.provider.table1   content://com.example.app.provider.table2 The content URI is mainly composed of two parts: authority and path. The authority is generally named by package name. Path: disti ...

Posted by nainil on Wed, 01 Apr 2020 01:40:07 -0700

RadioButton icon resizes (TextView also works)

There is no corresponding layout parameter for the icon size of RadioButton. In this paper, the RadioButton is customized by means of custom attribute to control the image size. Key points of this paper: Use of custom properties. Solve the problem of customizing the size of icons on the top, bottom, left and right of RadioButton text. This m ...

Posted by TimSawyers on Tue, 31 Mar 2020 22:18:46 -0700