- 页面报错 POST 413错误 (Request Entity Too Large)
小黑屋说YYDS
踩坑nginxjavalinux服务器
一般来说是服务器使用nginx作为反向代理出现的问题,post请求长度超过了nginx默认的缓存大小和最大客户端最大请求大小。解决方式如下,更该nginx代理配置:在nginx.conf配置文件中,找到http{}代码块,添加如下配置client_max_body_size20m;重启nginx即可。
- nginx部署前端项目的一些配置【刚入门】
weixin_30847271
运维前端ViewUI
前期准备:在linux上安装nginx,我用的是腾讯云centos7服务器,具体的安装过程可以到腾讯云的开发者实验室里体验,自己先试试水。修改nginx.conf配置文件,我用到的修改只是以下的部分。1.端口号2.项目的存放位置server{listen8088default_server;#访问的端口号。listen[::]:8088default_server;server_name_;#ro
- 使用docker搭建nginx文件下载服务器
for英杰
linuxnginx服务器docker
一、概述这篇文章介绍使用docker搭建nginx文件下载服务器,主要有两个步骤:在宿主机配置nginx.conf文件挂载宿主机的nginx.conf文件和下载路径到容器的对应路径二、配置步骤1、在宿主机配置nginx.conf文件创建文件夹/data/docker/nginx(作为挂载nginx需要的文件)包含1.nginx.conf配置文件2.download目录作为存储下载源文件nginx.
- nginx: [emerg] unknown directive “stub_status“ in D:\nginx-1.20.2/conf/nginx.conf:31
夜雪一千
nginx运维
在Nginx的配置文件中遇到unknowndirective"stub_status"错误通常意味着stub_status模块没有被编译到Nginx中,或者该模块的配置位置不正确。stub_status模块是Nginx的一个内置模块,用于提供Nginx服务器的状态信息,但它可能不是所有Nginx安装的默认部分,尤其是在某些特定的构建或发行版中。以下是一些解决这个问题的步骤:1.确认Nginx是否包
- Nginx配置SSL证书
忘了呼吸的那只猫
Nginx配置SSL证书,前提是Nginx安装成功和SSL证书已经获取。在我们下载的证书文件中有一个Nginx的文件夹,这里面的两个文件都是需要的。我们需要把这个两个文件上传到linux服务器中,推荐放到/etc/ssl/目录下然后我们需要去找到nginx的配置文件。ps-ef|grepnginx可以看到nginx的目录是/usr/local/nginx那么我们需要找到nginx.conf文件并修
- nginx 部署前端项目的详细步骤(vue项目build打包+nginx部署)_前端工程打包部署到nginx(2)
2401_84437170
程序员前端nginxvue.js
//开启服务1.startnginx.exe//cmd命令进入nginx文件夹后,使用该命令2.直接点击nginx目录下的nginx.exe//停止服务nginx-sstop//快速停止nginxnginx-squit//quit是完整有序的停止nginx//重新加载配置文件nginx-sreload//热加载####2.2.2默认配置**nginx-1.21.0\conf下的nginx.conf
- 要在nginx中配置后端三个服务器的轮询和加权
小七蒙恩
nginxnginx服务器运维
要在nginx中配置后端三个服务器的轮询和加权,你可以按照以下步骤进行配置:打开nginx的配置文件,一般位于/etc/nginx/nginx.conf或/etc/nginx/conf.d/default.conf。在http块内添加一个upstream块用于定义后端服务器列表。例如,我们定义一个名为backend的upstream块:http{upstreambackend{serverback
- Nginx中间件配置
message丶小和尚
中间件nginx中间件运维
Nginx中间件配置概要相关内容技术细节链接概要用于Linux服务器,Nginx中间件搭建。相关内容配置涵盖域名配置,TLS配置,及配置安全的加密算法,处理跨域问题,请求头问题等技术细节nginx.conf配置文件userroot;worker_processes2;error_log/var/log/nginx/error.logwarn;pid/var/run/nginx.pid;events
- RAGFlow 开源项目教程
戚展焰Beatrix
RAGFlow开源项目教程ragflowRAGFlow是一个基于深度文档理解的开源RAG(检索增强生成)引擎。项目地址:https://gitcode.com/gh_mirrors/ra/ragflow1.项目的目录结构及介绍RAGFlow项目的目录结构如下:ragflow/├──docker/│└──nginx/│├──proxy.conf│├──nginx.conf│└──ragflow.co
- nginx 配置详解
做个专注的工程师
#nginxnginx
基本命令nginx-t检查配置文件是否有语法错误nginx-sreload热加载,重新加载配置文件nginx-sstop快速关闭nginx-squit等待工作进程处理完成后关闭复制代码搭建好nginx服务器并启动过后,我们先看nginx默认配置,再逐个介绍不同使用场景。默认配置Nginx安装目录下,我们复制一份`nginx.conf`成`nginx.conf.default`作为配置文件备份,然后
- Nginx实现负载均衡以及跨域问题解决
kaico2018
服务器nginx
软负载和硬负载的区别软负载软负载是基于服务器安装的特定软件,比如:nginx实现负载均衡。硬负载硬负载均衡是基于固定的硬件实现负载均衡,比如:F5。基于Nginx实现反向代理在nginx.conf配置文件中配置如下:server{listen80;server_namewww.mayikt.com;#请求的域名#location/{proxy_passhttp://127.0.0.1:8080;#
- nginx下js文件修改后访问不更新问题解决
weixin_34013044
运维前端操作系统ViewUI
今天遇到一个问题,nginx下js修改后不更新,加版本号,刷新浏览器缓存都不行,重启服务器才行,修改后又不更新了而且加载的js文件会有乱码或者文件加载不全的问题。解决办法:修改nginx.conf,sendfileoff;http{sendfileoff;}重启nginx后问题解决。
- Nginx服务优化与防盗链
確定饿的猫
nginx运维
目录1.隐藏版本号2.修改用户和组3.缓存时间4.日志切割5.连接超时6.更改进程数7.配置网页压缩8.配置防盗链1.隐藏版本号隐藏版本号可以防止有人试图从某某版本的漏洞攻击网站方法一:修改配置文件vim/usr/local/nginx/conf/nginx.conf在http模块下http{includemime.types;default_typeapplication/octet-strea
- Nginx的配置文件
StoicD
Javanginxphp运维
Nginx的配置文件配置文件位置:/usr/local/nginx/conf/nginx.conf除去注释后的配置文件内容:worker_processes1;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-stream;sendfileon;keepalive_timeout6
- 使用nginx做代理转发
qiaosaifei
nginx运维
需求1:通过监听服务器的80端口,将请求转发到另一台服务器的8070端口打开nginx/nginx.conf文件server{listen80;server_namelocalhost;location/analys{proxy_passhttp://10.xx.xx.xx:8070/;}}需求2:通过监听服务器的80端口,将请求转发到另两台服务器的8070端口;打开nginx/nginx.con
- 【Docker】【nginx】docker安装nginx并映射宿主机配置文件地址
小丛的知识窝
nginxdocker运维
dockerrun-d-p80:80-v/root/docker/docker-nginx/nginx.conf:/etc/nginx/nginx.conf-v/root/docker/docker-nginx/html:/usr/share/nginx/html-v/root/docker/docker-nginx/logs:/var/log/nginx--namenginxnginx
- nginx配置ssl证书
Apex Predator
nginxnginxssl运维
一、前言相对于http来说,使用ssl证书加密的https更为安全,http传输的数据是明文的,容易被窃听和篡改,而https通过SSL/TLS加密,防止了中间人攻击和数据泄露,保障了通信的机密性和完整性,提供了更高的安全性,但是相对来说http由于不涉及加密解密等过程,通常比HTTPS稍微快一些二、配置需要ssl的公有证书,可以在阿里云上免费申请一个,将证书解压后,放在nginx.conf的同级
- Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf
坦笑&&life
运维nginxsslhttp
Nginx:[emerg]the“ssl“parameterrequiresngx_http_ssl_modulein/usr/local/nginx/conf/nginx.confNginx:[emerg]the“ssl“parameterrequiresngx_http_ssl_modulein/usr/local/nginx/conf/nginx.conf解决问题先来看看Nginx的版本吧:
- linux内网使用nginx代理上外网
笨死了啊
nginxhttps
内网服务器linux不能上百度,通过个人电脑(win10)搭建代理服务器给内网首先PC上装nginx,我下载的版本是nginx-1.18.0,使用cmd启动。然后在任务管理器上就能看到nginx进程了start.\nginx.exe关闭nginx的话在任务管理器上杀进程是没用的,会再被拉起来。还是要用命令关闭.\nginx.exe-sstop主要在于nginx配置上,修改nginx.conf这个是
- 【WEB环境】-LNTMP或LAMP结构搭建(记录)
穿山甲yyds
前端linux网络
一、手工安装搭建1.1LNTMP【nginx:rpm安装】安装根目录路径:/usr/local/nginx启动:/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf停止kill-QUIT2072./nginx-sstop/usr/local/nginx/sbin/nginx-sstop重启./nginx-sreload【tomc
- 2021-11-01在centos7.6中使用 yum install nginx 安装配置 nginx
冲动的BUG
nginxcentoslinux
在centos7.6中安装nginx使用默认命令安装yuminstallnginx后nginx装在哪了呢?首先可以直接nginx命令可以直接使用nginxnginx-sstop/reload可以使用find/-name'nginx.conf'来查找文件位置会发现在/etc/nginx/下但是配置文件中的html部署不在同一个文件夹下,如查看配置nginx.confvim/etc/nginx/ngi
- Nginx常用配置及和基本功能讲解
秒怂的哈士奇爱吃西瓜
作者:京东物流殷世杰Nginx已经广泛应用于J-one和Jdos的环境部署上,本文对Nginx的常用的配置和基本功能进行讲解,适合Ngnix入门学习。1核心配置找到Nginx安装目录下的conf目录下nginx.conf文件,Nginx的基本功能配置是由它提供的。1.1配置文件结构Nginx的配置文件(conf/nginx.conf)整体上分为如下几个部分::区域职责全局块配置和Nginx运行相关
- ssl证书更换步骤及更换后有效期没有更新问题
小陈09
ssl网络协议网络
因公司ssl证书到期,在阿里云申请免费证书更换后,查看证书有效期,发现有效期没有更新。ssl证书更换步骤:1.下载nginx证书文件2.服务器上替换原有ssl证书(操作前记得备份)3.更改nginx.conf文件中证书路径#ssl证书的pem文件路径ssl_certificate/usr/local/nginx/conf/*pem;#ssl证书的key文件路径ssl_certificate_key
- 中间件-Nginx学习笔记
笑一笑、
Javanginx服务器linux
目录nginx简介Linux安装Nginxnginx常用命令nginx.conf配置文件nginx反向代理nginx负载均衡nginx动静分离nginx搭建高可用集群高可用配置(主从配置)高可用主从配置文件详解nginx原理nginx简介什么是nginxNginx(enginex)是一个高性能的HTTP和反向代理]web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx可以作为静态页
- Nginx之代理配置以及负载均衡
_阿坤
NginxNginx反向代理负载均衡Tomcat
配置Nginx代理静态资源以及代理动态资源(与Tomcat整合)。Nginx配置代理静态资源cd/opt/soft/nginx-1.10.0vi./conf/nginx.conf在http{}块里Nginx默认监听的是80端口,root目录为当前目录的html文件夹,index为index.html….配置Nginx监听8888端口为便于测试我们自己配置一个server监听,与原来的server并
- 学习天机项目的笔记
努力奋斗的小佳
学习笔记
1.项目亮点2.技术架构3.在本地配置虚假域名映射修改本地的的host文件(配置小工具)如果直接输入域名就能访问,就是不用输入端口号的话,就需要配置nginx80是naginx的默认端口号监听即可(配置nginx.conf),一个server代表一个虚拟主机4.持续集成自动化部署(Jenkins)5.nginx部署前端6.关于maven的小知识maven模块的聚合,在父工程聚合maven的继承,子
- Nginx 配置反向代理 Tomcat
夹板儿孩
前言:如果你在./configure时没有添加--prefix=指向安装目录,那配置文件的路径就在/usr/local/nginx/conf/先看一下配置前,我们80端口是什么页面切换目录cd/usr/local/nginx/conf/目录下有许多的文件我们需要操作的是nginx.conf这个配置文件接下来开始添加Tomcat为了日后方便维护,我们建一个名为http的文件夹进入http文件夹,新建
- nginx 开始 停止 重启
hibigger
Nginx的启动、停止与重启启动启动代码格式:nginx安装目录地址-cnginx配置文件地址例如:[root@LinuxServersbin]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf停止nginx的停止有三种方式:从容停止1、查看进程号[root@LinuxServer~]#ps-ef|grepnginx2、杀死
- 【后端高频面试题--Nginx篇】
码上有前
后端nginx运维
作者:“码上有前”文章简介:后端高频面试题欢迎小伙伴们点赞、收藏⭐、留言后端高频面试题--Nginx篇什么是Nginx?为什么要用Nginx?为什么Nginx性能这么高?Nginx怎么处理请求的?什么是正向代理和反向代理?Nginx应用场景?Nginx目录结构有哪些?Nginx配置文件nginx.conf有哪些属性模块?如何用Nginx解决前端跨域问题?Nginx虚拟主机怎么配置?location
- nginx模块讲解
小雨喳
Nginx学习篇
nginx模块讲解一、编译安装nginx的http_stub_status_module监控其运行状态步骤:1编译nginx,加上参数--with-http_stub_status_module2修改nginx配置文件,添加监控状态配置,在nginx.conf的server块中添加如下代码location/nginx_status{#Turnonnginxstatsstub_statuson;#I
- 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