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
spring boot2 configuration FastJsonHttpMessageConverter does not work
Project uses custom FastJsonHttpMessageConverter for API data response JSON converter
In the original version of springboot1.X, it can take effect. The configuration is as follows:
/**
* Instead of using FastJson to parse the returned results
*/
@Override
public void configureMessageConverters(List<HttpMessageConver ...
Posted by psymonic on Fri, 03 Jan 2020 17:42:08 -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
Build hadoop HA high availability
Step 1: Cluster Planning
Step 2: set hosts
Step3: turn off the firewall
Step 4: turn off Selinux
Step5: Keyless login
Step 6: install jdk
#decompression
tar -xvf jdk-8u131-linux-x64.tar.gz
mv jdk1.8.0_131 /usr/local/jdk1.8
#Setting environment variables
vim /etc/profile
JAVA_HOME=/usr/local/jdk1.8/
JAVA_BIN=/usr/local/ ...
Posted by scriptkiddie on Fri, 03 Jan 2020 09:30:56 -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
Custom virtual machine installation (KVM)
Custom virtual machine installation
1, Create a virtual switch
Principle: call dnsmasq to provide DNS, DHCP and other functions
Create configuration file / etc/libvirt/qemu/networks/vbr.xml
<network>
<name>vbr</name>
<bridge name="vbr"/>
<forward mode="nat"/>
<ip address="192.168.1.2 ...
Posted by qt4u on Thu, 02 Jan 2020 16:12:10 -0800
Digital scroll control
In a previous project, there is a gold coin attribute. When you want to add gold coins, you need to scroll like a slot machine, find the information on the Internet, summarize it, and share it with you.
Let's start with the picture (git doesn't work, let's imagine)
Usage method
1. Create attrs.xml file under res/values to c ...
Posted by DrFishNips on Thu, 02 Jan 2020 15:11:44 -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
Course handout of Java product purchase
Getting started with spring datasolr
1.1 introduction to spring data Solr
While the ability to support any programming language has great market value, the question you may be interested in is: how can I
Is Solr's application integrated into Spring? Yes, Spring Data Solr is a framework developed to facilitate the development of ...
Posted by fwegan on Thu, 02 Jan 2020 03:05:29 -0800
On the SSM personal blog project, use the layui to complete the user paging operation
1. Understand the interaction between the front and back end of the layui, and the list of parameters passed and received
There are two parameters for the foreground to send the background:
One is page, that is, the page you defined, and the second is limit, that is, how many pieces of data are displayed in one page
Example ...
Posted by cirene on Wed, 01 Jan 2020 20:49:22 -0800