java6縛りで、jersey + spring + mybatis でREST APIを開発したときに使ったライブラリ。
Guavaがあると、初歩的な関数型プログラミングのようなことができる。scalaの開発案件直後だったので、結構助かった。
ログ
-
logback
web.xmlで使うリスナー
https://github.com/qos-ch/logback-extensions/wiki/Spring -
AspectJ
AOPで、サービス、リソースクラスのメソッドは開始と終了時にログ出力
https://eclipse.org/aspectj/
日付・時刻
- joda-time
http://www.joda.org/joda-time/
ファイル操作
- commons-io
http://commons.apache.org/proper/commons-io/
エンコード、デコード
- commons-codec
http://commons.apache.org/proper/commons-codec/
暗号化・復号化
- jasypt
http://www.jasypt.org/
JSON
- Jackson (Jerseyに含まれているものを使用)
http://jackson.codehaus.org/
メール送信
- commons-email
https://commons.apache.org/proper/commons-email/
テンプレート
- Handlebars.java
https://github.com/jknack/handlebars.java
ユーティリティ
-
commons-lang
https://commons.apache.org/proper/commons-lang/ -
Guava (Jerseyに含まれているものを使用)
主に関数型プログラミング的なことをするため
https://code.google.com/p/guava-libraries/
コード生成
- Mybatis Generator
http://mybatis.github.io/generator/index.html
テスト
-
JUnit
http://junit.org/ -
junit-hierarchicalcontextrunner
テストの構造化のため
https://github.com/bechte/junit-hierarchicalcontextrunner/wiki -
DbUnit
テストデータの用意、期待するデータとテーブルとの比較
http://dbunit.sourceforge.net/ -
Mockito
テストでのモック注入
https://code.google.com/p/mockito/