随笔-126  评论-247  文章-5  trackbacks-0
06 2012 档案
Quartz Cron 表达式      摘要: 前言:接触过 Linux 的朋友对Cron表达式应该不会陌生,在 Linux 操作系统下要写个自动化脚本就会用到这个表达式。
Spring 实现定时服务或计划任务的时候也需要用到 Quartz 的 Cron表达式 ,因此在做 Spring计划任务之前,需要掌握一些Cron的知识。
Quartz官方下载地址:http://quartz-scheduler.org/downloads/catalog?activated=true
我下载使用的是 2.0.2 版本,本篇文章参考的是官网帮助文档的 Cron表达式 ,英文在线帮助文档的,有兴趣的可以前往:
Cron expressions:http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger  阅读全文
posted @ 2012-06-12 23:16 fancydeepin 阅读(3823) | 评论 (0)  编辑
Maven 手动添加 JAR 包到本地仓库      摘要: Maven 确确实实是个好东西,用来管理项目显得很方便,但是如果是通过 Maven 来远程下载 JAR 包的话,我宿舍的带宽是4兆的,
4个人共用,有时候用 Maven 来远程下载 JAR 包会显得很慢,一般我发现下载速度不明显的时候,我就 Ctrl + C 来终止它的下载。
然后改用手动来下载,因为用迅雷一类的工具来下载会快很多。我机子上 Maven 的本地仓库的很多 JAR 包我都是手动下载的。
手动下载的话就会带来一个问题,就是,怎么样手动将下载下来的 JAR 包添加到 Maven 的本地仓库。关于这个,网上也有很多资料。
我说下我的做法。
首先,
推荐几个好的 Maven 常用仓库网址  阅读全文
posted @ 2012-06-12 14:43 fancydeepin 阅读(199229) | 评论 (8)  编辑
Spring邮件服务之Html:Maven + Spring SMTP Mail With Html      摘要: 前言:谈过如何用 Spring 发送普通 Email 和带有附件的 Email 之后,接着来谈一下如何用 Spring 来发送 Html 式的 Email。
发送 Html 格式的 Email 也是很必要的,现在的很多网站在用户注册之后都会发一封 Email 到用户的邮箱,用户需要点击
邮件中的链接来完成注册,这个链接如果是用普通文本式的 Email 来发送的话,这个链接是不能被点击的,因为它是文本内容,
所以有必要要学一下 怎么样发送 Html 式的 Email。  阅读全文
posted @ 2012-06-12 13:05 fancydeepin 阅读(4215) | 评论 (0)  编辑
Spring邮件服务之附件:Maven + Spring SMTP Mail With Attachment      摘要: 前言:说过了 Spring 如何发送 Email 之后,接着来说一下,怎么样用 Spring 来发送带有附件的邮件,其实实现这个也很简单,
Spring 的官方文档也有给出例子,下面来说下我的实现。  阅读全文
posted @ 2012-06-12 00:29 fancydeepin 阅读(4969) | 评论 (0)  编辑
Spring邮件服务:Maven + Spring SMTP Mail      摘要: 前言:当然,发 email 不一定要用 Spring,直接用 javax.mail 的API 就能实现。但是由于 Spring 提供了一个发送电子邮件的高级抽象层,
它向用户屏蔽了底层邮件系统的一些细节,同时负责低层次的代表客户端的资源处理。所以用 Spring 来发送 email 会省事很多和让发邮件变的简单许多。  阅读全文
posted @ 2012-06-11 20:48 fancydeepin 阅读(8212) | 评论 (2)  编辑
hibernate one-to-many many-to-one 双向注解      摘要: 博客搬家的时候顺便把文章搬过来,如果看得不是很清楚的,可以前往原博客地址:
-->URL:http://www.cnblogs.com/fancyzero/archive/2012/06/10/hibernate-many-to-one_one-to-many-annotation.html  阅读全文
posted @ 2012-06-10 18:57 fancydeepin 阅读(19547) | 评论 (0)  编辑
hibernate annotation 双向 one-to-one 注解      摘要: 博客搬家的时候顺便把文章搬过来,如果看得不是很清楚的,可以前往原博客地址:
-->URL:http://www.cnblogs.com/fancyzero/archive/2012/06/10/hibernate-one-to-one-annotation.html  阅读全文
posted @ 2012-06-10 14:34 fancydeepin 阅读(907) | 评论 (0)  编辑
urlrewrite 地址重写      摘要: 博客搬家的时候顺便把文章搬过来,如果看得不是很清楚的,可以前往原博客地址:
-->URL:http://www.cnblogs.com/fancyzero/archive/2012/06/10/urlrewrite.html  阅读全文
posted @ 2012-06-10 07:24 fancydeepin 阅读(2768) | 评论 (0)  编辑
myeclipse 上安装 Maven3      摘要: 博客搬家的时候顺便把文章搬过来,如果看得不是很清楚的,可以前往原博客地址:
-->URL:http://www.cnblogs.com/fancyzero/archive/2012/06/09/maven3.html  阅读全文
posted @ 2012-06-09 17:19 fancydeepin 阅读(3040) | 评论 (1)  编辑
Jdom 解析 XML      摘要: 博客搬家的时候顺便把文章搬过来,如果看得不是很清楚的,可以前往原博客地址:
-->URL:http://www.cnblogs.com/fancyzero/archive/2012/06/09/jdom.html  阅读全文
posted @ 2012-06-09 12:05 fancydeepin 阅读(786) | 评论 (1)  编辑