`
heipark
  • 浏览: 2079362 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
网上有说使用注册表和组策略的,我试过都失败了,人品问题吧。   之前一直用dameware可以设置为256连接远程桌面,个人觉得这个软件有些重。   最近又有新招:   打开win7远程连接(mstsc.exe),在主界面点击“选项”按钮,点击“常规”标签,点击“另存为”按钮,假设将当前连接配置(*.rdp文件)存到桌面,使用文本编辑器打开配置文件,修改“session bpp”配置项为:   session bpp:i:8   2的8次方,正好是256色。以后使用的时候,只要双击这个配置文件就可以实现256连接远程桌面了。
  设计模式之State http://www.jdon.com/designpatterns/designpattern_State.htm   设计模式小例子 http://lixiaoqiang.spaces.live.com/Blog/cns!1D98D63323C0DC72!154.entry    
More formally, the Law of Demeter for functions requires that a method M of an object O may only invoke the methods of the following kinds of objects: O itself (方法自身) M's parameters (方法参数对象方法) any objects created/instantiated within M (方法中创建对象的方法) O's direct component objects (对象的实例对象的方法) a ...
KeyHolder keyHolder = new GeneratedKeyHolder(); jdbcTemplate.update(new PreparedStatementCreator() { public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { PreparedStatement ps = connection.prepareStatement( "INSERT INTO Test (id, NAME) ...
Criteria distinct对象结果集 这篇文章是上一篇的续, 主要讲述如何使用Criteria查询distinct后的结果集. 实体:   public class Authority { private Long id; private String name; // setter getter method ... } public class User { private Long id; private String name; ...
相信大家都很喜欢Criteria查询,因为它对查询条件已经查询实体采用松散的组合,不像HQL那样需要拼字符串。 但是又会比较抵触它,因为对它的不熟悉,写复杂查询可能会不顺手,一个子查询也可能会很麻烦。 今天我用半天时间与大家分享Criteria查询里面弯路比较多的结果集distinct,这个在HQL里面很简单,但在Criteria查询还真是头疼,网上的文章也是很模糊而且讨论的比较片面,我希望通过这篇文章让大家少走弯路,多用Criteria查询,少用HQL拼字符串。呵呵。 Criteria的结果集最常用分两种:对象List、List<Object[]>(投影查询),这两种查询结果的 ...
Global site tag (gtag.js) - Google Analytics