본문 바로가기
728x90
반응형
SMALL

IT/Spring36

Spring2.5 Ajax Spring 3.x 부터는 @ResponseBody 어노테이션이 있어서 Ajax를 편하게 사용하지만 Spring 2.5 에서는 DWR 을 이용해서 javascript-ajax 통신을 처리 했었다. DWR 이 아닌 아래의 방법으로도 Ajax 통신을 쉽게 처리 할 수 있다. Spring MVC does not provide out of the box Ajax support. However it provides suitable extension points through its template based design to enable Ajax support very easily. Here is the step by step account of adding Ajax support to your Spring MV.. 2013. 12. 24.
udp-inbound-channel-adapter 이용 was 에 udp server socket 구성 spring3 + myBatis 로 구성한 web server 에서 server socket 을 구성하여 처리해야 하는 경우 spring 에서 제공하는 udp-inbound-channel-adapter 를 이용하여 처리할 수 있다.tcp,udp,multicast 등 여러가지 설정값에 따라 사용할 수 있다.아래 내용은 udp-inbound-channel-adapter 를 이용한 udp server socket 구성 방법 servlet-context.xml ....아래 내용 추가 UdpReceiver Class 정의public class UdpReceiver{ public void receiveByteData(byte[] data) { try{ ByteArrayInputStream bais = new Byt.. 2013. 12. 24.
spring + tiles servlet-context.xmla) tiles 설정을 추가 /WEB-INF/tiles-test.xmlb) tiles-test.xml 관련 설정 확인 c) tilesview 설정을 추가 d) 기존의 InternalResourceViewResolver의 우선순위를 낮춤 * 위의 설정은 기존의 viewResolver를 후순위로 낮추고, 1순위로 tilesViewResolver를 추가함 tiles-test.xml 파일 생성 * tiles-test 설정 - header(상단메뉴), footer(하단), left(좌측메뉴), body(내용) 로 이루어진 base_layout 사용 - definition name은 spring의 Controller에서 return하는 String 값에 매치 Controller@R.. 2013. 12. 24.
springMVC + iBatis springMVC + iBatis 테스트 정리환경 : NT, eclipse, mysql, Tomcat6.0 File -> new -> Dynamic web project -> Sample (프로젝트명) ------------------------------------------------------------------------------------------- 먼저 web.xml 아래와 같이 작성 Sample /WEB-INF/jsp/redirect.jsp encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encodingFilter /* dispatcher org.springframework.web.s.. 2013. 12. 24.
728x90
반응형
LIST