- go srs 流媒体服务器_Go语言实现的流媒体服务器开发框架
西风吹浮华
gosrs流媒体服务器
Monibucamonibuca.com背景市面上的流媒体服务器不可谓不多,从本人的第一份工作起,就一直接触和研究了形形色色的流媒体服务器,从最早的FCS(全称FlashCommunicationServer),后来改名为FMS(全称FlashMediaServer),到Red5(java语言开发),到CrtmpServer(C++开发),让我对流媒体服务器的基本原理有了深刻的认识。当时本人痴迷C
- vue项目大包错误记录-失误
来赶鸭子上架
vue.jsjavascript前端
背景:设置项目动态路由渲染,出现大包报错、报错内容:prerender-spa-plugin报错Unabletoprerenderallroutes!原因:将开发环境的main.js复制到生产环境main-prod.js进行更改,忽略了需要添加mounted(){document.dispatchEvent(newEvent('render-event'));},贴图:添加上即可。。
- wps电子表格(xlsx)在excel打开时,多余图形(shapes)的处理
work-harder
wpsexcelvba
背景:1.win10,excel打开wps生成的xlsx文档;2.文档中有多余的图形,经检测为shape大类;3.文档中可见的图形可以全选后删除;但是不可见部分仍然存在;4.vba删除时,可以直接循环删除,类似shape.delete;5.vba删除前,如果逐一选择(shape.select)以便查看,则出现多种错误(vba运行异常),但都是运行时错误错误记录:1.类型多样:用shape.name
- PostgreSQL使用session_exec和file_fdw实现失败次数锁定用户策略
小怪兽ysl
PostgreSQLpostgresql数据库
使用session_exec、file_fdw以及自定义函数实现该功能。缺陷:实测发现锁用户后,进去解锁特定用户。只能允许一次登陆,应该再次登陆的时候,触发函数,把之前的日志里的错误登陆的信息也计算到登录次数里了。而且foreigntable不能在数据库里清理。需要删除对应的pg_log,才能使foreigntable信息清理掉,来重制该用户的密码错误记录。https://github.com/o
- 【错误记录】Android WebView 报错 ( 网页无法打开 位于 http://... 的网页无法加载, 因为 net::ERR_CLEARTEXT_NOT_PERMITTED )
韩曙亮
错误记录Android#Android应用开发androidhttpwebviewhttpsandroidstudio
文章目录一、错误记录二、解决方案解决方案一解决方案二一、错误记录报错信息:网页无法打开位于http://…的网页无法加载,因为net::ERR_CLEARTEXT_NOT_PERMITTED;二、解决方案在Android9.0及以上的系统版本中,系统默认情况下禁止应用程序使用不安全的明文流量进行网络连接,以提高用户的安全性。这意味着,如果应用程序尝试连接到一个不安全的HTTP网站,将收到net::
- 【错误记录】自定义 Gradle 插件报错 ( Could not find implementation class x for plugin x specified in jar:file )
修行者对666
安卓gradlejarjava
一、报错信息importorg.gradle.api.Pluginimportorg.gradle.api.ProjectclassPlugin4implementsPlugin{@Overridevoidapply(Projectproject){println'Plugin4'}}定义完成后,将插件上传到本地Maven仓库中,发布配置如下://指定自定义Gradle插件的分组group'kim
- Gem5编译ARM错误记录
candyyyting
arm
Gem5模拟ARMFS错误记录gem5源码地址:https://gem5.googlesource.com/public/gem5GitHub镜像:https://github.com/gem5/gem5安装参考:http://www.gem5.org/documentation/learning_gem5/part1/building/http://www.gem5.org/documentat
- 4.东软跨境电商数仓项目--数据采集通道搭建之用户行为数据采集通道搭建(2022.6.1-2022.6.4)
Mmj666
东软睿购跨境电商数仓项目hadoophive
东软跨境电商数仓项目–数据采集通道搭建之用户行为数据采集通道搭建(2022.6.1-2022.6.4)文章目录东软跨境电商数仓项目--数据采集通道搭建之用户行为数据采集通道搭建(2022.6.1-2022.6.4)1.用户行为日志介绍2.用户行为日志主要内容2.1页面浏览记录2.2动作记录2.3曝光记录2.4启动记录2.5错误记录3.用户行为日志格式3.1页面日志3.2启动日志4.模拟生成用户行为
- Python:16.错误和调试
许瘦子来世
#错误处理#try'''1.可以有多个except'''try:passexceptZeroDivisionErrorase:print('except:',e)finally:print('finally...')#记录错误'''1.logging模块:同样出错,但程序打印完错误信息后会继续执行,并正常退出2.logging可以把错误记录到日志文件里,方便事后排查。'''importloggin
- react native错误记录
不努力code
reactreactnativereact.jsjavascript
第一次运行到安卓失败Couldnotfindimplementationclass'com.facebook.react.ReactRootProjectPlugin'forplugin'com.facebook.react.rootproject'specifiedinjar:file:/D:/Android_Studio_Data/.gradle/caches/jars-9/o_3a1fd35
- Unity-XCode 一些编译错误记录及解决方法
WeiQ_
unity3dxcodeunityios
自己用unity编译导出ios项目,然后在ios项目中再次编译时,有时候会有一些编译错误出现,现记录一下内容及解决方法,内容会不断更新!错误:Undefinedsymbol:_compress2解决:XCode工程->Targets->UnityFramework->添加『libz.tbd』库即可错误:Undefinedsymbol:_sqlite3_errmsg(只要是_sqlite3_相关的,
- 【css】画一条0.5px的线
lrz136
csscsshtml前端
方案一使用transform.line{border:1pxsolidred;transform:scaleY(.5);}方案二使用meta方案三使用背景height:2px;background-image:linear-gradient(0deg,red50%,transparent50%)
- 牛客刷题记录(常见笔试题)
是小鱼儿哈
一起刷好题java算法数据结构
目录一、Map的应用篇乒乓球筐简单的错误记录二、动态规划篇计算字符串的编辑距离年终奖最长不含重复字符的子字符串合唱团三、数组篇顺时针打印矩阵一、Map的应用篇乒乓球筐题目地址:乒乓球筐小白代码importjava.util.*;//注意类名必须为Main,不要有任何packagexxx信息publicclassMain{publicstaticvoidmain(String[]args){Scan
- C练题笔记之:牛客-HJ019.简单错误记录
不服输的小悦阳
C语言刷题笔记:牛客-困难链表c语言字符串
题目:描述开发一个简单错误记录功能小模块,能够记录出错的代码所在的文件名称和行号。处理:1、记录最多8条错误记录,循环记录,最后只用输出最后出现的八条错误记录。对相同的错误记录只记录一条,但是错误计数增加。最后一个斜杠后面的带后缀名的部分(保留最后16位)和行号完全匹配的记录才做算是”相同“的错误记录。2、超过16个字符的文件名称,只记录文件的最后有效16个字符;3、输入的文件可能带路径,记录文件
- windows nvim配置 E5112错误记录 && 如何修改nvim配置文件位置
扶摇|
vim
抛出总结:用户名是中文在windows中尝试使用模块化配置nvim时,当在默认目录~\AppData\Local下创建nvim(不要犹豫就是有nvim和nvim-data)文件夹之后,当在文件夹内创建init.lua并编辑后,打开nvim时会提示E5112错误,经过尝试后发现是因为用户名为中文。此时可以修改官方文档里Initialization提到的XDG_CONFIG_HOME,在这一页的最后的
- golang导入go-git错误记录
runscript.sh
golanggit开发语言
代码:packagemainimport(...(略)"github.com/src-d/go-git"...(略))...(略)funcgitClone(workspace,url,referenceNamestring,authssh.AuthMethod)(*git.Repository,error){returngit.PlainClone(workspace,false,&git.Clo
- [错误记录]Could not load library libcudnn_cnn_infer.so.8.
M·K
cnn人工智能神经网络
运行深度学习脚本时出现报错:Couldnotloadlibrarylibcudnn_cnn_infer.so.8.运行环境:Windows11下WSL2的Ubuntu-22.04驱动版本:解决办法:安装nvida-cudnnsudoaptinstallnvidia-cudnn问题分析:在Ubuntu上安装显卡驱动的时候未安装cudnn导致。关联:之前使用torch=1.4的时候报错"cuDNNer
- 【samba】Wodows同步Linux文件|搭建共享文件服务器——在windows上映射网络驱动器
bandaoyu
管理文档扩展知识linuxwindows运维
目录Linux做samba服务器Linux上的操作windows上的操作windows做samba服务器windows上的操作linux上的操作错误记录LinuxSamba服务主配文件smb.conf中文详解Windows和windows之间共享参考:Linux搭建samba服务器共享文件——在windows上映射网络驱动器_尚先生的博客的博客-CSDN博客Linux做samba服务器在Windo
- yolo错误记录(未解决)
我要变胖哇
目标检测yolov5YOLOpytorch深度学习
Notethiswarningmayberelatedtoloadingoldermodels.Youcanupdateyourmodeltocurrentstructurewith:importtorchckpt=torch.load(“model.pt”)#appliestobothofficialandcustommodelstorch.save(ckpt,“updated-model.pt
- sqoop事务如何实现
qzWsong
sqoopsqoophadoophive
场景1:如Sqoop在导出hdfs数据到Mysql时,某个字段过长导致任务失败,该错误记录之前的数据正常导入,之后的数据无法导入。如何保证错误发生后数据回滚?场景2:如Sqoop在导出hdfs数据到Mysql时,某个字段重复导致主键冲突,该错误记录之前的数据正常导入,之后的数据无法导入。如何保证错误发生后数据回滚?采用staging-table,临时表策略,创建一个临时表要和主表结构一致,数据为空
- 尚硅谷离线数仓之采集平台
韩顺平的小迷弟
大数据python开发语言
1.用户行为日志数据流向流程图如下,其中红框表示用户行为日志数据的流向图。1.1行为日志内容行为日志主要包括以下几个内容页面浏览记录动作记录曝光记录启动记录错误记录页面浏览记录动作记录曝光记录启动记录1.2用户行为日志格式页面日志启动日志页面日志,以页面浏览为单位,即一个页面浏览记录,生成一条页面埋点日志。一条完整的页面日志包含,一个页面浏览记录,用户在该页面所做的若干个动作记录,若干个该页面的曝
- spring 手动提交事务
IT海中的小浪花
工作日常遇到的问题java
在日常工作中,需要将接口通过try-catch将错误记录下来,保存到数据库,但是因为事务需要回滚,只能手动回滚,但是插入数据库操作也会回滚了。而新启事务(REQUIRD-NEW)。TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();导致事务无法正常PROPAGATION_REQUIRES_NEW,所以需要手动提
- 【samba】Wodows同步Linux文件|搭建共享文件服务器——在windows上映射网络驱动器...
bdview
服务器linux网络windows运维
目录Linux做samba服务器Linux上的操作windows上的操作windows做samba服务器windows上的操作linux上的操作错误记录LinuxSamba服务主配文件smb.conf中文详解Windows和windows之间共享参考:Linux搭建samba服务器共享文件——在windows上映射网络驱动器_尚先生的博客的博客-CSDN博客Linux做samba服务器在Windo
- react错误记录
不努力code
reactreact.js前端前端框架
scss安装错误:gypERR!notok在根目录下创建`.npmrc`文件写入sass_binary_site=https://npm.taobao.org/mirrors/node-sass/参考:gypERR!与node-pre-gypERR!报错解决-知乎
- Python 错误记录(二) DeprecationWarning: sipPyTypeDict() is deprecated
星寂樱易李
错误处理pythonqt
描述运行程序时出现告警DeprecationWarning:sipPyTypeDict()isdeprecated,theextensionmoduleshouldusesipPyTypeDictRef()insteadclassinterfaceWindow(QMainWindow):原因这个警告是由SIP库引发的,通常不会导致应用程序出现问题。警告表明您的应用程序中使用了不推荐使用的SIP函数
- CreateDIBSection失败的问题记录
吻等离子
经验记录qt
错误记录[ERROR](:0,):QPixmap::fromWinHICON(),failedtoGetIconInfo()(操作成功完成。)[ERROR](:0,):QPixmap::fromWinHICON(),failedtoGetIconInfo()(参数错误。)[ERROR](:0,):QPixmap::fromWinHICON(),failedtoGetIconInfo()(参数错误。
- iOS错误记录2017_01_10_block使用错误
ForzaJuven
使用__block修饰一个字符串后在block块中使用,但应用多次调用这段程序时会导致崩溃:错误详情修改:__block修饰去除原因分析:在垃圾回收机制里面,如果同时使用__weak和__block来标识一个变量,那么该block将不会保证它是一直是有效的。如果在实现方法的时候使用了block,对象的内存管理规则更微妙:也是(__weak与__block区别:)1、如果你通过引用来访问一个实例变量
- springboot + websocket对接文心一言接口实现简单上下文聊天(贴代码)
CJCChester
#Javaspringbootwebsocket文心一言
文章目录参考先看看效果文心千帆创建应用思路步骤与代码如题,第一次用websocket,做了个这玩意,只做了上下文的聊天,没做流式。中间还有个低级报错但卡了好久,具体可以看【错误记录】websocket连接失败,但后端毫无反应,还有【错误记录】ruoyi-vue@Autowired注入自定义mapper时为null解决,感兴趣可前往观看。实际上我后端用的是ruoyi-vue,前端用的ruoyi-ap
- 2023-08-01
高纯度
codedateweekred1red2red3red4red5red6blue20230872023-07-30(日)日2915172833120230862023-07-27(四)四89102226321220230852023-07-25(二)二1118232431331320230842023-07-23(日)日91314171927320230832023-07-20(四)四710121
- cellranger处理单细胞数据的一些错误记录
微光**
数据库前端服务器
cellranger处理单细胞数据的一些错误记录1、由于fastq不完整报错报错信息原因解决方案2、化学版本选择错误报错信息原因解决方案1、由于fastq不完整报错报错信息[error]Pipestancefailed.Errorlogat:YS2310077_T_C_5/SC_RNA_COUNTER_CS/SC_MULTI_CORE/MULTI_CHEMISTRY_DETECTOR/DETECT
- 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