환경: Eclipse kepler(4.3)


1. STS(스프링) 플러그인 설치


  Help -> EclipseMarketPlace... -> Find ->sts 검색 

  자신의 Eclipse버전에 맞는 sts를 install하면 된다. uninstall이라 뜨는 경우는 이미 설치가 된 경우

 * 아직 Eclipse LUNA는 지원하지 않는듯 하다. 이것땜에 또 삽질 아오 


 



2. Maven 플러그인 설치 

 Help -> EclipseMarketPlace... -> Find ->m2e 검색


Maven Integration for Eclipse install




3. spring MVC 프로젝트 만들기


File -> New -> Other -> Spring -> Spirng Project  선택 또는

메뉴바에서  버튼 눌러서 바로 Spring DashBoard에서 Spring Project 생성 가능!


template은 Spring MVC Project선택!


    





4. Encoding 설정

Project 누른 후 왼쪽버튼 메뉴의 Properties 클릭


text encoding -> other UTF-8로 변경


 



 


다음과 같은 구조에서 views에 있는 home.jsp에 

<%@ page language="java" contentType="text/html; charset=UTF-8" %> 추가

*다른 파일 생성시에도 추가

   

5. tomcat 서버 run

 다음과 같은 화면이 보이면 성공!








+ Recent posts