Dan's Workspace

FuckGFW


  • Home

  • Archives

  • Tags

  • Search

使用 javamail 发送 SSL 加密邮件

Posted on 2013-02-10 | Comments: | Views:
Symbols count in article: 14k | Reading time ≈ 13 mins.
使用javamail发送邮件, 同时解决 SSL 证书问题. 用以实现服务器直接给用户发送邮件功能
Read more »

Struts 返回 json 格式时缺少父类属性问题解决

Posted on 2013-02-10 | Comments: | Views:
Symbols count in article: 1.6k | Reading time ≈ 1 mins.
通过 struts 搭配 json 插件, 直接返回 json 对象可以大大简化程序对返回格式进行手动格式化的操作, 然而, 也碰到一个问题, 如果 result 中用于生成 json 格式的对象如果继承了某个对象, 输出的 json 格式中并不会包含父类的属性.
Read more »

Git 常见问题处理

Posted on 2013-01-30 | Comments: | Views:
Symbols count in article: 1.5k | Reading time ≈ 1 mins.
Git 很多公司都已经开始采用了, 这里只是简单列举一些常见的文件解决方案.
Read more »

Maven 根据不同的 profile 对不同的构建环境进行配置

Posted on 2013-01-25 | Comments: | Views:
Symbols count in article: 3k | Reading time ≈ 3 mins.
通过 maven 管理项目的时候, 非常头疼的问题之一就是可能存在不同的构建环境, 比如开发环境, 单元测试环境, QA环境, 部署环境等等. 最好的方案是通过传入一个参数来指定一套完整的配置环境.
Read more »

Hibernate 配置写入数据库时自动设置系统时间

Posted on 2013-01-06 | Comments: | Views:
Symbols count in article: 2.5k | Reading time ≈ 2 mins.
通过配置 hbm.xml 文件使 hibernate 写入数据库时自动生成写入时的系统时间, 用于需要记录注册时间的场合, 如'用户注册时间'等
Read more »

解决使用BlackberryDesktopManager同步Outlook时崩溃问题

Posted on 2012-11-29 | Comments: | Views:
Symbols count in article: 673 | Reading time ≈ 1 mins.
通过**Blackberry Desktop Manager**将blackberry和**Outlook**同步的时候, 100%会在同步时直接崩溃. 经过反复测试和网上资料的搜集, fix了这个问题.
Read more »

proxool 0.8.3使用java搭建MySql连接池的配置和测试

Posted on 2012-11-27 | Comments: | Views:
Symbols count in article: 5.5k | Reading time ≈ 5 mins.
在企业开发的时候, 很多情况都会使用数据库连接, 下文将介绍proxool连接池的使用和配置以及测试方案.
Read more »

jsp解决session过期时写入数据库操作

Posted on 2012-11-27 | Comments: | Views:
Symbols count in article: 1.5k | Reading time ≈ 1 mins.
背景如下:
我在做一个系统的时候希望实现当用户点击jsp页面上的注销按钮时实现在数据库中保存用户注销的时间. 另外如果用户没有正常退出, 则在session超时时自动记录超时时候的时间.
Read more »

使用Tapir实现jekyll的站内搜索功能

Posted on 2012-11-16 | Comments: | Views:
Symbols count in article: 4.4k | Reading time ≈ 4 mins.
要在jekyll搭建的静态网站中实现站内搜索, 网上给出的解决方案基本都是**google custom search**, 但是这个方案不但有广告, 想修改css的时候又非常的复杂, 难以下手. 下面提供另一种非常简便的站内搜索解决方案--**Tapir**
Read more »

在vim做粘贴操作时禁用自动缩进和智能缩进

Posted on 2012-11-16 | Comments: | Views:
Symbols count in article: 1.4k | Reading time ≈ 1 mins.
vim的自动缩进和智能缩进功能给在vim下做开发的程序员提供了非常大的便利, 但在做代码粘贴的时候, 如果被粘贴的文字中带有tab, 整个粘贴后的格式会乱掉, 需要开启一些特殊设置.
Read more »
12345
Dan Shan

Dan Shan

未来的家庭, 除了一扇窗户, 还有一只企鹅

48 posts
77 tags
RSS
GitHub Twitter
Links
  • 叶落寒山
© 2012 — 2023 Dan Shan | 187k | 2:false
Powered by Hexo v3.7.1
|
Theme — NexT.Muse v6.2.0