Spring Boot unveiling and actual combat: RabbitMQ
Spring Boot integrates RabbitMQ
Spring Boot is very easy to integrate RabbitMQ. It only needs two steps.
First, add RabbitMQ dependency in pom.xml.
org.springframework.boot
spring-boot-starter-amqp
The second step is to configure the information in src/main/resources/application.properties.
#rabbitmq
spring.rabbitmq.host=local ...
Posted by Jenling on Sun, 05 Jan 2020 03:05:15 -0800
Easy to use Popupwindow by Kotlin
Summary
XPopupWindow, which further encapsulates and strengthens the PopupWindow of the system for easy use. With Kotlin language, many additional functions are provided, such as setting the position of the pop-up window, adjusting the animation of the pop-up window and so on.
Project address
XPopupWindow
preview
C ...
Posted by Seraph on Sun, 05 Jan 2020 00:00:10 -0800
Javascript formatting and highlighting xml strings
Javascript formatting and highlighting xml strings
Two key points
Parsing xml with DOMParser
Recursively traverses the xml tree and outputs each node in a format
About using DOMParser
This method is currently supported in IE9 and other browsers, so we are not writing about the situation that is not supported in IE9 or below. Please skip to fo ...
Posted by aznkidzx on Sat, 04 Jan 2020 20:57:08 -0800
Android ring progress bar
Share a circular progress bar for your reference, project address
https://download.csdn.net/download/weixin_40998254/10595267
The effect is as follows
The following is the code of the custom progress bar. It is a simple version at present, but the comments are very detailed and easy to expand.
The first is the code of cus ...
Posted by ev5unleash on Sat, 04 Jan 2020 14:20:39 -0800
Using Baidu map api in Android
Preparatory work: before use, you need to apply for API Key on Baidu developer platform, which is not covered here. You can query the article by yourself.
1, Modify the AndroidManifest.xml file to add permissions and API keys. The following are permissions needed (the annotation part is because the project has been added befor ...
Posted by bcarlson on Sat, 04 Jan 2020 13:46:00 -0800
Separation of reading and writing of mysql through mycat
The master-slave configuration of mysql follows the configuration of the previous blog: https://www.cnblogs.com/MasterSword/p/9434169.html
MYCAT download address: http://www.mycat.io/
Trial version: Mycat-server-1.6-release
# cd /usr/local
# mv ~/Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz /usr/local
# tar -zxvf Mycat-server-1.6-RELEA ...
Posted by bla5e on Sat, 04 Jan 2020 07:06:32 -0800
Configuration problems in SSM project
When creating a spring + spring MVC + mybatis project, you first need to configure some corresponding configuration files. Here is a brief introduction of the simplest requirements for these configuration files.
1 Mybatis.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xml ...
Posted by nut legend on Sat, 04 Jan 2020 06:53:37 -0800
Several ways for Android buttons to implement click events
1, Anonymous internal mode
This method seems simple and easy to understand on the whole, and is commonly used by individuals
xml layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_heig ...
Posted by SiriusB on Sat, 04 Jan 2020 04:55:23 -0800
Android's ScrollView simple use case
Contents
1. Vertical scrolling: Scroll
2. Horizontal scrolling: HorizontalScrollView
Vertical scrolling: Scroll
Horizontal Scrollview
ScrollView is called ScrollView. When the pixels of a screen cannot be displayed, it can be displayed on the UI in a sliding way
1. Vertical scrolling: Scroll
Create a new ...
Posted by ale1981 on Fri, 03 Jan 2020 22:04:36 -0800
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