- 博客(36)
- 资源 (12)
- 收藏
- 关注
原创 JAVA-虚拟机(2)-GC算法&回收器
垃圾回收主要内容: 1. 那些内存需要回收? 2. 什么时候回收? 3. 如何回收?垃圾回收主要针对运行时数据区那些区域? 运行时数据区的线程私有区域有:虚拟机栈,本地方法栈,程序计数器等; 栈中的栈帧随着方法的进入和退出执行入栈和出栈,每个栈帧的内存分配在编译期就已经确定; 随着线程或方法的结束,...
2018-08-03 14:44:36
162
原创 shell-数组排序
1,数组排序#!/bin/bashfolders=(1 3 2 9 7 10 6)len=${#folders[@]}for((i=0; i<$len; i++)){ for((j=i+1; j<$len; j++)){ if [[ ${folders[i]} -gt ${folders[j]} ]] then temp=${folde...
2018-08-03 14:43:26
1188
1
原创 HTTP转义字符
1,HTTP字符转义H5使用ajax将后台传输数据时url将特殊符号进行了,特殊处理,就只能通过编码形式避免这种情况发生# 用来标志特定的文档位置 %23% 对特殊字符进行编码 %25& 分隔不同的变量值对 %26+ 在变量值中表示空格 %2B/ 表示目录路径 %2F...
2018-08-03 14:42:09
3704
原创 Html页面格式化显示接口返回的JSON数据
参考:http://m.blog.youkuaiyun.com/zhengxiangwen/article/details/68927330http://www.zyall.com/format_json.html 一,格式化显示1,必须在pre标签中 <pre style="width:100%;height:100%" id="data-test"></pre>...
2018-08-03 14:40:36
3925
1
原创 net.sf.json.JSONObject与JSONArray
1,net.sf.json.JSONObjectJSONObject是一个无序的键值对集合。值可以是任意类型:Boolean,JSONArray,JSONObject,Number,String,or the JSONObject.NULL Object2,net.sf.json.JSONArrayJSONArray是一个有序的值序列。值可以是任意类型:Boolean, JSONArr...
2018-08-03 14:39:13
1837
原创 Xshell连接虚拟机的rhel6
1.保证windows与 Linux能相互ping 通,NAT或Bridge均可 ifconfig 2.禁用Selinux服务 1、临时禁用SELinux: root@server# setenforce 0 这样重启服务器之后,还是会启动SELinux。 2、永久禁用:...
2018-08-03 14:01:53
220
原创 美元现钞和现汇的区别
现汇帐户”系指由港、澳、台地区或者境外汇入外汇或携入的外汇票据转存款帐户;“现钞帐户”系指境内居民个人持有的外币现钞存款帐户。 居民个人由境外汇入的外汇或携入的外汇票据可以理解为“现汇”,均可以开立现汇帐户存储;
2015-08-13 20:58:20
2011
原创 vi命令
Esc切换modeEsc+i 光标前插入Esc+a 光标后插入Esc+o 换行Esc+u 撤销Esc+dl 删除一个字符Esc+dd 删除一行Esc+x 删除一个字符Esc+yy 复制一行 在光标处+p粘贴到光标的下一行Esc+q 不保存退出Esc+wq! 保存后强制退出
2015-04-18 16:28:18
717
原创 xshell连接ubuntu
1.普通用户登录然后进入root sudo -s (输入普通用户密码)2,开启SSH服务,如果没有开启需要安装openssh-server: sudo apt-get install openssh-server (安装中选择“y”)3,查看是否启动 ps -e | grep ssh 如果只有ssh-agent (一行)表
2015-04-12 11:50:00
655
原创 Could not update ICEauthority file /home/user/.ICEauthority
1,在linux中添加用户(wuwh)后,登录时出现“Could not update ICEauthority file /home/user/.ICEauthority”2,试了网上好多方法 例如 ①,sudo chown USER:USER /home/USER/.ICEauthority sudo chmod 644 /home/USER/.ICEauthor
2015-04-12 10:26:27
4257
1
原创 ftp连接虚拟机linux
1,安装ftp 从redhat官网www.redhat.com下载RHEL6.4 64bit试用版(必须用企业邮箱注册为合作者而不是个人用户才能下载),安装后发现系统没有ftp 命令。由于RHEL6.4是试用版没有注册,所以yum无法使用。于是尝试用rpm从光盘安装相应的ftp安装包。 1.首先挂载上系统安装盘,mount
2015-04-11 14:49:05
3202
原创 xshell连接虚拟机linux
1.保证windows与 Linux能相互ping 通,NAT或Bridge均可 ifconfig2.禁用Selinux服务 1、临时禁用SELinux: root@server# setenforce 0 这样重启服务器之后,还是会启动SELinux。 2、永久禁用: [@more@]
2015-04-11 14:47:46
849
原创 The JRE_HOME environment variable is not defined correctly
问题①,The JRE_HOME environment variable is not defined correctly 配置测试用例1. 点击d:/jprofiler5/bin/jprofiler.exe2. 执行菜单SessionàIntegration WizardsàNew ServerIntegration
2014-11-04 20:22:52
7616
转载 Git的安装的常见问题
①,在使用disconnected no supported authentication methods available(server sent: publickey,keyboard interactive)
2014-11-04 12:58:03
2432
原创 org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; neste
2014-09-29 10:58:01
486
原创 Exception sending context initialized event to listener instance of class
2014-9-13 11:18:32 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the ja
2014-09-13 11:18:41
1689
原创 java.lang.ClassNotFoundException: org.springframework.context.ContextLoaderListener
2014-9-13 10:43:52 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the ja
2014-09-13 10:43:16
1049
原创 Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
2014-9-13 10:22:42 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the ja
2014-09-13 10:23:14
2542
原创 Unable to load configuration. - bean - jar
2014-9-11 12:51:46 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter adminUnable to load configuration. - bean - jar:file:/E:/Tomcat6041/webapps/kaituo/WEB-INF/lib/
2014-09-11 12:51:27
5669
原创 Unable to load configuration. - action - file
信息: Deploying web application directory blognetlog4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory).log4j:WARN Please initialize the log4j
2014-09-10 22:56:38
1344
转载 spring中数据源配置
1,使用org.springframework.jdbc.datasource.DriverManagerDataSource 说明:DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用。 ${jdbc.driverClassName} ${jdbc.ur
2014-09-07 13:11:36
477
CKeditor编辑器
2014-11-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人