- 博客(31)
- 资源 (18)
- 问答 (2)
- 收藏
- 关注
原创 jstat -gcutil pid提示 pid not found
1、linux服务器查看gc命令: jstat -gcutil pid 100 10提示 pid not found。3、管理员用户比如root执行:chown -R 用户名:用户组 /tmp/hsperfdata_用户名。4、重启应用后即可使用jstat -gcutil pid 100 10。2、查看/tmp/hsperfdata_用户名 目录无pid对应信息。
2024-02-27 16:55:22
549
1
转载 (转) github fork 别人的项目源作者更新后如何同步更新
打开fork 过来的项目如下所示:点击new pull request在进入的界面, 后进行将左边的设置为你自己的仓库, fork 过来的源在右边, 如下图:当选择完后会变成下图:接下来, 将其展示出可以调整状态: 右边改为源fork地址就会出现变更数据:点击create pull request进行数据的合并:9 最后合并:到此就完...
2019-06-19 18:05:25
599
原创 datepicker 点击失去焦点显示当前时间的问题
问题描述:时间修改页面,点击控件,没有显示已存在的默认值时间,而是显示当 前时间,不选择具体日期,点击控件外空白处(控件失去焦点关闭),回填当前日期。 原因:日期回显格式包含时分秒,控件时间格式不包含时分秒。 解决办法:对回填日期进行格式化,与控件时间格式保持一致。...
2018-08-22 15:26:51
7224
转载 java中方法的参数传递机制
java中方法的参数传递机制引用文章:http://www.cnblogs.com/lixiaolun/p/4311863.html问:当一个对象被当作参数传递到一个方法后,此方法可改变这个对象的属性,并可返回变化后的结果,那么这里到底是值传递还是引用传递? 答:是值传递。Java 编程语言只有值传递参数。当一个对象实例作为一个参数被传递到方法中时,参数的值就是该对
2017-07-04 10:07:31
531
原创 PL/SQL Developer连接Oracle弹出空白提示框
PL/SQL Dev连接Oracle弹出空白提示框的解决方法分享参考链接http://jingyan.baidu.com/article/066074d6760959c3c21cb0d6.html我遇见的情况为权限不够,导致弹出空的提示框。就PL/SQL图标上点右键---属性---兼容性--管理员身份运行此程序的勾打上,即可
2017-06-26 10:04:01
1865
原创 严重: A child container failed during start【tomcat版本7修改为tomcat6版本就解决啦】
十一月 10, 2016 3:56:42 下午 org.apache.catalina.core.ContainerBase startInternal严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException
2016-11-11 14:54:51
1264
原创 求助】安卓开发异常 java.lang.Throwable: stack dump
05-05 18:22:02.584 25252-25772/? E/HardwareRenderer: setHWUICacheConfig must be called in UI thread. Skip!05-05 18:22:02.584 25252-25772/? W/System.err: java.lang.Throwable: stack dump05-05 18:22:
2016-05-05 18:37:34
5907
原创 org.apache.ibatis.reflection.ReflectionException: There is no getter for property
严重: Servlet.service() for servlet frontDispatcher threw exceptionorg.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'createdatenew' in 'class com.zhongxin.securi
2015-09-17 13:00:51
2134
原创 求解 org.elasticsearch.index.mapper.MapperParsingException
Exception in thread "main" org.elasticsearch.index.mapper.MapperParsingException: Root type mapping not empty after parsing! Remaining fields: [test : {properties={id={type=long, store=yes}, type={t
2015-08-24 15:36:56
16809
2
原创 curl -XPOST "http://localhost:9200/posts" -d @posts.json
在路径D:\soft下放置json数据文件posts.json在D:\soft>下执行命令 curl -XPOST "http://localhost:9200/posts" -d @posts.json
2015-08-03 15:38:38
6192
原创 curl: (1) Protocol 'http not supported or disabled in libcurl
在window命令窗口中创建索引把单引号修改成双引号查询
2015-08-03 14:29:23
11979
6
原创 随笔
最近开始接触全文检索,什么lucene,solr,elasticsearch,一大堆东西没有头绪,最后还是决定从lucene开始,努力ING。。。
2015-07-17 17:15:38
445
原创 求一个整数的组合数算法(java)
求一个序列,其中任意n个数字相加不会等于该序列里的其他值,任意一个数字的倍数不等于该序列里的其他值http://blog.youkuaiyun.com/codearhat/article/details/8554326
2014-04-19 15:02:44
2558
原创 java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2,
最近研究Java+FlexPaper+swfTools仿百度文库文档在线预览系统设计与实现在网上找了些教程,按照步骤安装openoffice、swfTools、flexpaper,其中在安装openoffice的时候,安装在C:\Program Files,结果在office文件转pdf方法运行的时候Process pro = Runtime.getRuntime().exec(c
2014-04-03 11:27:54
33416
转载 itext生成pdf加了iTextAsian.jar还是报“Font 'STSong-Light' with 'UniGB-UCS2-H' is not re“
Windows的方案:BaseFont font = BaseFont.createFont("C:/WINDOWS/Fonts/SIMSUN.TTC,1",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
2014-03-27 15:57:45
2171
转载 SSH整合过程中出现找不到org.springframework.web.context.ContextLoaderServlet的错误
解决办法:因在Spring3.0中去掉了ContextLoaderServlet和Log4jConfigServlet,所以会出现找不到类的异常错误。Spring3.0下可以采用另外两种启动方式:ContextLoaderListener和ContextLoaderPlugIn。建议使用ContextLoaderListener,具体实现就是在web.xml中添加: context
2014-03-24 14:09:16
3460
转载 教您怎么从spring 官网下载参考文档(文章来源百度经验)
教您怎么从spring 官网下载参考文档1 2 3 4 5 6 7 分步阅读 假如您使用spring,那么本经验可能帮助到您。假如您使用spring的过程中,需要查询一些文档,那么本经验可能帮助到您。假如您对下载spring的文档有疑惑,那么本经验可能帮助到您。
2014-03-24 11:40:51
1162
原创 Struts2异常!!!(原因LoginAction没有实现相应接口:SessionAware)
Struts Problem ReportStruts has detected an unhandled exception: Messages: File:com/pb/action/LoginAction.javaLine number:37Stacktracesjava.lang.NullPoint
2013-12-16 11:41:08
1260
转载 The APR based Apache Tomcat Native library which allows optimal performance in production environmen
十二月 14, 2013 11:00:25 上午 org.apache.catalina.core.AprLifecycleListener initINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found
2013-12-14 11:16:26
1225
转载 Struts2中的Unable to load configuration错误的分析与解决方法
当我们遇到 Unable to load configuration. 这样的错误时,可以根据具体的错误提示找出错误的原因。Unable to load configuration. - interceptor-ref - file:/D:/Java/apache-tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/stru
2013-12-14 11:08:08
1764
原创 数据库恢复(只有*.mdf和*.ldf文件)
附加移动的数据库就是通过mdf和ldf文件恢复(创建)数据库。我试了一下,居然一下成功,相当的简单。1、把mdf文件和ldf文件拷贝到数据库的默认路径(根据自己安装情况)D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA里;2、在sqlserver里新建个查询,执行下面代码;USE
2013-12-12 10:24:30
1664
转载 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream如果你用myEclipse进行开发的话,运行时可能会出现以下的错误:Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/m
2013-12-11 18:09:55
1102
原创 第一个Spring
第一步:下载Spring 、建立一个java工程,导入所需的jar包(spring.jar、log4j.jar以及lib\jakarta-commons目录下的所有jar包)第二步:工程src目录下添加log4j.properties# rootLogger是所有日志的根日志,修改该日志属性将对所有日志起作用# 下面的属性配置中,所有日志的输出级别是info,输出源是console
2013-12-03 17:34:02
815
原创 求解?Unable to access java.sql.DatabaseMetaData to determine appropriate Dialect to use
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.log4j:WARN
2013-11-10 11:57:07
3160
转载 hibernate中的hbm的schema,用户名密码更换
由于工作需要,需要经常更换oracle用户名和密码,而用工具生成hbm配置文件时不知道怎么回事会生成对应用户名下的schema=‘用户名’,而只要写上schema=‘用户名’时,无论hibernate的配置文件hibernate.cfg.xml怎么配置用户名,他都会使用schema配置的用户名。 只有把影射文件中的schema=‘用户名’删除了,那么他会默认的使用hibernate中
2013-11-10 11:18:35
1396
原创 关于web中的一个问题
Cannot return from outside a function or methodmyeclipse 10 JSP页面遇到的问题:Cannot return from outside a function or method解决方案:window -->preferences -->myeclipse -->validation -->javascript vali
2013-10-31 19:17:13
659
android studio 代码混淆出现异常
2016-09-14
Intellij IDEA15 android git gradle开发环境配置
2016-01-19
TA创建的收藏夹 TA关注的收藏夹
TA关注的人