수정페이지 이동(hello_world.jsp) hello_world.jsp에서 사용자 아이디에 수정페이지로 이동하도록 내용 추가 ${data.user_id} src\com\iot\controller\UserController.java 클래스 내용 추가 @Autowired private UserInfoService service; @RequestMapping(value = "/edit_user.iot", method = RequestMethod.GET) public String edit_user(@RequestParam("user_id") String user_id, ModelMap modelMap) throws Exception { UserInfo userinfo = service.selectUser(u..
JSONData 추상 클래스 생성 Factory 패턴에서 반환 가능한 형태로 만들기 위해서 추상 클래스를 사용하기때문에 아래와 같이 추상 클래스를 생성 package com.iot.json; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.json.JSONObject; public abstract class JSONData { private static SimpleDateFormat formatter = new Simple..
Spring MVC - JSTL Form radio 버튼 출처 : Spring MVC radiobutton and radiobuttons example 코드 객체 생성 package com.iot.db.domain; public class CodeString { private String code; private String title; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } } jsp sele..
Spring MVC Multipart Configuration (iot-servlet.xml 내용추가) 출처 : Spring MVC File Upload Example Tutorial - Spring MVC File Upload Example Tutorial – Single and Multiple Files 스프링(Spring) 파일 업로드(File Upload) :: 갱짱.study - 이갱짱 - Tistory FileUploadController.java package com.iot.controller; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; ..
컨트롤러 클래스에서 입력받은 객체 전달 modelMap.addAttribute("userinfo", new UserInfo()); 내용 추가 package com.iot.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Reque..
출처 : mybatis-spring – 마이바티스 스프링 연동모듈 | 매퍼 주입DB 접속 설정(WebContent\WEB-INF\iot-datasource.xml)데이터베이스 접속 정보(JDBC) 설정 JDBC는 각 데이터베이스 마다 제공되고 있고, 연결방식도 달라 따로 검색이 필요 DB 접속정보 iot-servlet.xml에 추가 MyBatis Domain 패키지 생성MyBatis Mapper 패키지 생성MyBatis Service 패키지 생성MyBatis 설정 파일 작성(WebContent\WEB-INF\iot-mybatis.xml) user_info 예제 테이블 생성 CREATE TABLE `user_info` ( `user_id` varchar(20) NOT NULL, `password` varc..
프로젝트 생성test.jsp 결과 = web.xml 작성 iot 720 *.jsp UTF-8 /servlet/* UTF-8 index.html 스프링에서의 POST/GET 한글처리(web.xml)출처 : Spring MVC : 스프링에서의 POST/GET 한글처리 characterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 characterEncodingFilter /* 스프링에서의 MVC 설정(web.xml)출처 : Spring MVC : @MVC와 DispatcherServlet에 대해서주소 *.iot는 DispatcherServlet이 실행iot-servlet.xml 찾음 iot org.spr..
출처 : Rednics Blog - 보안이 적용되지 않은 간단한 웹 어플리케이션 생성 WEB-INF\web.xml contextConfigLocation /WEB-INF/iot-datasource.xml /WEB-INF/iot-mybatis.xml /WEB-INF/iot-security.xml org.springframework.web.context.ContextLoaderListener springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* WEB-INF\iot-security.xml Controllerpackage com.iot.controller; import j..
- Total
- Today
- Yesterday
- Spring
- BPI-M4
- Java
- MySQL
- 동경
- 지스타2007
- android
- sas2009
- Delphi
- JavaScript
- ble
- koba2010
- ffmpeg
- flex
- SAS
- 일본여행
- Delphi Tip
- Linux
- Xcode
- NDK
- Mac
- KOBA
- 레이싱모델 익스트림 포토 페스티벌
- oracle
- 튜닝쇼 2008
- ubuntu
- Spring MVC
- 전예희
- 송주경
- 서울오토살롱
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |