xml file bad instructions do not allow matching

xml file bad instructions do not allow matching Problem description The xml file in Eclipse reported the following error: The processing instruction target matching "[xX][mM][lL]" is not allowed. The error file is empty-configuration.xml in hadoop-common project in Hadoop 2.7.1 source code. The directory of this file in the project is as f ...

Posted by Rayman3.tk on Fri, 03 Jan 2020 21:27:30 -0800

How can spring automatically assemble bean s?

The autowire parameter of the < bean > node in the spring configuration file can control how beans are automatically assembled Default - the default is the same as "no" no - does not auto assemble, requires < ref / > nodes or parameters byName - assemble by name byType - assemble by type Constructor - assemble ac ...

Posted by jagat21 on Fri, 03 Jan 2020 18:08:32 -0800

Design of tcp packet protocol class by python

1, Problem description In tcp programming, the most important problem to be solved is packet sticking. Therefore, we need to add the length of each packet in front of each packet to divide the conglutinated packets.   2, Design of package structure Package composition: package length + data field Packet length: store the l ...

Posted by scotchegg78 on Fri, 03 Jan 2020 11:00:51 -0800

android studio develops custom buttons and basic animation

Design sketch: This time it mainly records how to change the shape of the button. First, in the project app > res > drawable folder, right-click new to create a drawable return file, and then name the drawable file. Then write the code to control the key shape in the new drawable xml file. The code is as follows: &l ...

Posted by truCido on Fri, 03 Jan 2020 10:48:46 -0800

A simple way to use WebView in android learning notes

Android learning notes Refer to the second edition of the first line of code and the second edition of android programming authority guide In the development process, we want our App to have the function of visiting web pages, but we don't want to use a third-party browser. So here we introduce the WebView technology, which ...

Posted by brob on Fri, 03 Jan 2020 01:16:54 -0800

Rearrangement of singer's information by Vue music (7)

The data returned from QQ music is not what we want, so we need to process res.data.list to facilitate dom operation _getSingerList () { getSingerList().then((res) => { if (res.code === ERR_OK) { this.singer = res.data // The data is not object Type so change to object this.list = this._nom ...

Posted by wrongmove18 on Thu, 02 Jan 2020 21:57:57 -0800

Spring boot configuration Servlet, Filter, Listener

Spring boot configuration Servlet, Filter, Listener In spring boot applications, the embedded Servlet 3.0 + container will not directly use the ServletContainerInitializer and WebApplicationInitializer, that is, the Servlet, Filter and Listener configurations implemented through the above two interfaces are invalid, which is to prevent the desi ...

Posted by srikanth03565 on Thu, 02 Jan 2020 09:29:34 -0800

Simple JAVA crawler 51Jobs

Using the Jsoup tool, it is an HTML parser that can directly parse an address or HTML file. You can also manipulate data through Dom,CSS, and operation methods of type JQuery. Official document address of Jsoup: https://jsoup.org/cookbook/introduction/parsing-a-document Note: in case of garbled code, you need to check the encoding method of the ...

Posted by RootKit on Thu, 02 Jan 2020 08:54:52 -0800

Android progress bar / waiting to load - rotate small dot effect

Progress bar / wait to load - rotate small dot effect 1 Effect Picture The static image doesn't work, so update the article and attach the github address. 2, thinking 12 small circle points stacked (i=0,1,...11) Animation 1: rotate from 0 degree to 30*i degree Animation 2: rotate from 30*i degrees to 360 degrees Since ...

Posted by frizzo on Thu, 02 Jan 2020 04:17:25 -0800

Percentage + background icon progress bar

Recently, there is a demand for project development, in fact, it is the commonly used percentage progress bar. There are a lot of materials on this function, not to mention much. The function I mentioned below is to add a background icon to the percentage text on the basis of the original. The effect chart is as follows: Onl ...

Posted by Scummy12 on Wed, 01 Jan 2020 16:08:04 -0800