- 8080端口被占用怎么解决?
码农博士
Tomcat
输入netstat-ano|findstr“8080”找到占用该端口的进程PID,本机为3864输入tasklist|findstr3864获取占用程序名称,我的电脑为ApplicationWebServertaskkill/f/t/imApplicationWebServer.exe将NIApplicationWebSerer服务设置为手动或禁用
- Linux如何查看端口
lanhuazui10
linux操作系统linux
方法一:lsof-i:端口号用于查看某一端口的占用情况,比如查看9092端口使用情况,lsof-i:9095可以看到9095端口已经被nginx占用方法二:netstat-tunlp|grep端口号,用于查看指定的端口号的进程情况,如查看5050端口的情况,netstat-tunlp|grep5050-t(tcp)仅显示tcp相关选项-u(udp)仅显示udp相关选项-n拒绝显示别名,能显示数字的
- Linux环境常用的一些网络相关的命令
编码小哥
Linux网络
在Linux环境中,处理网络相关任务有很多强大的命令行工具可用。下面列出了一些常用的网络相关命令及其简要说明:1.ping用于测试与另一台计算机的连接是否正常。示例:pingwww.example.com2.traceroute/tracert用来跟踪数据包从你的机器到目标主机所经过的路径。示例:traceroutewww.example.com3.netstat显示网络连接、路由表、接口统计等信
- [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试
lgc0208
服务器网络socket
在使用Tensorboard的过程中,遇到报错[WinError10013]以一种访问权限不允许的方式做了一个访问套接字的尝试可能原因:当前端口被占用。解决方案:以6006端口为例,首先打开命令行,输入命令:netstat-aon|findstr"6006"查找当前正在占用6006端口的进程PID。查询到对应进程PID后,打开任务管理器,点击详细信息,找到PID对应的进程关闭即可。
- linux查看网络链接的具体进程
lonelyhiker
linux网络运维
问题linux上有多个程序,都在访问同一个数据库,如何知道哪些网络连接,是由那个程序的进程发出的,通过netstat看不出具体是那个进程产生的链接。解决方案1在Linux上,如果你想查看哪个进程发起了对数据库的网络连接,netstat不提供直接的进程信息,但是你可以使用ss和lsof命令,结合PID(进程ID)来识别。方法1:使用ss命令ss是一种显示套接字统计信息的工具,类似于netstat,但
- linux查看某进程的连接,linux下查看指定进程的所有连接信息(转)
weixin_39850062
linux查看某进程的连接
定位某个进程的网络故障时经常需要用到的一个功能就是查找所有连接的信息。通常查找某个端口的连接信息使用ss或者netstat可以轻松拿到,如果是主动与别的机器建立的连接信息则可以通过lsof命令来获得。例如我想要查看进程frps当前的所有连接信息,先获得进程的pid:ps-ef|grepfrps结果为:wcl:?::./frps可以看到进程pid为4721,之后通过lsof命令查看所有TCP连接信息
- 系统信息性能模块psutil
浅水鲤鱼
linux运维服务器
psutil是一个跨平台库(第三方库/模块),能够获取系统进程进程及CPU,内存,磁盘、网络使用率等信息;主要用于监控系统,分析和限制系统资源及进程的管理它实现了n多个同等命令行工具实现的功能,如ps、top、lsof、netstat、ifconfig、who、df、kill、free、nice、ionice、iostat、iotop、uptime、pidof、tty、taskset、pmap等命
- 服务器访问端口命令
书中自有妍如玉
后端php开发语言
服务器访问端口命令是一组用于管理服务器端口的命令行指令。服务器端口是用于与外部设备或应用程序进行通信的逻辑通道,它允许数据在服务器和其他设备之间传输。以下是一些常见的服务器访问端口命令。netstat:这个命令用于检查服务器上当前的网络连接和网络统计信息。可以使用netstat-a命令列出服务器上所有的开放端口和它们的状态。telnet:这个命令允许用户远程连接到服务器,并在命令行上执行操作。可以
- 1 - Linux网络设置
活老鬼
Linux网络服务linux网络服务器
目录一、查看网络配置1.ifconfig命令-查看网络接口信息2.hostname命令-查看主机名称3.route命令-查看路由表条目二、查看网络连接情况1.nestat命令2.ss命令3.netstat命令与ss命令的区别4.lsof命令(ListOpenFiles)-列出系统中打开的文件的命令行工具三、测试网络连接1.ping命令-测试网络连通性2.traceroute-跟踪数据包的路由途径3
- 转载的--------待整理
青木原树海之森
MTK平台Android知识android
Launcher总结:1、launcher的布局太居中,要想两边拉伸40dp40dpappstab栏的宽度(Launcher2icon数目、大小)\packages\apps\Launcher2\res\layout-sw720dp\workspace.xml>launcher:cellCountX="10"launcher:cellCountY="6"2、或者不想改数目:protectedvoi
- Liunx最常用命令
陈恒源
1.系统命令命令帮助命令名-help查看ip地址ipaddr清屏clear重启reboot关机shutdown关闭防火墙systemctlstopfirewalld查看端口号占用情况netstat-tnlp|grep:222.文件命令创建文件touch文件名复制/剪切/删除cp/mv/rm文件名查看文件命令more/less/head/tail文件名模糊搜索grep-行号关键字文件名复制文件cp-
- 【Linux命令】进程、端口查询命令
iku!!
Linuxlinux服务器运维
1、根据进程ID查询占用的端口号netstat-nlp|grep[进程ID]2、根据端口号查询占用它的进程IDlsof-i:[端口号]或者netstat-nlp|grep[端口号]
- 10086端口占用 虚拟机vmnat.exe Windows查看端口占用
tanzongbiao
windows
10086端口占用是虚拟机的vmnat.exeWindows查看端口占用netstat-ano|findstr"10086"taskkill/f/t/im"19716"杀不掉,提示:错误:无法终止PID19716(属于PID1104子进程)的进程。查看是什么程序占用的此端口号
- 在Windows中,杀死端口占用
小丁学Java
计算机网络windows命令行windows
要杀死占用某个端口的进程,可以按照以下步骤进行操作:进程ID就是PID打开命令提示符窗口(Windows)或终端(Linux/macOS)。输入命令netstat-ano|findstr"端口号",其中“端口号”是要查找的端口号。例如,如果要查找占用端口8080的进程,可以输入netstat-ano|findstr"8080"。这个命令会列出所有占用该端口的进程及其对应的PID(进程号)。Micr
- Linux网络设置
Amrian_robot
linux网络运维
目录一、查看网络配置1.查看网络接口信息ifconfig1.1查看所以活动的网络接口信息1.2查看指定网络接口信息2.查看主机名称hostname2.1hostname命令2.2永久设置主机名3.查看路由表条目route3.1route命令二、查看网络连接情况1.查看网络连接情况netstat(即端口扫描)2.获取socket统计信息——ss2.1ss命令概述2.2ss选项2.3netstat命令
- 在网络安全中常见的windows和linux命令
阿贾克斯的黎明
网络安全笔记网络安全
Linux命令:网络扫描与监测:nmap:强大的网络扫描工具,可用于发现主机、扫描端口、确定操作系统类型等。例如,nmap-sS192.168.1.0/24进行SYN扫描一个IP网段;nmap-p80,443example.com扫描特定主机的80和443端口1。netstat:显示网络连接状态、路由表、接口统计等信息。如netstat-tuln查看正在监听的TCP和UDP端口。tcpdump:用
- Linux系统性能调优技巧
jie201107
linux
Linux系统性能调优是一个复杂的过程,涉及到多个层面的优化,包括硬件、操作系统、应用程序等。以下是一些常见的Linux系统性能调优技巧:1.**监控系统性能**:-使用工具如`top`,`htop`,`vmstat`,`iostat`,`mpstat`,`netstat`等来监控系统资源使用情况。2.**优化磁盘I/O**:-使用`noatime`挂载选项减少磁盘写入。-调整`swappines
- 如何检查端口占用:netstat和lsof指令
Mark White
服务器运维
在网络故障排查和系统管理中,检查端口占用情况是一项常见且重要的任务。本文将详细介绍如何使用netstat和lsof这两个强大的工具来检查端口占用和相关服务。1.使用netstat查看端口占用netstat(networkstatistics)是一个用于显示网络连接、路由表、接口统计等信息的命令行工具。1.1最常用的netstat命令netstat-an这是最常用的形式,让我们解析其参数:-a:显示
- 题解 | #netstat-查看和3306端口建立的连接#
2301_79125431
java
经纬恒润Java一面4.19个人情况:本硕成绩情况;学习的相关课程项目1:FFmpeg如何实现视频的处理;音视频分离和音频切片的题解|#重载小于号##includeusingnamespacestd;class笔试小公司word笔试有没有必要写[尴尬],感觉贼简单结果秒挂题解|#小招喵跑步#importsysforlineinsys.stdin:#这里面2n到达的位置应该是快速上手Postman工
- 快速删除前端vue项目的依赖
代码老祖
前端vscodevue.js
npminstallrimraf-grimrafnode_modules有些时候项目启动不在希望的端口,解除端口占用8080是被占用的端口netstat-ano|findstr:808011120是找到的进程taskkill/PID11120/F在网页创建新分支devgitremoteupdateorigin-p//更新远程分支gitbranch-a//查看所有分支gitcheckoutdev//
- Ubuntu 16.04下开启Mysql 3306端口远程访问
忘了呼吸的那只猫
前言网上看到很多开启Mysql远程访问端口,修改的配置文件我都没有找到。特意查看了我的Linux版本$sudolsb_release-a显示如下:DistributorID:UbuntuDescription:Ubuntu16.04.1LTSRelease:16.04Codename:xenial1.查看3306端口是否正常root@node1:~#netstat-an|grep3306tcp00
- 无法向会话状态服务器发出会话状态请求。请确保 ASP.NET State Service (ASP.NET 状态服务)已启动,并且客户端端口与服务器端口相同。如果服务器位于远程计算机上,请检查 ...
Allen_f58e
无法向会话状态服务器发出会话状态请求。请确保ASP.NETStateService(ASP.NET状态服务)已启动,并且客户端端口与服务器端口相同。如果服务器位于远程计算机上,请检查HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection的值,确保服务器接受远
- 【shell常用指令整理】
半夏知半秋
linuxlinux开发语言
shell常用指令整理greplessmorecatawknetstattailfheadpstopdudffindsedgrep用于在文件中搜索指定模式的内容greptrace-ctest.log:查看test.log中匹配到trace的个数greptrace-c*-l:查看所有文件中匹配到trace的文件名greptrace-C5test.log:查看test.lua中所有匹配到trace所在
- windows下用cmd命令netstat查看系统端口使用情况
wmh188
转:https://www.cnblogs.com/lvxiuquan/archive/2012/08/22/2650507.html开始--运行--cmd进入命令提示符输入netstat-ano即可看到所有连接的PID之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列"。经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,
- linux中netstat命令详解及常见用法
树下的码农
linux计算机网络
在Linux使用过程中,需要了解当前系统开放了哪些端口,并且要查看开放这些端口的具体进程和用户,可以通过netstat命令进行简单查询1.netstat命令各个参数说明-a或–all显示所有连线中的Socket。-A或–列出该网络类型连线中的相关地址。-c或–continuous持续列出网络状态。-C或–cache显示路由器配置的快取信息。-e或–extend显示网络其他相关信息。-F或–fib显
- centos7常用命令总结(不断更新中)
乌拉队长
服务器
netstat–nat查看正在监听的端口firewall-cmd--permanent--query-port=22/tcp//查看防火墙22端口启用状态yes为打开,no为关闭firewall-cmd--permant--add-port=22/tcp//为防火墙打开22端口firewall-cmd--permant--list-ports//查看防火墙所有已开启端口systemctlstopf
- 端口号被占用怎么解决
三月37
java服务器前端
1、快捷键"win+R"打开运行,在其中输入"cmd"命令,回车键打开命令提示符。2、进入窗口后,输入"netstat-ano"命令,可以用来查看所有窗口被占用的情况。比如端口号为7680的端口被占用了,我们先找到该端口号对应的PID为5168。或使用运行打开cmd,直接输入“netstat-aon|find"8080"”,回车。查看被占用端口对应的PID。3、最后输入命令"taskkill-pi
- shell脚本 curl 和 wget访问 注册自启脚本 定时任务
开过光的猫
Linuxlinux运维
curl检测项目是否启动脚本#!/bin/sh#获取中间件进程ID/opt/AAS/domainsAASService=$(netstat-nlp|grep16602|awk'{print$7}'|awk-F"/"'{print$1}')#中间件启动程序(中间件需要注意这里注意中间件实际安装的路径)StartAAS=/opt/AAS/domains/服务名/bin/startapusic#定义要监
- 【安全狐】Netstat命令详解
安全狐
网络基础DOS命令Netstat网络基础DOS命令Netstat
Netstat命令详解Netstat:在InternetRFC标准中,[Netstat是在内核中访问网络连接状态及其相关信息的程序,它能提供TCP连接,TCP和UDP监听,进程内存管理的相关报告。]Netstat是控制台命令,是一个监控TCP/IP网络的非常有用的工具,它[可以显示路由表、实际的网络连接以及每一个网络接口设备的状态信息。]Netstat用于显示与IP、TCP、UDP和ICMP协议相
- centos7 没有netstat 和 ifconfig命令问题
信仰与初衷
由于安装的centos7是最小版,运行下发现没有netstat和ifconfig命令,下面运行命令安装查找命令在哪个包里面yumsearchifconfig发现ifconfig在net-tools.x86_64里面,所以运行yuminstallnet-tools如此则OK了,其他的软件没有,也可以按照上面的方法安装
- SAX解析xml文件
小猪猪08
xml
1.创建SAXParserFactory实例
2.通过SAXParserFactory对象获取SAXParser实例
3.创建一个类SAXParserHander继续DefaultHandler,并且实例化这个类
4.SAXParser实例的parse来获取文件
public static void main(String[] args) {
//
- 为什么mysql里的ibdata1文件不断的增长?
brotherlamp
linuxlinux运维linux资料linux视频linux运维自学
我们在 Percona 支持栏目经常收到关于 MySQL 的 ibdata1 文件的这个问题。
当监控服务器发送一个关于 MySQL 服务器存储的报警时,恐慌就开始了 —— 就是说磁盘快要满了。
一番调查后你意识到大多数地盘空间被 InnoDB 的共享表空间 ibdata1 使用。而你已经启用了 innodbfileper_table,所以问题是:
ibdata1存了什么?
当你启用了 i
- Quartz-quartz.properties配置
eksliang
quartz
其实Quartz JAR文件的org.quartz包下就包含了一个quartz.properties属性配置文件并提供了默认设置。如果需要调整默认配置,可以在类路径下建立一个新的quartz.properties,它将自动被Quartz加载并覆盖默认的设置。
下面是这些默认值的解释
#-----集群的配置
org.quartz.scheduler.instanceName =
- informatica session的使用
18289753290
workflowsessionlogInformatica
如果希望workflow存储最近20次的log,在session里的Config Object设置,log options做配置,save session log :sessions run ;savesessio log for these runs:20
session下面的source 里面有个tracing 
- Scrapy抓取网页时出现CRC check failed 0x471e6e9a != 0x7c07b839L的错误
酷的飞上天空
scrapy
Scrapy版本0.14.4
出现问题现象:
ERROR: Error downloading <GET http://xxxxx CRC check failed
解决方法
1.设置网络请求时的header中的属性'Accept-Encoding': '*;q=0'
明确表示不支持任何形式的压缩格式,避免程序的解压
- java Swing小集锦
永夜-极光
java swing
1.关闭窗体弹出确认对话框
1.1 this.setDefaultCloseOperation (JFrame.DO_NOTHING_ON_CLOSE);
1.2
this.addWindowListener (
new WindowAdapter () {
public void windo
- 强制删除.svn文件夹
随便小屋
java
在windows上,从别处复制的项目中可能带有.svn文件夹,手动删除太麻烦,并且每个文件夹下都有。所以写了个程序进行删除。因为.svn文件夹在windows上是只读的,所以用File中的delete()和deleteOnExist()方法都不能将其删除,所以只能采用windows命令方式进行删除
- GET和POST有什么区别?及为什么网上的多数答案都是错的。
aijuans
get post
如果有人问你,GET和POST,有什么区别?你会如何回答? 我的经历
前几天有人问我这个问题。我说GET是用于获取数据的,POST,一般用于将数据发给服务器之用。
这个答案好像并不是他想要的。于是他继续追问有没有别的区别?我说这就是个名字而已,如果服务器支持,他完全可以把G
- 谈谈新浪微博背后的那些算法
aoyouzi
谈谈新浪微博背后的那些算法
本文对微博中常见的问题的对应算法进行了简单的介绍,在实际应用中的算法比介绍的要复杂的多。当然,本文覆盖的主题并不全,比如好友推荐、热点跟踪等就没有涉及到。但古人云“窥一斑而见全豹”,希望本文的介绍能帮助大家更好的理解微博这样的社交网络应用。
微博是一个很多人都在用的社交应用。天天刷微博的人每天都会进行着这样几个操作:原创、转发、回复、阅读、关注、@等。其中,前四个是针对短博文,最后的关注和@则针
- Connection reset 连接被重置的解决方法
百合不是茶
java字符流连接被重置
流是java的核心部分,,昨天在做android服务器连接服务器的时候出了问题,就将代码放到java中执行,结果还是一样连接被重置
被重置的代码如下;
客户端代码;
package 通信软件服务器;
import java.io.BufferedWriter;
import java.io.OutputStream;
import java.io.O
- web.xml配置详解之filter
bijian1013
javaweb.xmlfilter
一.定义
<filter>
<filter-name>encodingfilter</filter-name>
<filter-class>com.my.app.EncodingFilter</filter-class>
<init-param>
<param-name>encoding<
- Heritrix
Bill_chen
多线程xml算法制造配置管理
作为纯Java语言开发的、功能强大的网络爬虫Heritrix,其功能极其强大,且扩展性良好,深受热爱搜索技术的盆友们的喜爱,但它配置较为复杂,且源码不好理解,最近又使劲看了下,结合自己的学习和理解,跟大家分享Heritrix的点点滴滴。
Heritrix的下载(http://sourceforge.net/projects/archive-crawler/)安装、配置,就不罗嗦了,可以自己找找资
- 【Zookeeper】FAQ
bit1129
zookeeper
1.脱离IDE,运行简单的Java客户端程序
#ZkClient是简单的Zookeeper~$ java -cp "./:zookeeper-3.4.6.jar:./lib/*" ZKClient
1. Zookeeper是的Watcher回调是同步操作,需要添加异步处理的代码
2. 如果Zookeeper集群跨越多个机房,那么Leader/
- The user specified as a definer ('aaa'@'localhost') does not exist
白糖_
localhost
今天遇到一个客户BUG,当前的jdbc连接用户是root,然后部分删除操作都会报下面这个错误:The user specified as a definer ('aaa'@'localhost') does not exist
最后找原因发现删除操作做了触发器,而触发器里面有这样一句
/*!50017 DEFINER = ''aaa@'localhost' */
原来最初
- javascript中showModelDialog刷新父页面
bozch
JavaScript刷新父页面showModalDialog
在页面中使用showModalDialog打开模式子页面窗口的时候,如果想在子页面中操作父页面中的某个节点,可以通过如下的进行:
window.showModalDialog('url',self,‘status...’); // 首先中间参数使用self
在子页面使用w
- 编程之美-买书折扣
bylijinnan
编程之美
import java.util.Arrays;
public class BookDiscount {
/**编程之美 买书折扣
书上的贪心算法的分析很有意思,我看了半天看不懂,结果作者说,贪心算法在这个问题上是不适用的。。
下面用动态规划实现。
哈利波特这本书一共有五卷,每卷都是8欧元,如果读者一次购买不同的两卷可扣除5%的折扣,三卷10%,四卷20%,五卷
- 关于struts2.3.4项目跨站执行脚本以及远程执行漏洞修复概要
chenbowen00
strutsWEB安全
因为近期负责的几个银行系统软件,需要交付客户,因此客户专门请了安全公司对系统进行了安全评测,结果发现了诸如跨站执行脚本,远程执行漏洞以及弱口令等问题。
下面记录下本次解决的过程以便后续
1、首先从最简单的开始处理,服务器的弱口令问题,首先根据安全工具提供的测试描述中发现应用服务器中存在一个匿名用户,默认是不需要密码的,经过分析发现服务器使用了FTP协议,
而使用ftp协议默认会产生一个匿名用
- [电力与暖气]煤炭燃烧与电力加温
comsci
在宇宙中,用贝塔射线观测地球某个部分,看上去,好像一个个马蜂窝,又像珊瑚礁一样,原来是某个国家的采煤区.....
不过,这个采煤区的煤炭看来是要用完了.....那么依赖将起燃烧并取暖的城市,在极度严寒的季节中...该怎么办呢?
&nbs
- oracle O7_DICTIONARY_ACCESSIBILITY参数
daizj
oracle
O7_DICTIONARY_ACCESSIBILITY参数控制对数据字典的访问.设置为true,如果用户被授予了如select any table等any table权限,用户即使不是dba或sysdba用户也可以访问数据字典.在9i及以上版本默认为false,8i及以前版本默认为true.如果设置为true就可能会带来安全上的一些问题.这也就为什么O7_DICTIONARY_ACCESSIBIL
- 比较全面的MySQL优化参考
dengkane
mysql
本文整理了一些MySQL的通用优化方法,做个简单的总结分享,旨在帮助那些没有专职MySQL DBA的企业做好基本的优化工作,至于具体的SQL优化,大部分通过加适当的索引即可达到效果,更复杂的就需要具体分析了,可以参考本站的一些优化案例或者联系我,下方有我的联系方式。这是上篇。
1、硬件层相关优化
1.1、CPU相关
在服务器的BIOS设置中,可
- C语言homework2,有一个逆序打印数字的小算法
dcj3sjt126com
c
#h1#
0、完成课堂例子
1、将一个四位数逆序打印
1234 ==> 4321
实现方法一:
# include <stdio.h>
int main(void)
{
int i = 1234;
int one = i%10;
int two = i / 10 % 10;
int three = i / 100 % 10;
- apacheBench对网站进行压力测试
dcj3sjt126com
apachebench
ab 的全称是 ApacheBench , 是 Apache 附带的一个小工具 , 专门用于 HTTP Server 的 benchmark testing , 可以同时模拟多个并发请求。前段时间看到公司的开发人员也在用它作一些测试,看起来也不错,很简单,也很容易使用,所以今天花一点时间看了一下。
通过下面的一个简单的例子和注释,相信大家可以更容易理解这个工具的使用。
- 2种办法让HashMap线程安全
flyfoxs
javajdkjni
多线程之--2种办法让HashMap线程安全
多线程之--synchronized 和reentrantlock的优缺点
多线程之--2种JAVA乐观锁的比较( NonfairSync VS. FairSync)
HashMap不是线程安全的,往往在写程序时需要通过一些方法来回避.其实JDK原生的提供了2种方法让HashMap支持线程安全.
- Spring Security(04)——认证简介
234390216
Spring Security认证过程
认证简介
目录
1.1 认证过程
1.2 Web应用的认证过程
1.2.1 ExceptionTranslationFilter
1.2.2 在request之间共享SecurityContext
1
- Java 位运算
Javahuhui
java位运算
// 左移( << ) 低位补0
// 0000 0000 0000 0000 0000 0000 0000 0110 然后左移2位后,低位补0:
// 0000 0000 0000 0000 0000 0000 0001 1000
System.out.println(6 << 2);// 运行结果是24
// 右移( >> ) 高位补"
- mysql免安装版配置
ldzyz007
mysql
1、my-small.ini是为了小型数据库而设计的。不应该把这个模型用于含有一些常用项目的数据库。
2、my-medium.ini是为中等规模的数据库而设计的。如果你正在企业中使用RHEL,可能会比这个操作系统的最小RAM需求(256MB)明显多得多的物理内存。由此可见,如果有那么多RAM内存可以使用,自然可以在同一台机器上运行其它服务。
3、my-large.ini是为专用于一个SQL数据
- MFC和ado数据库使用时遇到的问题
你不认识的休道人
sqlC++mfc
===================================================================
第一个
===================================================================
try{
CString sql;
sql.Format("select * from p
- 表单重复提交Double Submits
rensanning
double
可能发生的场景:
*多次点击提交按钮
*刷新页面
*点击浏览器回退按钮
*直接访问收藏夹中的地址
*重复发送HTTP请求(Ajax)
(1)点击按钮后disable该按钮一会儿,这样能避免急躁的用户频繁点击按钮。
这种方法确实有些粗暴,友好一点的可以把按钮的文字变一下做个提示,比如Bootstrap的做法:
http://getbootstrap.co
- Java String 十大常见问题
tomcat_oracle
java正则表达式
1.字符串比较,使用“==”还是equals()? "=="判断两个引用的是不是同一个内存地址(同一个物理对象)。 equals()判断两个字符串的值是否相等。 除非你想判断两个string引用是否同一个对象,否则应该总是使用equals()方法。 如果你了解字符串的驻留(String Interning)则会更好地理解这个问题。
- SpringMVC 登陆拦截器实现登陆控制
xp9802
springMVC
思路,先登陆后,将登陆信息存储在session中,然后通过拦截器,对系统中的页面和资源进行访问拦截,同时对于登陆本身相关的页面和资源不拦截。
实现方法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23