摘要:
从hibernate2.1开始ehcache已经作为hibernate的默认缓存方案(二级缓存方案 sessionfactory级别), 在项目中有针对性的使用缓存将对性能的提升右很大的帮助。 要使用 Ehcache:需要一下步骤 一,classpath添加相应的jar(ehcache,commons-logging) 二,然后在hibernate.cfg.xml中配置 org.hibernate.cache.EhCacheProvider true true 说明:如果没有配置true(默认false) 将会产生根据单个id查询的情况(产生很多sql)。 三,为需要缓存的类添加... 阅读全文
posted @ 2014-01-14 15:02
网络大豆
阅读(4473)
评论(0)
推荐(0)
摘要:
http://sahits.ch/blog/?p=2372————————————————————————————————————————————————————TextFlow with JavaFX 2When ever you want to display a large portion of text in your application the Text node is your friend. Text allows you to define a wrapping width and thereby allows nice multyline text without let 阅读全文
posted @ 2014-01-14 14:17
网络大豆
阅读(887)
评论(0)
推荐(0)
浙公网安备 33010602011771号