`
文章列表
/** * 判断文件是否图片 * @param file * @return */ public static boolean isImage(File file) { try { BufferedImage bi = ImageIO.read(file); if (null != bi) { return true; } } catch (Exception e) { e.printStackTrace(); } return false; }   用传统的后缀名判断是否图片已经远远跟不上时 ...
处理局部异常 @Controller public class AccessController { /** * 处理这个Controller内部发生的运行时异常 */ @ ExceptionHandler (RuntimeException.class) public String runtimeExceptionHandler(RuntimeException runtimeException,ModelMap modelMap) { logger.error(runtimeExcept ...
sqlplus /nolog conn / as sysdba --创建oracle目录 create directory backup as '/home/oracle/dump'; --查看目录 select * from dba_directories; --或者删除目录 drop directory backup; --导出整个数据库 expdp scott/tiger@orcl DIRECTORY=backup DUMPFILE=full.dmp FULL=y; --按用户导出 expdp scott/tiger@orcl schemas=scott ...
以安装微软雅黑为例 1、寻找字体 从本地C:\Windows\Fonts\下找到微软雅黑字体 msyh.ttf、msyhbd.ttf 2、创建字体目录 cd /usr/share/fonts/ mkdir win 3、将字体上传至/usr/share/fonts/win下 4、建立字体索引,更新字体缓存 cd /usr/share/fonts/win mkfontscale #如果该命令提示command not found, 需自行安装 # yum install mkfontscale mkfontdir #如果该命令提示command not f ...
//使用ntp server ntpdate cn.pool.ntp.org //同步硬件时间 hwclock -w  
SELECT * FROM V$NLS_PARAMETERS WHERE PARAMETER='NLS_CHARACTERSET'; --window set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 --linux export NLS_LANG=AMERICAN_AMERICA.AL32UTF8  
ln -s 源文件路径 引用路径(快捷方式) ln -s /a/commonFiles/1 /b/commonFiles/2  在实际应用当中例:   当然还需要tomcat支持 [root@localhost conf]# cd /mnt/tomcat-8080/conf/ [root@localhost conf]# vi context.xml 加上如下即可 <Context path="/myApp" allowLinking="true">
imp test/test@orcl file=/backup.dmp full=y --报错 imp test/test@127.0.0.1/orcl file=/backup.dmp full=y --成功    
15 CONTENT_TYPE = { 16 '.load': 'text/html', 17 '.123': 'application/vnd.lotus-1-2-3', 18 '.3ds': 'image/x-3ds', 19 '.3g2': 'video/3gpp', 20 '.3ga': 'video/3gpp', 21 '.3gp': 'video/3gpp', 22 '.3gpp': 'video/3gpp', 23 '.602': 'applicat ...
String realPath = session.getServletContext().getRealPath("/template/authFile/authFiles.xlsx"); response.reset(); response.setCharacterEncoding("gb2312"); OutputStream output = null; FileInputStream fis = null; try { request.setCharacterEncoding("utf-8&qu ...
String urlPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath() +"/ssl/test.htm"; URL url = new URL(urlPath); URLConnection rulConnection = url.openConnection(); HttpURLConnection ht ...
 在跳转的login.jsp页面增加如下代码: if (window != top) top.location.href = location.href;  
  第一种 明文QQ:http://shang.qq.com/v3/widget.html  (可以设置明文还是加密)   <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=${QQ}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:${QQ}:41" alt="点击这里给我发消息" title=&quo ...
163:邮箱  
from:http://www.linuxde.net/2012/03/8301.html 前言 SSL是让人头大的东西,看起来很复杂,我学过信息安全课,但是对SSL仍然是模糊一片。对于数字证书也是一知半解,从来没有去认真研究过。只知道个大概,“反正就是对称加密和非对 ...
Global site tag (gtag.js) - Google Analytics