- 博客(92)
- 资源 (10)
- 收藏
- 关注
转载 InnoDB与MyISAM区别
MyISAMInnoDB构成上区别每个MyISAM在磁盘上存储成三个文件。文件名为表名,扩展名为文件类型。.frm 文件存储表定义;.MYD(MYData) 数据文件的扩展名;.MYI(MYIndex) 索引文件的扩展名。基于磁盘的资源是InnoDB表空间数据文件和它的日志文件,InnoDB 表的大小只受限于操作系统文件的大小,一般为 2GB事务
2013-05-02 15:36:53
580
转载 hibernate.hbm2ddl.auto的值
create:表示启动的时候先drop,再createcreate-drop: 也表示创建,只不过再系统关闭前执行一下dropupdate: 这个操作启动的时候会去检查schema是否一致,如果不一致会做scheme更新 最常用的属性,也根据model类生成表,即使表结构改变了,表中的行仍然存在,不会删除以前的行validate: 启动时验证现有schema与你配置的hibernate是否
2013-03-21 16:02:43
519
转载 SecureCRT 常用技巧
快捷键:1、 ctrl + a : 移动光标到行首2、 ctrl + e :移动光标到行尾3、 ctrl + d :删除光标之后的一个字符4、 ctrl + w : 删除行首到当前光标所在位置的所有字符5、 crtl + k : 删除当前光标到行尾的所有字符6、 alt + b : 打开快速启动栏7、 alt + 1/2/3... : 在多个不同的session标签之
2013-03-14 13:27:51
2190
转载 Real-Time Tracking and Tuning for Busy Tomcat Servers
Real-Time Tracking and Tuning for Busy Tomcat Servershttp://www.devx.com/Java/Article/32730
2013-03-04 17:03:41
527
原创 SEQ ACK
1 15:49:02.977392000 112.101.64.137 192.168.1.101 TCP 82 5938 > afrog [PSH, ACK] Seq=1 Ack=1 Win=256 Len=282 15:49:03.101447000 192.168.1.101 112.101.64.137 TCP 54
2013-01-20 15:51:37
2614
原创 Unable to obtain goal [xdoclet2:run] com/thoughtworks/qdox/model/AbstractBaseJavaEntity
build:start:xdoclet2:init:xdoclet2:run: [xdoclet] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin------------------------------------------------------------------------------->>
2013-01-17 17:47:54
838
转载 jstack提示“存储空间不足,无法处理此命令”
Jstack only allows you to connect to JVM's running in the same user context. Many people use a service wrapper to start their products: this puts the JVM in the Local System Account user context. Si
2012-12-30 13:30:06
3363
转载 mysql记录运行慢的sql
在my.ini加上log_slow_queries=1long_query_time=1log-slow-queries=D:/tmp/mysql_log/msyql_slow.log这样就会将运行时间超过1s的sql保存到mysql_slow.log这个文件中
2012-12-24 17:35:09
563
原创 查看占用的端口号
CMD 打开命令提示符运行命令 netstat -ano|find "8080" 然后查看 8080被哪个进行占用了 最后一个就是那个程序的PID运行命令 tasklist|find "PID"PID换成你上个命令看到的结构 最后一列那个数字 然后就可以看到什么程序占用了,第一列就是进程名看他是否有用,然后干掉他运行命令 askkill /im 进程名或者运行命令 askkill /pid P
2012-12-04 14:29:13
466
原创 jps jmap jstack
jps获取java进程的pidjmap -dump:file=heap.dump.hprof heap dumpjmap -dump:live,file=heap.dump.hprof only the live objects in the heap are dumpedjstack > thrad.dump.tdumpthrad du
2012-10-23 16:13:41
936
转载 图解SQL的inner join、left join、right join、full outer join、union、union all的区别
对于SQL的Join,在学习起来可能是比较乱的。我们知道,SQL的Join语法有很多inner的,有outer的,有left的,有时候,对于Select出来的结果集是什么样子有点不是很清楚。Coding Horror上有一篇文章,通过文氏图 Venn diagrams 解释了SQL的Join。我觉得清楚易懂,转过来。假设我们有两张表。Table A 是左边的表。Table B 是右边的表。其各
2012-09-25 15:03:28
52358
12
转载 SQL替换NOT IN的几种方法总结
NOT IN很好用,但效率很低,共有如下几种方法可以替换,我用几十万数据的测试,最后一种效率是最好的select email from email where email not in(select distinct email from log);SELECT email FROM email WHERE not exists (select email from log where l
2012-09-25 15:02:34
3922
转载 Starting code reviews with Crucible
Crucible is an Atlassian product which makes code reviewing process easy.Here I describe the steps I learned in creating a code review in Crucible. Hope this helps some one who is new to Crucible
2012-09-10 10:44:47
1120
转载 什么是有效的需求
需求通常是客户指定的关于系统实现的行为约束。(“必须支持每分钟 10,000 次交易。”)再次声明,最好在一个独立文档中指定并引用需求。请注意,某些称作“需求”的东西其实并不真是“需求”。UI 设计通常是作为“需求”指定的,但真正的需求通常不是程序的外观如何,而是它做什么。如果实际用户不在意程序是否使用肾形嵌套紫红色按钮,那么肯定没有对使用肾形嵌套紫红色按钮的“需求”,不论您多喜欢这种按钮。(
2012-08-30 17:35:46
755
转载 使用用例捕获需求
本文来自我提供用例培训的PPT。本文内容包括1.用例基本概念2.用例的作用3.从何处发现用例线索4.如何发现用例5.编写用例的准则6.如何判断系统用例是否有效1.用例基本概念(1)需求分析(用例技术)、系统分析(OOA)、系统设计(OOD)、系统实现(OOP)(2)用例的主要作用是:用来捕获系统的高层次(High Level)用户功能性需求(3)用例
2012-08-30 16:29:40
684
转载 用例建模(Use Case Modeling)--捕获用户需求
简介 用例是应用程序开发中的一个关键技术,主要用来捕获系统的高层次(High Level)用户功能性需求。这个绕口的描述主要是因为用例不能用于捕获非功能性需求,也不能用于捕获内部的功能性需求。试图这样做将会造成灾难。首先因为用例是一个非正式的和不精确的建模技术。其次用例的另一个用途是建立我们系统的基本结构,它不仅是定义需求的单位,而且是估计我们的工作量的单位。为什么我们需要
2012-08-30 16:24:35
1205
原创 Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence
原因:xml文件编码为UTF-8,tomcat加载该文件时使用了默认编码GBK解决方案:在tomcat启动参数设置 -Dfile.encoding=UTF-8
2012-08-09 10:07:14
1249
原创 Hiberate SchemaExport
生成schemaConfiguration cfg = new Configuration();cfg.addClass(User.class);cfg.setProperty("hibernate.dialect", "org.hibernate.dialect.HSQLDialect");Dialect dialect = Dialect.getDialect(cfg.getP
2012-08-07 16:21:37
467
转载 Hibernate判断数据库表是否存在
public String isNotExistsTable(TableStruct table) throws SQLException{ Connection conn = getHibernateTemplate().getSessionFactory().getCurrentSession().connection(); Databa
2012-08-07 16:00:53
3838
转载 Hibernate NamingStrategy方式 向月表中写日志
按月命名的日志表如 log_YYMM : log_1011,log_1012,表结构完全相同,只是表名不同,通过命名策略实现存数据时自动创建和写入到相应的月表中。自动创建表,在Hibernate的配置文件中设hbm2ddl.auto 为 updatehttp://hzhlu.iteye.com/blog/812584
2012-08-07 15:15:07
1754
转载 JavaBean 转换为xml的三种方式比较
一、使用XStream包XStream生成的xml文件简洁,需要依赖第三方类库XStream.jar,不过使用 XStream 序列化的类不需要实现Serializable 接口。XStream 有三个突出的特点: 1、XStream 不关心序列化/逆序列化的类的字段的可见性。 2、序列化/逆序列化类的字段不需要 getter 和 setter 方法。 3、序列化
2012-08-06 17:37:43
777
转载 XML序列化对象时出现中文乱码
public static String ToXmlText(Object obj)throws Exception { ByteArrayOutputStream bos= new ByteArrayOutputStream(); XMLEncoder encoder = new XMLEncoder(bos); encoder.writeObject(obj
2012-08-06 17:36:54
5615
转载 Java String 占位符
String stringFormat = "lexical error at position %s, encountered %s, expected %s "; String messageFormat ="lexical error at position {0}, encountered {1}, expected {2}"; System.out.
2012-07-23 17:51:57
14718
转载 Running CMD.EXE as Local System
E:\Documents and Settings\Adi>sc create testsvc binpath= "cmd /K start" type= own type= interact[SC] CreateService SUCCESS E:\Documents and Settings\Adi>sc start testsvc[SC] StartService FAILE
2012-07-02 19:21:30
1087
转载 grep 中文字符的处理
文件编码用 utf8, 终端编码用utf8, locale也用utf8http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=304720
2012-06-22 09:13:58
2740
转载 The last packet successfully received from the server was XXX seconds ago
Database Connection PoolsUsing a connection pool is recommended for improving the performance of your application, and to ensure that your application handles excessive concurrency without overloa
2012-04-10 13:38:52
9044
原创 在hql中设置时间参数时要使用setTimestamp
package org.hibernate;public interface Query {... org.hibernate.Query setTimestamp(int i, java.util.Date date);org.hibernate.Query setTimestamp(java.lang.String s, java.util.Date date);...}
2012-03-29 16:49:44
3743
原创 在grep中使用正则表达式使用
grep 'time[^grep "{[0-9]\{4\}}" log_file -o|grep "[0-9]\{4\}" -o
2012-03-09 15:45:27
550
原创 Monitoring Java Processes Running As a Windows Service
psexec.exe -i -s c:\visualvm\bin\visualvm.exe (该方法在windows 2003不可以)参考http://stackoverflow.com/questions/503057/unable-to-use-jconsole-with-tomcat-running-as-windows-servicehttps://blogs.oracle.c
2012-03-03 11:17:24
710
原创 Tomcat5w monitor application
Tomcat5w is a GUI application for monitoring and configuring Tomcat servicesIt is called if the no option is provided but the executable is renamed to servicenameW.exe
2012-03-03 10:47:08
478
原创 指定visualvm启动JDK
visualvm.exe --jdkhome "JDK1.6_HOME" -XX:+PerfBypassFileSystemCheck
2011-12-29 10:32:55
1000
原创 jconsole线程面板中的阻塞总数和等待总数
http://blog.csdn.net/mangmang2012/article/details/7106692阻塞总数Blocked count is the total number of times that the thread blocked to enter or reenter a monitor. I.e. the number of times a thread h
2011-12-27 17:54:33
18729
1
原创 在xdcolet中指定hibernate.component中生成列名的prefix
http://blog.csdn.net/mangmang2012/article/details/7067083/** * @hibernate.class */public class Person { private Address homeAddress; private Address officeAddress; /** * @hibern
2011-12-13 15:28:52
977
转载 DOS:先进入 bat 文件的路径,然后执行 bat 文件,然后回到当前目录
http://hi.baidu.com/zzy_cqok/blog/item/02fed28256438ba90df4d2af.htmlREM echo 当前盘符:%~d0REM echo 当前路径:%cd%REM echo 当前执行命令行:%0REM echo 当前bat文件路径:%~dp0REM echo 当前bat文件短路径:%~sdp0REM 备份set
2011-12-07 11:01:19
6754
HSQLDB用户指南
2012-03-21
spring-framework-5-0-0-m3-zh_cn
2018-03-05
spring-boot-reference-2.0.3-中文版
2018-08-21
Addison.Wesley.BIRT.A.Field.Guide.3rd.Edition.Feb.2011.pdf
2011-08-11
Netty权威指南 第2版 带书签目录 完整版
2018-08-21
spring-boot-reference-guide-zh_cn
2018-03-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅