http://docs.spring.io/spring-mobile/docs/current/reference/html/device.html 유용햇!DeviceResolverHandlerInterceptorSpring Mobile ships with a HandlerInterceptor that, on preHandle, delegates to a DeviceResolver. The resolved Device is indexed under a request attribute named 'currentDevice', making it available to handlers throughout request processing.To enable, add the DeviceResolverHandlerInterce..
http://stackoverflow.com/questions/17898606/difference-between-webmvcconfigurationsupport-and-webmvcconfigureradapterhttp://docs.spring.io/autorepo/docs/spring/4.0.5.BUILD-SNAPSHOT/javadoc-api/org/springframework/web/servlet/config/annotation/EnableWebMvc.html javacongif 스타일로 sping mvc 설정을 할때. 두 구현체의 사용성격에 대한 이야기. 개인적으로 정리를 하자면, 커스텀하게 구현 - WebMvcConfigurationSupport기본설정으로 구현 - WebMvcConfigurerAd..
DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 400 Bad Request Bad Request Your browser sent a request that this server could not understand. Apache/2.2.16 (Debian) Server at pvs.ifi.uni-heidelberg.de Port 80 http://stackoverflow.com/questions/10268296/http-client-connection-in-java 이런 에러를 만나게 되면.method 타입을 확인해야 한다.파라미터를 method 타입에 따라 보내야 문제가 없다..........
- 동작흐름. 1. beanfactory 에서 후보 bean을 가져온다. (by type) - @Qualifier 지정자가 있을 경우, 후보 bean을 지정자와 매치하는 것만 찾음 2-0. 후보가 없으면, 에러 끝.2-1. 1개 일 경우, 반환 끝.2-2. 2개 이상 일 경우. (fallback 상태)이런 경우, fallback 상태로 처리 (is smart?) 2-2-1 각 후보 bean 에서 primary 표시자 유무를 찾는다. (@Primary annotation)있는 경우, primary 로 지정된 bean 을 반환. (2개 이상 primary 로 지정 하면?) 2-2-2primary 조차 없는 경우.filedname(변수명)과 동일한 bean id가 있다면 반환. 2-2-3그것 조차 없으면, 에..
java model 객체에 boolean isTestboolean getTest 반환타입이 boolean 메소드에 동일한 getter 가 있을 경우(setter 도 마찬가지)정확한 getter 지정이 필요하다는 에러. 결론은 둘중 하나만 model 에 선언되어야 한다;좀 유연하지 못한 부분이라고 생각 된다. 레거시 코드에 영향도가 큰 경우. (해당 메소드를 참조하고 있는 부분)작업자에게 절망을 충분히 안겨 줄 수 있다;
http://mybatis.github.io/mybatis-3/ko/dynamic-sql.html 동적쿼리 사용이 ibatis 와 mybatis 간에 차이가 있는 것 같다. ibatis 는 iterate , mybatis 는 foreach (개인적으로는 foreach 구문에 한표.)고로, 둘 간의 쿼리변환을 위해서는 수고가 필요하다. 아래에 간단한 테스를 참조한다. ex)relayKeyList 파라미터는 List 타입이다. ibatisSELECT*FROMTestWHEREuserno = 123AND (( no = CAST(#relayKeyList[].[0]# as numeric(20, 0)) AND no2 = CAST(#relayKeyList[].[1]# as numeric(20, 0)) )) foreac..
1.우선 라이브러리 부터 추가.maven > pom.xml org.springframework.retryspring-retry1.0.3.RELEASE 2.실제 적용 코드> blabla.java public class blabla implements InitializingBean {static final String KEY = "testKey";private RetryTemplate retryTemplate; private RetryCallback retryCallback;private Client client; @Autowiredpublic blabla(Client client) {this.client= client;} public void setRetryTemplate(RetryTemplate retr..
클래스의 타입을 정의 할때. 인터페이스를 implement 해서, 해당 클래스가 내가 원하는 operation 의 종류인지 선언 하는 경우가 있다.물론, 상속 구현으로 상위 부모 객체가 동일하면, 같은 처리를 할 수 있겠지만.무거운 상속구조 보다는 좀 더 유연한 타입 비교가 아닐까 생각한다. ex)webwork 의 interceptor 의 기능 추가 시,접근 action 이 처리 되어야 할 action 인지 여부를 타입 interface 로 판단 하는 케이스 거기에 추가로,annotation 으로도 타입을 정의 할 수 있다. retention 범위를 소스단위로 정의 하고.별도의 구현이 없는 annotaion 을 정의 하면, interface 와 동일한 방식이 가능하다.사실, annotation 선언 자체..