본문 바로가기

반응형

emotional developer/detect-Web

[spring] @ControllerAdvice 여러개 쓰기. @ControllerAdvice 를 통해서 error 처리가 가능하다. 두개 이상의 @ControllerAdvice 가 있을 경우, 처리 순서를 지정해야 하는 경우가 있다. 이럴 경우. @Order 어노테이션을 이용해서 우선순위를 지정한다. http://stackoverflow.com/questions/19498378/setting-precedence-of-multiple-controlleradvice-exceptionhandlersclass UserProfileException extends RuntimeException { } @ControllerAdvice @Order(Ordered.HIGHEST_PRECEDENCE) class UserProfileExceptionHandler { @Exceptio.. 더보기
[spring] CharacterEncodingFilter java config java config 스타일로 CharacterEncodingFilter 추가.흔히 요청들의 encoding 을 지정하기 위해 이용한다.특히, 한글 처리. tomcat 에도 uriencoding 을 지정하고, 추가로 이 필터를 지정하면 된다. http://www.rockhoppertech.com/blog/spring-mvc-configuration-without-xml/FiltersYou can also create any Servlet Filters here. Here are a few Spring provided Filters.In this example I set up the CharacterEncodingFilter.Java12345678910111213@Overridepublic void onS.. 더보기
PyDev 가 이클립스에서 보이지 않는 경우. http://pydev.sourceforge.net/download.htmlPyDev does not appear after install!Well, the main issue at this time is that PyDev requires Java 7 in order to run. So, if you don't want to support PyDev by going the LiClipse route (which is mostly a PyDev standalone plus some goodies), you may have to go through some loops to make sure that you're actually using Java 7 to run Eclipse/PyDev (as explai.. 더보기
Apache Bench http://httpd.apache.org/docs/current/programs/ab.htmlhttp://en.wikipedia.org/wiki/ApacheBenchhttp://zhoto.tistory.com/entry/20061108-apache-ab%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EB%B2%A4%EC%B9%98%EB%A7%88%ED%81%AC 더보기
Tiles VS SiteMesh 여기저기 자료를 취합. 1.http://tiles.apache.org/framework/tutorial/pattern.htmlComposite View vs. DecoratorTiles is a composite view framework: it allows to reuse page pieces across the application. But another approach to achieve the same result is using the Decorator pattern. For example, Sitemesh is based on the Decorator pattern.Instead of creating a template and organizing the pieces together, the D.. 더보기
PageSpeed Insights http://developers.google.com/speed/pagespeed/insights 매우 훌륭한 측정 사이트.구글이 참 잘 만들었네.. 더보기
Flash OBJECT and EMBED tag attributes http://kb2.adobe.com/cps/127/tn_12701.html What's covered Required attributes Optional attributes and possible values Active Content JavaScript This document lists the required and optional attributes of the object and embed tags used to publish Adobe Flash movies. For specific usage information for these attributes, see sections of the Using Flash manual devoted to usingobject and embed tags. (.. 더보기
Spring MVC Fast Tutorial http://maestric.com/doc/java/spring 더보기