Seasar FWメモ
SmartDeploy
HOT | ソースコードが修正されたら即時反映。若干パフォーマンスが落ちる。 |
WARM | プロジェクト全体のDI設定は初回のみ。あとは変更されたところのみデプロイされる(UT用かな) |
COOL | 初期化1回のみ。パフォーマンスに影響なし。(本番用) |
SmartDeployのモード切替はresourceフォルダ内のenv.txtを編集する。
登録されているコンポーネントを確認する方法
web.xmlのs2containerの部分を編集
s2container
org.seasar.framework.container.servlet.S2ContainerServlet
2
debug
true
1
URLを叩く
http://localhost:8080/SAStrutsS2JDBC/s2container?command=list
interceptorの作り方
app.dicon
customizer.dicon
"actionMessagesThrowsInterceptor"
"testInterceptor"
true
or
"exceptionInterceptor"
true