How to configure Tomcat 9.0 in Maven
The default version of Tomcat used in Maven is 6.0, which is not applicable in many development applications. The commonly used Tomcat plug-ins on the Internet are Tomcat 7-maven-plugin version 2.2,
3.0-r1655215 of tomcat8-maven-plugin (this version needs to be downloaded on the image server, and the specific configuration is as follows)
Add ...
Posted by prinzcy on Sat, 08 Feb 2020 06:10:09 -0800
activiti global process listens to ActivitiEventListener, which realizes listening to different types of events. It is very convenient without configuring task listening in acitivit
If we want to configure monitoring for tasks, it's the normal way
One by one configuration, it's more troublesome.
Now use ActivitiEventListener to listen to global events, judge different event types, and then execute different business logic.
1. Define event handler interface
Using interfaces to define uniform conventions
public interface Eve ...
Posted by rd2010 on Sat, 08 Feb 2020 06:07:21 -0800
Automatic test model of learning notes
Modular instance
The code is shown as follows in mailbox 126:
from selenium import webdriver
driver = webdriver.Firefox()
driver.implicitly_wait(10)
driver.get("http://www.126.com")
#Land
driver.find_element_by_link_text("Password login").click()
#Find the frame layer where the user name and password ...
Posted by Abz on Sat, 08 Feb 2020 02:30:52 -0800
Android - mixed use of ViewPager and Fragment
ViewPager is often used to connect fragments. It is very convenient to manage the life cycle of each page. Using ViewPager to manage fragments is a standard adapter implementation. The most commonly used implementations are fragmentpager adapter and fragmentstatepager adapter. By adding a ViewPager to t ...
Posted by jcrensha627 on Fri, 07 Feb 2020 07:01:16 -0800
In Django forms, how do I set a field to read-only (or disabled) so that it cannot be edited?
In Django forms, how do I make fields read-only (or disabled)?
When creating a new entry using a form, all fields should be enabled - however, some fields must be read-only when the record is in update mode.
For example, when creating a new Item model, all fields must be editable, but when updating records, is there a way to disable the ...
Posted by Tonka1979 on Fri, 07 Feb 2020 00:42:47 -0800
RabbitMQ learn the basic knowledge of three message queues
1, Basic knowledge
(1) Provider
Message producer is the procedure of message delivery.
(2) Consumer
Message consumers are message receiving programs
(3) Messaging when message queuing is not used
(4) Message passing method after using message queue
(5) What is message queuing
A queue is like a warehouse ...
Posted by corporateboy on Wed, 05 Feb 2020 05:46:48 -0800
How to quickly build a Spark distributed architecture for big data
Build our Spark platform from scratch
1. Preparing the centeros environment
In order to build a real cluster environment and achieve a highly available architecture, we should prepare at least three virtual machines as cluster nodes. So I bought three Alibaba cloud servers as our cluster nodes.
...
Posted by knelson on Tue, 04 Feb 2020 23:47:57 -0800
MyBatis interface binding and multiparameter
Article Directory
MyBatis Interface Binding Scheme and Multi-parameter Passing
map mode for multiparameter transfer
Interface Binding
Interface for multiparameter delivery
MyBatis Interface Binding Scheme and Multi-parameter Passing
In addition and deletion checks of MyBatis, it is found that ...
Posted by TRB on Tue, 04 Feb 2020 19:39:38 -0800
DrawerLayout sideslip and NavigationView use and stepping on the pit
First, let's go on the renderings. After all, there is no renderings. I don't know if it's the effect you want. When I see half of them, I find they are not very annoyingAdd dependency
implementation 'com.android.support:design:28.0.0'
Use in layout
<?xml version="1.0" encoding="utf-8"?>
< ...
Posted by Simon180 on Tue, 04 Feb 2020 06:22:19 -0800
Using fastDFS client to transform file upload
java client
Mr. Yu Qing provides a java client, but as a C programmer, the Java code written can be imagined. And it's been a long time since maintenance.
Here we recommend an open source FastDFS client that supports the latest spring boot 2.0.
It is very simple to configure and use. It supports c ...
Posted by changeback on Tue, 04 Feb 2020 04:55:40 -0800