File upload using fileupload component
Reasons for using fileupload components:
The Request object provides a getInputStream() method through which the data submitted by the client can be read, but since users may upload multiple files at the same time, it is a very troublesome task to program and parse these uploaded data in the servlet. To facilitate developers to process file u ...
Posted by vig0 on Sat, 29 Jun 2019 10:50:05 -0700
Relations and differences between Java filters and Spring MVC interceptors, Java listeners
1. Java filters:
1. In Java Web, the incoming request and response filter out some information in advance, set some parameters in advance, set the character set uniformly, control whether to log in, and then process it in the incoming Servlet.
2. Filter Chain: In a Web application, you can write multiple filters, which together are ca ...
Posted by drbigfresh on Fri, 28 Jun 2019 16:53:19 -0700
shiro realizes user kickout function
It seems that most of the Java Web community still knows Kaitao's name. Many people's introductory tutorials such as spring mvc, spring, shiro started with Kaitao's blog.
Shiro's single-user login function is also referenced from Kaitao's blog code. Chapter 18 Concurrent Login Number Control --"Learn Shiro from Me"
Then the realizat ...
Posted by blt2589 on Fri, 28 Jun 2019 15:15:20 -0700
Android Project Confusion Series 2
When the project goes online, it often encounters confusion. The previous article has outlined some common pits, as well as the areas needing confusion. This article is a supplement to the previous article, but also some pits encountered recently.
First of all, I would like to talk about the pit I encountered this time, which is the circular ...
Posted by sixdollarshirt on Thu, 27 Jun 2019 17:23:10 -0700
Summary of kafka learning knowledge points
I. server.properties in kafka configuration file
#broker's global unique number, not duplicated
broker.id=0
#The port used to listen for links, where producer or consumer will establish a connection
port=9092
#Number of threads processing network requests
num.network.threads=3
#Off-the-shelf quantities used to process disk IO
nu ...
Posted by fellixombc on Thu, 27 Jun 2019 14:32:08 -0700
Under Windows, complete the gRPC Java example step by step
This paper gives a Java example of using Google RPC (grpc) to complete rpc step by step under Windows.~
This article will explain from the following parts.
Generate code automatically according to proto - Write proto file, and automatically generate code required by gRPC under window s according to tools
Code Composition - Gives the ...
Posted by emceej on Thu, 27 Jun 2019 13:00:02 -0700
Use and Analysis of [Curator] Shared Lock
Shared Lock
and Shared Reentrant Lock Similar, but not reentrant
> A complete distributed lock means that there will be no two holders for the same lock at the same time point. That is, at the same time, the same lock, there is at most one holder.
1. Key API s
org.apache.curator.framework.recipes.locks.InterProcessSemaphoreMutex
2. Mechanism ...
Posted by duckula on Wed, 26 Jun 2019 14:05:19 -0700
cordova3.X uses grunt to generate plugin custom plug-in skeleton
Cordova provides a set of device-related API s through which mobile applications can access native device functions such as cameras, microphones and so on in JavaScript. Cordova also provides a unified set of JavaScript class libraries, as well as native background code for devices used in these libraries.
I. Installation of c ...
Posted by codepoet on Wed, 26 Jun 2019 13:59:06 -0700
Use and Analysis of [Curator] Path Cache
Path Cache
Path Cache is actually used to monitor zk nodes. Path Cache can respond to changes in the state and data of the set of child nodes, whether it is added, updated or removed.
1. Key API s
org.apache.curator.framework.recipes.cache.PathChildrenCache
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent
org.apache.curator.fra ...
Posted by JohnResig on Sun, 23 Jun 2019 14:33:50 -0700
Use meerkat for service monitoring and service downgrade
meerkat is the service monitoring and service downgrade basic component developed by iQIYI mobile service side team. It mainly solves the problem of success rate, response time and QPS index monitoring when calling external interface. At the same time, when the success rate drops below the preset threshold, the call of external interface is aut ...
Posted by wiley on Sun, 23 Jun 2019 12:34:17 -0700