This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locationの適用順は… | |
修飾子=、完全一致 | |
修飾子なし、完全一致 | |
修飾子^~、前方一致 | |
修飾子~ or ~* 正規表現マッチ | |
修飾子なし、前方一致 | |
URIのパラメータ(?以降)はlocation適用順に影響しない。 | |
参照:http://paulownia.hatenablog.com/entry/20111117/1321531964 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo lsof -i:8443 | |
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME | |
java 4249 globus 5u IPv4 650367 TCP *:8443 (LISTEN) | |
java 18389 globus 5u IPv4 650367 TCP *:8443 (LISTEN) | |
http://d.hatena.ne.jp/stakizawa/20080324/t1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
複数のCPUがメモリーを共有するUMA(Uniform Memory Architecture) | |
それぞれのCPUにメモリーが直結している構造をNUMA(Non-Uniform Memory Architecture) | |
参考 | |
http://hpcdiyc.hpc.co.jp/topics01.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
■ そもそも何をチェックするのか? | |
分散データベースをベンチマークするチェックリスト - sunsuk7tpのメモメモ | |
http://d.hatena.ne.jp/sunsuk7tp/20111101/1320159385 | |
■ ツール | |
[YCSB - Yahoo! Cloud Serving Benchmark] | |
http://research.yahoo.com/Web_Information_Management/YCSB/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
■ eclipse, tomcat 6系, console に出力される文字コードがおかしい場合 | |
eclipse.ini にあれを追加する | |
-Dfile.encoding=utf-8 | |
参考:http://krakenbeal.blogspot.jp/2011/07/eclipseutf-8.html | |
■ The APR based Apache Tomcat Native library。。。云々で怒られる | |
server.xml から下記の行をコメントアウトする | |
<!--APR library loader. Documentation at /docs/apr.html --> | |
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping("test/loggin") | |
public ModelAndView getLogginUrl(@PathVariable("language") String language, HttpServletRequest request, HttpServletResponse response) { | |
setLocale(language, request, response); | |
ModelAndView mav = new ModelAndView(); | |
String logginPageUrl = getLogginPageURL(); | |
// ポイントはここ。 redirect: を prefix に設定すればよい | |
mav.setViewName("redirect:" + logginPageUrl); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
明確な違いは | |
session は、Dataをserver 上に保持している | |
cookie は、Dataをclient 上に保持している | |
という点。 | |
session はserver のメモリ上に保持されているがcookie はlocal に保存される。 | |
cookie のファイルはブラウザ別に保存される。 | |
http://oshiete.goo.ne.jp/qa/2375010.html | |
以下余談 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test of configuration | |
nginx -t | |
# reload config file | |
nginx -s reload | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExtendHandlerInterceptor implements HandlerInterceptor { | |
@Override | |
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { | |
// any code | |
} | |
@Override | |
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, | |
ModelAndView modelAndView) throws Exception { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnnotationMethodHandlerExceptionResolverの追加が必要。 | |
今回の自分のケースでは、SimpleMappingExceptionResolverを既に利用していたので、 ExceptionResolver の優先順位付けをして、 | |
AnnotationMethodHandlerExceptionResolver を優先度高く設定する必要があった。 | |
詳しくは下記 | |
http://forum.springsource.org/showthread.php?102713-Spring-Web-MVC-ExceptionHandler-ignore-when-exceptionResolver-in-place&p=347448#post347448 |