J2EE
iteye_1317
这个作者很懒,什么都没留下…
展开
-
c3p0 java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
修改日志级别为info[url]http://hi.baidu.com/xhr8334/blog/item/cf15d1a6deb235fc9052ee9b.html[/url]原创 2011-05-28 16:07:09 · 128 阅读 · 0 评论 -
jms基础概念和应用场景
原文地址:[url]http://blog.csdn.net/KimmKing/archive/2011/06/30/6577021.aspx[/url]JMS and ActiveMQ first lesson -- jms基础概念和应用场景2011-6-18 PM 9:30主讲:kimmking 整理:林木森ppt下载地址:http://code.google.co...原创 2011-07-01 13:55:29 · 108 阅读 · 0 评论 -
实现自定义截取图片
几种插件:[url]http://odyniec.net/projects/imgareaselect[/url][url]http://tutorialzine.com/2010/02/jquery-photoshoot-plugin/[/url][url]http://deepliquid.com/content/Jcrop.html[/url]比较好的资料:[url]...原创 2011-07-13 17:30:12 · 125 阅读 · 0 评论 -
java image scale
[url]http://code.google.com/p/java-image-scaling/wiki/Getting_started[/url]原创 2011-07-20 13:47:59 · 126 阅读 · 0 评论 -
SSH整合
1、struts2与spring整合[url]http://www.opensymphony.com/webwork/wikidocs/Spring.html[/url]原创 2011-04-14 09:42:18 · 72 阅读 · 0 评论 -
Spring @Tansactional 事务回滚
[url]http://www.catalysts.cc/wissenswertes/spring-transactional-rollback-on-checked-exceptions/?lang=en[/url]1、@Tansactional默认只回滚unchecked异常2、如果要回滚checked异常,必须要使用rollbackfor...原创 2011-04-17 15:41:29 · 507 阅读 · 0 评论 -
Dependency Injection - An Introductory Tutorial - Part 1
原文地址:[url]http://code.google.com/p/jee6-cdi/wiki/DependencyInjectionAnIntroductoryTutorial_Part1[/url]CDI is the Java standard for dependency injection (DI) and interception (AOP). It is evident fro...原创 2012-02-20 10:57:57 · 133 阅读 · 0 评论 -
boolean 字段映射
1、hiberna使用boolean2、mysql使用tinyint(1)原创 2011-04-25 11:00:52 · 444 阅读 · 0 评论 -
mybatis打印sql
mybatis默认使用log4j,当有self4j这个日志jar包存在时会无法打印sql,请移除或者在工程启动时显示设置mybatis使用的日志类log4j.logger.org.apache.ibatis=debug,stdoutlog4j.logger.java.sql=debug,stdout----------------------------------------...原创 2011-05-09 15:03:49 · 52 阅读 · 0 评论 -
struts2 排除拦截部分路径
情况:在web.xml中配置一个servlet映射路径为/test,但是struts2的filermapping为/*.这样,servlet就不会被映射到。解决:参考:Why the Filter is mapped with /* and how to configure explicit exclusions (since 2.1.7)In the exampl...原创 2011-11-30 13:27:57 · 1465 阅读 · 0 评论 -
log4j 常用配置
原文地址:[url]http://www.benmccann.com/dev-blog/sample-log4j-properties-file/[/url]I always find the hardest part of getting started with log4j is creating a log4j.properties file. For that reason, I’ve...原创 2012-03-22 21:02:14 · 162 阅读 · 0 评论 -
Envers –tracked your Entity Objects
原文地址:[url]http://get2java.wordpress.com/2011/06/27/envers-easy-auditing-for-entity-classes/[/url]Have you tracked your Entity Objects ? When it has created,modified and deleted with time.Try Env...原创 2011-06-29 09:05:10 · 159 阅读 · 0 评论 -
JSON Compression algorithms: HPack VS CJSON
总结:HPack 优于 CJSON json1 json2 json3 json4 json5Original JSON size (bytes) 52966 104370 233012 493589 1014099Minimized 33322 80657 180319 382396 776135Compress CJSON 24899 48605 108983 231760 4...原创 2011-06-28 17:24:01 · 407 阅读 · 0 评论 -
amazon 云计算
最近看了amazon的云计算部分文档以及和一些使用过amazon的网友交流。。。发现如下:1、amazon的计费方式很复杂,下面这个URL举了一个很好的例子。总体来说,amazon还是有些贵了。但是这个就得看你的项目和规划。[url]http://dallaslu.com/amazon-ec2-vpsyou-cost/[/url]2、amazon的优势在于很高拓展性的水平下比较便宜...原创 2011-05-28 21:45:18 · 248 阅读 · 0 评论 -
SVN 安装
collabnet svn 现在出了整和的SVN EDGE。这并不是新的svn。只是将viewc,svn,apache整合在了一起。使用过程中我碰到这个:主动拒绝的问题。我的状况如下:服务里svn edge 和svn server 都已成功启动,但是就是无法checkout 并且报错 主动拒绝。查看端口信息中发现svn 3609 根本没有启动。这个很奇怪啊,为什么svn ser...原创 2011-05-30 15:45:16 · 69 阅读 · 0 评论 -
jfreechart 中文问题
基本如果将jfreechart生成图片的字体多改成中文的字体就不会出现乱码的问题。转载文章[url]http://huqilong.blog.51cto.com/53638/157591/[/url] JFreechart默认的字体是 SansSerif,这样的字体在生成图片时中文会是小方框或者乱码,因此我们需要将他的源码修改下,重新设置字体为中文字体 ...原创 2011-06-07 16:52:28 · 57 阅读 · 0 评论 -
jfreechart demo 代码
jfreechart 官方demo 源代码原创 2011-06-07 18:33:24 · 109 阅读 · 0 评论 -
jfreechart 自定义饼图颜色
关键代码:[code="java"]private static class PieRenderer { private static final Paint[] COLORS = { Color.RED, Color.YELLOW, Color.GRAY, Color.MAGENTA, Color.ORANGE, Color.GREEN, Color.DARK_...原创 2011-06-09 18:52:03 · 1277 阅读 · 0 评论 -
jfreechart 图标各部分名字
图标各部分名字原创 2011-06-09 19:57:56 · 168 阅读 · 0 评论 -
eclipse的build与clean
现象:无论怎么改变代码,程序的行为始终不变,一直报错。。。。昨天同事创建了工程,并提交到SVN.我check out时没注意check out什么文件,无论我怎么更改代码,始终报错。一直找不到原因。。最后我将工程clean一道(删除了工程下的bin目录),重新部署到服务器,一切正常了。。。才发现他将bin目录提交到svn上了。。。...原创 2011-06-22 09:01:20 · 93 阅读 · 0 评论 -
Sturts2 全局异常日志
原文地址:[url]http://www.brucephillips.name/blog/index.cfm/2009/12/8/Struts-2-Global-Exception-Handling-With-Logging[/url]Struts 2 Global Exception Handling With LoggingPosted At : December 8, 2009 5:...原创 2011-06-25 10:50:58 · 156 阅读 · 0 评论 -
http://jbaruch.wordpress.com/2011/06/22/unified-logging-using-slf4j/
原文地址:[url]http://jbaruch.wordpress.com/2011/06/22/unified-logging-using-slf4j/[/url]Integrating, integrating, integrating. That’s what we do in Java enterprise development. Persisting objects with H...原创 2011-06-27 10:48:32 · 216 阅读 · 0 评论 -
Why we don’t use Doubles for Financial Calculations
[color=red]原文地址:[url]http://bloodredsun.com/?p=320[/url]另一篇文章:What Every Computer Scientist Should Know About Floating-Point Arithmetic[url]http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_...原创 2011-06-27 11:14:20 · 59 阅读 · 0 评论 -
spring send gmail
只要这样配置好久能使用gmail了[code="java"] [color=red] true 25000 465 465 false javax.net.ssl.SSLSocketFactory[/color] **** *** [/c...原创 2012-04-24 11:06:45 · 123 阅读 · 0 评论