- Qt QTableWidget 触摸屏上滑动效果
hss2799
Qt
要实现QTableWidget在触摸屏上,滑动记录,记录会跟着滑动,只需要加QScroller*pScroller=QScroller::scroller(tablewidget);pScroller->grabGesture(tablewidget,QScroller::LeftMouseButtonGesture);tablewidget->setVerticalScrollMode(QLis
- ios7 手势滑动切换ViewController 问题总结
wxcswd
ios
在handleGesture函数中注意ViewController的dismiss应该放在caseUIGestureRecognizerStateBegan滑动切换dismiss掉之后,必须在present出该ViewController的响应函数中添加判断if(!self.presentedViewController)//presentedViewController在其头文件中说明为read
- 2.12 UITapGestureRecognizer手势之双击 [iOS开发-Xcode教程]
互动教程网
1.在欢迎窗口右侧的历史项目列表中,双击打开之前创建的单视图项目模板。image2.本节课将为您演示,如何给视图对象添加手势,使视图对象能够检测到手指的双击操作。首先在一个空白项目中,打开视图控制器的代码文件。image3.接着开始编写代码,实现这项功能。image4.首先初始化一个原点在(32,80),宽度和高度都是256的矩形常量,作为视图的显示区域。image5.然后创建一个相应尺寸的图像视
- 基于mediapipe+opencv+autopy的人机交互系统python源码+文档说明+运行截图
奋斗奋斗再奋斗的ajie
毕业设计人机交互
文章目录源码下载地址项目介绍项目功能界面预览项目备注源码下载地址源码下载地址点击这里下载代码项目介绍手势识别的人机交互系统基于mediapipe+opencv+autopy的人机交互系统功能通过手势实现对电脑的操作,如鼠标左右键,键盘的上下键(可对PPT进行翻页)运行gesture_control_Win.py即可所需环境python==3.8mediapipeopencv-pythonnumpy
- POP返回手势和右滑手势冲突
有点意思_
最近项目里有个需求,页面中有个展示View点击放大到全屏时,右滑手势需要让这个展示View缩小,只有在这个展示View缩小状态时滑动的POP才好使。经过百度:先写self.navigationController.interactivePopGestureRecognizer.delegate=(id)self;然后通过self.navigationController.interactivePo
- 封装了一个iOS评论弹窗
刘小哈哈哈
ioscocoamacos
封装了一个iOS类似抖音效果的评论弹窗,可以跟手滑动的效果主要有下面两需要注意的点双手势响应因为我们的弹窗既要支持拖动整体上下滑动,还要支持内容列表的滑动,所以,我们需要在内容视图中添加一个滑动的手势,以此来滑动弹窗并且要支持同时响应,同时要注意,支持同时响应并不是同时滑动,而是支持手指在列表中的时候,可以响应弹窗的手势-(BOOL)gestureRecognizer:(UIGestureReco
- 【Harmony OS 4.0】交互事件(手势事件)
卿卿qing
HarmonyOS4.0
1.绑定手势方法1.1gesture(常规手势绑定方法)1.2priorityGesture(带优先级的手势绑定方法)1.3parallelGesture(并行手势绑定方法)可以在父子组件上绑定。可以同时响应的相同手势。当父组件绑定了并行手势parallelGesture时,父子组件相同的手势事件都可以触发,实现类似冒泡效果。2.单一手势2.1TapGesture-点击手势支持单次点击和多次点击,
- Android 手写viewpager
哈龙_99
android
以下是一个简化的ViewPager实现示例:importandroid.content.Contextimportandroid.util.AttributeSetimportandroid.view.GestureDetectorimportandroid.view.MotionEventimportandroid.view.Viewimportandroid.view.ViewGroupimp
- #say something#
onetwo3go
image.pngafewpeoplestandingaroundtolookatawhitecar,infrontofwhich,amanwearingacostumeintheStarWarswithhislefthandholdingagan,whilehisrighthandmakingagesturetotellthedriverinthewhitecartostoprightthere
- WKWebView逐级返回
杏子_2fd0
最近需要对WKWebView加载的页面添加逐级返回功能,考虑了两种实现方案。第一种方案:直接打开WKWebView的滑动切换功能_webView.allowsBackForwardNavigationGestures=true:至此,当存在多级页面是,就可以左右滑动,实现逐级切换了第二中方案:禁用WKWebView的滑动切换功能_webView.allowsBackForwardNavigatio
- Flutter滑动冲突处理——GestureDetector嵌套ListView
哈喽,我是老刘几年前分享了一篇GestureDetector嵌套ListView的文章Flutter多控件滑动事件联动(滑动冲突处理)由于文章中只给出了关键部位的代码,另外使用的技术也偏底层所以很多同学私信我要完整的源码这里把原先的方案整理一下,另外也给出完整的代码供大家参考我们先一点一点来看这个问题滑动关闭组件首先大家一定在各种App中见过这个滑动关闭组件就是手指向下滑动,组件跟随手指移动手指抬
- Blazor入门100天 : 自做一个手势滑动组件
Densen2014
BlazorBlazorhybird/MAUIBlazorBlazor组件数据库服务器运维
####0.我想在blazor模仿app实现触摸返回,下拉刷新…现在用blazor做app(blazorhybird)和支持手机浏览页面越来越多,net8也推出了一个webappauto模式,可谓是极大的利好,2024让auto流行起来,配套源码demohttps://blazor.app1.es/b20Gesture####1.新建net8blazor工程b20Gesture至于用什么模式大家各
- Android矩阵Matrix动画缩放Bitmap移动手指触点到ImageView中心位置,Kotlin
zhangphil
kotlinAndroidandroidkotlin
Android矩阵Matrix动画缩放Bitmap移动手指触点到ImageView中心位置,Kotlin借鉴Android双指缩放ScaleGestureDetector检测放大因子大图移动到双指中心点ImageView区域中心,Kotlin(2)-CSDN博客在此基础上实现手指在屏幕上点击后,动画放大图片,在放大过程中,移动手指触点位置到ImageView的中心。importandroid.co
- 【SwiftUI】手势(Gestures)的使用
SmartisanBool
这篇文章主要了解在SwiftUI中如何使用手势,以及对@GestureState的学习,最后通过组合手势完成写一个拖拽卡片的小Demo。GesturemodifierSwiftUI提供了一系列的手势支持,比如TapGesture,DragGesture,RotationGesture,MagnificationGesture,LongPressGesture等。我们可以通过对View添加modif
- Swift的手势点击事件和tableView点击事件冲突
symBoy
解决方法:给手势添加代理方法:UIGestureRecognizerDelegateextensionUIViewController:UIGestureRecognizerDelegate{funcgestureRecognizer(_gestureRecognizer:UIGestureRecognizer,shouldReceivetouch:UITouch)->Bool{ifNSStrin
- Swift-子视图 不触发 添加到父视图的Tap手势
时光燕
为父View添加tap手势lettap=UITapGestureRecognizer.init(target:self,action:#selector(self.dismissView))tap.delegate=self//设置tap手势代理self.view.addGestureRecognizer(tap)//添加tap手势实现tap手势的代理方法extensionIESpeechView
- 鸿蒙开发系列教程(十五)--gesture 手势事件
huazi99
鸿蒙harmonyos华为
gesture手势事件手势操作是指在移动设备上使用手指或手势进行与应用程序交互的方式。手势操作可以包括点击、滑动、双击、捏合等动作,用于实现不同的功能和操作。gesture常规手势参考代码:@Entry@ComponentstructTest03{build(){Column(){Text('常规手势').fontSize(28).gesture(//加载单击手势TapGesture().onAc
- ReactNative实现的横向滑动条
xvzhengyang
ReactNative前端reactnativesliderHorizntalSlider
OK,我们先看下效果图注意使用到了两个库1.react-native-linear-gradient2.react-native-gesture-handlerok,我们看下面的代码import{Image,TouchableWithoutFeedback,StyleSheet,View}from'react-native';importLinearGradientfrom'react-nativ
- Android ANR问题基本分析方法
汤圆拓海
androidjava
对于ANR问题的介绍,首先可以参考google的官方文档ANR一、ANR的种类ANR的问题表现为以下4种:输入调度超时:如果您的应用在5秒内未响应输入事件(例如按键或屏幕触摸)。日志的标志性打印为://输入事件未响应的日志打印Reason:Inputdispatchingtimedout([GestureMonitor]edge-swipe(server)isnotresponding.Waite
- Flutter 自定义缩放控件
StoneHui
最近在学习Flutter,俗话说的好,纸上得来终觉浅,所以动手撸了一个gank.io的APP,有兴趣的可以到GitHub看看源码。本文将与大家分享项目中自定义的缩放控件GestureZoomBox。功能双击缩放。双指缩放。以双击位置/双指位置作为缩放中心。限制缩放/拖动范围,超过范围自动回弹。作为父级Widget直接嵌套,无侵入。demo_big_image.gif核心原理手势识别GestureD
- 【Unity】Unity 常用插件
是嘟嘟啊
UnityUnity基础功能Unity项目管理unity游戏开发游戏引擎
NGUI,算是最常用的UI插件了,下载地址:https://download.csdn.net/download/xiaoyaoACi/21028754FingerGestures,顾名思义,这个是支持移动设备所有触摸事件的插件,包括点击,滑动,还有自定义手势等等,云盘:http://pan.baidu.com/s/1mgDp5GkEasyTouch,也是用于移动平台上的RPG类的游戏,这里有篇文
- 双语美文|我从未曾去过的地方
读出英文之美
SomewhereIhavenevertraveled我从未曾去过的地方byE.E.CummingsSomewhereIhavenevertraveled,gladlybeyondanyexperience,那是我从未曾去过的地方,愉悦的超越了所有的体会,youreyeshavetheirsilence:你的眼睛是那样的静默:inyourmostfrailgesturearethingswhich
- iOS之WKWebView 的Cookie读取与注入 解决登录同步
羽裳有涯
开发个新项目,全部用web端,就原生的几个tabbar,于是选择了WKWebView,把遇到的问题总结下。WKWebView手势返回/*!@abstractABooleanvalueindicatingwhetherhorizontalswipegestureswilltriggerback-forwardlistnavigations.@discussionThedefaultvalueisNO
- ScaleGestureDetector 在两指距离较短时,不能缩放
Mars-xq
前端
来源ScaleGestureDetector在两指距离较短时,不能缩放一、问题分析调试了发现,当手指距离很短的时候detector.getScaleFactor()等于1,基本不动,那肯定不会缩放了。没办法只能去到ScaleGestureDetector的源码,发现如果要回调onScale(ScaleGestureDetectordetector),则它的条件如下:if(action==Motio
- 推荐10款笔者一直在使用的Chrome提效插件
JavaNice哥
javachrome前端
推荐10款笔者一直在使用的Chrome提效插件本文推荐的10款插件笔者一直在用,部分插件可能有点冷门,但绝壁是提升效率的好帮手,在我眼里是必备插件。笔者已创建GitHub仓库,欢迎分享、讨论。一起打造最强Chrome插件集。1.CrxMouseChrome™Gestures作用:高度可自定义的鼠标手势、超级拖拽、鼠标滚轮手势、遥感手势,提升工作效率。官方网站:https://crxmouse.co
- FlingGestureHandler - react-native-gesture-handler
JamesSawyer
文档来源:FlingGestureHandler分离类型handler,当动作足够长并且快时激活。当handler被激活,手指释放是,state将变为END。如果handler在激活之前,手指就松开了,handler将识别失败,iOS中使用UISwipeGestureRecognizer实现,而Android中是自定义实现。属性(properties)属性除了公用属性外,下面是FlingGestu
- iOS 使用touchBegan隐藏键盘后,UIButton和UITableView上的点击事件不响应
wangxiao001
隐藏键盘操作,是开发中常见操作。一般,我们可以通过下面的方式,来隐藏键盘。隐藏键盘的处理逻辑如下:-(void)viewDidLoad{-(void)touchesBegan{[superviewDidLoad];。。。。。。。。。。UITapGestureRecognizer*tap=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:
- flutter 五点一点三:简简单单小画板
魑魅魍魉都是鬼
flutter
classCextendsStatefulWidget{@overrideStatecreateState()=>CState();}classCStateextendsState{Listpoints=[];@overrideWidgetbuild(BuildContextcontext){returnScaffold(body:MouseRegion(child:GestureDetector
- Flutter中深入了解MaterialApp,常用属性解析
可可鸭~
Flutter移动开发flutteriosandroid
一、Flutter中结构图FlutterFrameworkFoundation、Animation、Painting、Gestures合成了DartUI层,对应的是Flutter中dart:ui包,对应的含义是动画、手势、绘制能力。Rendering层是一个抽象布局层,依赖于DartUI层,Rendering层会构建一个UI树、当UI树有变化时,会计算出有变化的部分,然后更新UI树,最终绘制在屏幕
- Flutter 点击空白的地方让软键盘消失
A HandSome Man
flutter前端
在Flutter中,你可以通过在Scaffold的body上添加一个GestureDetector来实现点击空白处隐藏键盘的操作。下面是一个示例代码:import'package:flutter/material.dart';classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){returnMateri
- 枚举的构造函数中抛出异常会怎样
bylijinnan
javaenum单例
首先从使用enum实现单例说起。
为什么要用enum来实现单例?
这篇文章(
http://javarevisited.blogspot.sg/2012/07/why-enum-singleton-are-better-in-java.html)阐述了三个理由:
1.enum单例简单、容易,只需几行代码:
public enum Singleton {
INSTANCE;
- CMake 教程
aigo
C++
转自:http://xiang.lf.blog.163.com/blog/static/127733322201481114456136/
CMake是一个跨平台的程序构建工具,比如起自己编写Makefile方便很多。
介绍:http://baike.baidu.com/view/1126160.htm
本文件不介绍CMake的基本语法,下面是篇不错的入门教程:
http:
- cvc-complex-type.2.3: Element 'beans' cannot have character
Cb123456
springWebgis
cvc-complex-type.2.3: Element 'beans' cannot have character
Line 33 in XML document from ServletContext resource [/WEB-INF/backend-servlet.xml] is i
- jquery实例:随页面滚动条滚动而自动加载内容
120153216
jquery
<script language="javascript">
$(function (){
var i = 4;$(window).bind("scroll", function (event){
//滚动条到网页头部的 高度,兼容ie,ff,chrome
var top = document.documentElement.s
- 将数据库中的数据转换成dbs文件
何必如此
sqldbs
旗正规则引擎通过数据库配置器(DataBuilder)来管理数据库,无论是Oracle,还是其他主流的数据都支持,操作方式是一样的。旗正规则引擎的数据库配置器是用于编辑数据库结构信息以及管理数据库表数据,并且可以执行SQL 语句,主要功能如下。
1)数据库生成表结构信息:
主要生成数据库配置文件(.conf文
- 在IBATIS中配置SQL语句的IN方式
357029540
ibatis
在使用IBATIS进行SQL语句配置查询时,我们一定会遇到通过IN查询的地方,在使用IN查询时我们可以有两种方式进行配置参数:String和List。具体使用方式如下:
1.String:定义一个String的参数userIds,把这个参数传入IBATIS的sql配置文件,sql语句就可以这样写:
<select id="getForms" param
- Spring3 MVC 笔记(一)
7454103
springmvcbeanRESTJSF
自从 MVC 这个概念提出来之后 struts1.X struts2.X jsf 。。。。。
这个view 层的技术一个接一个! 都用过!不敢说哪个绝对的强悍!
要看业务,和整体的设计!
最近公司要求开发个新系统!
- Timer与Spring Quartz 定时执行程序
darkranger
springbean工作quartz
有时候需要定时触发某一项任务。其实在jdk1.3,java sdk就通过java.util.Timer提供相应的功能。一个简单的例子说明如何使用,很简单: 1、第一步,我们需要建立一项任务,我们的任务需要继承java.util.TimerTask package com.test; import java.text.SimpleDateFormat; import java.util.Date;
- 大端小端转换,le32_to_cpu 和cpu_to_le32
aijuans
C语言相关
大端小端转换,le32_to_cpu 和cpu_to_le32 字节序
http://oss.org.cn/kernel-book/ldd3/ch11s04.html
小心不要假设字节序. PC 存储多字节值是低字节为先(小端为先, 因此是小端), 一些高级的平台以另一种方式(大端)
- Nginx负载均衡配置实例详解
avords
[导读] 负载均衡是我们大流量网站要做的一个东西,下面我来给大家介绍在Nginx服务器上进行负载均衡配置方法,希望对有需要的同学有所帮助哦。负载均衡先来简单了解一下什么是负载均衡,单从字面上的意思来理解就可以解 负载均衡是我们大流量网站要做的一个东西,下面我来给大家介绍在Nginx服务器上进行负载均衡配置方法,希望对有需要的同学有所帮助哦。
负载均衡
先来简单了解一下什么是负载均衡
- 乱说的
houxinyou
框架敏捷开发软件测试
从很久以前,大家就研究框架,开发方法,软件工程,好多!反正我是搞不明白!
这两天看好多人研究敏捷模型,瀑布模型!也没太搞明白.
不过感觉和程序开发语言差不多,
瀑布就是顺序,敏捷就是循环.
瀑布就是需求、分析、设计、编码、测试一步一步走下来。而敏捷就是按摸块或者说迭代做个循环,第个循环中也一样是需求、分析、设计、编码、测试一步一步走下来。
也可以把软件开发理
- 欣赏的价值——一个小故事
bijian1013
有效辅导欣赏欣赏的价值
第一次参加家长会,幼儿园的老师说:"您的儿子有多动症,在板凳上连三分钟都坐不了,你最好带他去医院看一看。" 回家的路上,儿子问她老师都说了些什么,她鼻子一酸,差点流下泪来。因为全班30位小朋友,惟有他表现最差;惟有对他,老师表现出不屑,然而她还在告诉她的儿子:"老师表扬你了,说宝宝原来在板凳上坐不了一分钟,现在能坐三分钟。其他妈妈都非常羡慕妈妈,因为全班只有宝宝
- 包冲突问题的解决方法
bingyingao
eclipsemavenexclusions包冲突
包冲突是开发过程中很常见的问题:
其表现有:
1.明明在eclipse中能够索引到某个类,运行时却报出找不到类。
2.明明在eclipse中能够索引到某个类的方法,运行时却报出找不到方法。
3.类及方法都有,以正确编译成了.class文件,在本机跑的好好的,发到测试或者正式环境就
抛如下异常:
java.lang.NoClassDefFoundError: Could not in
- 【Spark七十五】Spark Streaming整合Flume-NG三之接入log4j
bit1129
Stream
先来一段废话:
实际工作中,业务系统的日志基本上是使用Log4j写入到日志文件中的,问题的关键之处在于业务日志的格式混乱,这给对日志文件中的日志进行统计分析带来了极大的困难,或者说,基本上无法进行分析,每个人写日志的习惯不同,导致日志行的格式五花八门,最后只能通过grep来查找特定的关键词缩小范围,但是在集群环境下,每个机器去grep一遍,分析一遍,这个效率如何可想之二,大好光阴都浪费在这上面了
- sudoku solver in Haskell
bookjovi
sudokuhaskell
这几天没太多的事做,想着用函数式语言来写点实用的程序,像fib和prime之类的就不想提了(就一行代码的事),写什么程序呢?在网上闲逛时发现sudoku游戏,sudoku十几年前就知道了,学生生涯时也想过用C/Java来实现个智能求解,但到最后往往没写成,主要是用C/Java写的话会很麻烦。
现在写程序,本人总是有一种思维惯性,总是想把程序写的更紧凑,更精致,代码行数最少,所以现
- java apache ftpClient
bro_feng
java
最近使用apache的ftpclient插件实现ftp下载,遇见几个问题,做如下总结。
1. 上传阻塞,一连串的上传,其中一个就阻塞了,或是用storeFile上传时返回false。查了点资料,说是FTP有主动模式和被动模式。将传出模式修改为被动模式ftp.enterLocalPassiveMode();然后就好了。
看了网上相关介绍,对主动模式和被动模式区别还是比较的模糊,不太了解被动模
- 读《研磨设计模式》-代码笔记-工厂方法模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* 工厂方法模式:使一个类的实例化延迟到子类
* 某次,我在工作不知不觉中就用到了工厂方法模式(称为模板方法模式更恰当。2012-10-29):
* 有很多不同的产品,它
- 面试记录语
chenyu19891124
招聘
或许真的在一个平台上成长成什么样,都必须靠自己去努力。有了好的平台让自己展示,就该好好努力。今天是自己单独一次去面试别人,感觉有点小紧张,说话有点打结。在面试完后写面试情况表,下笔真的好难,尤其是要对面试人的情况说明真的好难。
今天面试的是自己同事的同事,现在的这个同事要离职了,介绍了我现在这位同事以前的同事来面试。今天这位求职者面试的是配置管理,期初看了简历觉得应该很适合做配置管理,但是今天面
- Fire Workflow 1.0正式版终于发布了
comsci
工作workflowGoogle
Fire Workflow 是国内另外一款开源工作流,作者是著名的非也同志,哈哈....
官方网站是 http://www.fireflow.org
经过大家努力,Fire Workflow 1.0正式版终于发布了
正式版主要变化:
1、增加IWorkItem.jumpToEx(...)方法,取消了当前环节和目标环节必须在同一条执行线的限制,使得自由流更加自由
2、增加IT
- Python向脚本传参
daizj
python脚本传参
如果想对python脚本传参数,python中对应的argc, argv(c语言的命令行参数)是什么呢?
需要模块:sys
参数个数:len(sys.argv)
脚本名: sys.argv[0]
参数1: sys.argv[1]
参数2: sys.argv[
- 管理用户分组的命令gpasswd
dongwei_6688
passwd
NAME: gpasswd - administer the /etc/group file
SYNOPSIS:
gpasswd group
gpasswd -a user group
gpasswd -d user group
gpasswd -R group
gpasswd -r group
gpasswd [-A user,...] [-M user,...] g
- 郝斌老师数据结构课程笔记
dcj3sjt126com
数据结构与算法
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- yii2 cgridview加上选择框进行操作
dcj3sjt126com
GridView
页面代码
<?=Html::beginForm(['controller/bulk'],'post');?>
<?=Html::dropDownList('action','',[''=>'Mark selected as: ','c'=>'Confirmed','nc'=>'No Confirmed'],['class'=>'dropdown',])
- linux mysql
fypop
linux
enquiry mysql version in centos linux
yum list installed | grep mysql
yum -y remove mysql-libs.x86_64
enquiry mysql version in yum repositoryyum list | grep mysql oryum -y list mysql*
install mysq
- Scramble String
hcx2013
String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
- 跟我学Shiro目录贴
jinnianshilongnian
跟我学shiro
历经三个月左右时间,《跟我学Shiro》系列教程已经完结,暂时没有需要补充的内容,因此生成PDF版供大家下载。最近项目比较紧,没有时间解答一些疑问,暂时无法回复一些问题,很抱歉,不过可以加群(334194438/348194195)一起讨论问题。
----广告-----------------------------------------------------
- nginx日志切割并使用flume-ng收集日志
liyonghui160com
nginx的日志文件没有rotate功能。如果你不处理,日志文件将变得越来越大,还好我们可以写一个nginx日志切割脚本来自动切割日志文件。第一步就是重命名日志文件,不用担心重命名后nginx找不到日志文件而丢失日志。在你未重新打开原名字的日志文件前,nginx还是会向你重命名的文件写日志,linux是靠文件描述符而不是文件名定位文件。第二步向nginx主
- Oracle死锁解决方法
pda158
oracle
select p.spid,c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c where p.addr=a.paddr and a.process=b.process and c.object_id=b.
- java之List排序
shiguanghui
list排序
在Java Collection Framework中定义的List实现有Vector,ArrayList和LinkedList。这些集合提供了对对象组的索引访问。他们提供了元素的添加与删除支持。然而,它们并没有内置的元素排序支持。 你能够使用java.util.Collections类中的sort()方法对List元素进行排序。你既可以给方法传递
- servlet单例多线程
utopialxw
单例多线程servlet
转自http://www.cnblogs.com/yjhrem/articles/3160864.html
和 http://blog.chinaunix.net/uid-7374279-id-3687149.html
Servlet 单例多线程
Servlet如何处理多个请求访问?Servlet容器默认是采用单实例多线程的方式处理多个请求的:1.当web服务器启动的