分类 技术相关 下的文章

执行sql提示错误:
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

出现原因大部分是因为oracleSID不对,排查方法:

export ORACLE_SID=xxxx --设置实例
echo $ORACLE_SID --查看当前实例

查看监听状态

lsnrctl status

随后重新登录,执行sql就不会提示报错。

在属性文件中定义session.timeout=:

server.port=8080
server.servlet.session.timeout=60m

springboot session

测试验证,在登录后的controll中输出超时时间:

HttpServletRequest request = ((ServletRequestAttributes)(RequestContextHolder.getRequestAttributes())).getRequest();
int maxInactiveInterval= request.getSession().getMaxInactiveInterval();

核心方法:

clearQueue
Method Call'clearQueue'
Remove all items from the file queue.

如点击事件:

<a href="javascript:$('#file_upload').uploadifive('clearQueue')">Clear Queue</a> 

常用的是在 onUploadComplete 后面执行,

'onUploadComplete' : function(file, data) {
            $(this).uploadifive('clearQueue'); 
  }
免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。