05 2012 档案

NetBeans IDE 7.1.1输入中文显示乱码
摘要:OS:win7 家庭在Fonts & Colors 中修改字体为 Monospaced 以后可输入中文,其他字体不可以 阅读全文

posted @ 2012-05-31 13:44 izumi 阅读(346) 评论(0) 推荐(0)

MyBatis使用MySQL数据库如何在执行insert操作后返回自增的主键
摘要:数据库:MySQL5表:create table play(iid int(10) not null primary key auto_increment,typeId int(3));Play.java:public class Play{ private Integer iID; private Integer typeID; ...setter and getter省略...}play-mapper.xml:<mapper namespace="PlayDAO"> <resultMap id="BaseResultMap" typ 阅读全文

posted @ 2012-05-27 09:33 izumi 阅读(18657) 评论(1) 推荐(0)

ContextLoaderListener与DispatcherServlet所加载的applicationContext的区别
摘要:http://starscream.iteye.com/blog/1107036http://yonge812.iteye.com/blog/1535488org.springframework.web.servlet.DispatcherServlet是使用Spring MVC时的Front Controller,并不会初始化applicationContext。只使用它,肯定会找不到bean定义。web程序必须使用org.springframework.web.context.ContextLoaderListenerorg.springframework.web.context.Cont 阅读全文

posted @ 2012-05-22 15:17 izumi 阅读(987) 评论(0) 推荐(0)

Swing使用总结
摘要:一、JTree:http://hi.baidu.com/beer_zh/blog/item/5c135c8f4d7ad1ebf11f3666.htmlhttp://blog.csdn.net/arjick/article/details/45266921、常用方法:(1)、选择模式改成只能单选tree.getSelectionModel().setSelectionModel(TreeSelectionModel.SINGLE_TREE_SELECTION);(2)、取得选中的节点(DefaultMutableTreeNode)tree.getLastSelectedPathComponent 阅读全文

posted @ 2012-05-18 14:49 izumi 阅读(456) 评论(0) 推荐(0)

用Swing作类似google搜索的搜索条
摘要:http://abruzzi.iteye.com/blog/470732 阅读全文

posted @ 2012-05-16 16:13 izumi 阅读(174) 评论(0) 推荐(0)

mybatis打印sql
摘要:mybatis默认使用log4j,当有self4j这个日志jar包存在时会无法打印sql,请移除或者在工程启动时显示设置mybatis使用的日志类log4j.logger.org.apache.ibatis=debug,stdoutlog4j.logger.java.sql=debug,stdoutfrom:http://13146489.iteye.com/blog/1037512 阅读全文

posted @ 2012-05-07 09:11 izumi 阅读(3318) 评论(0) 推荐(0)

导航