보라코딩

Day91_230508_Spring 시작 (STS 3.9.13 설치, Legacy project 시작) 본문

코딩/Spring

Day91_230508_Spring 시작 (STS 3.9.13 설치, Legacy project 시작)

new 보라 2023. 5. 8. 10:45

https://github.com/spring-attic/toolsuite-distribution/wiki/Spring-Tool-Suite-3

 

Spring Tool Suite 3

the distribution build for the Spring Tool Suite and the Groovy/Grails Tool Suite - spring-attic/toolsuite-distribution

github.com

 

 

스프링 홈페이지에 들어가서

STS 3.9.13 설치

 

 

 

 

 

 

 

 

 

 

 

압축풀기

7zip이용하면 빠르고 문제 안됨

기본 압축풀기 느리고 파일명 길면 오류남

 

 

 

 

 

 

 

 

 

 

 

톰캣 먼저 설정(기존에 다운받아놓음)

 

 

 

 

 

 

 

 

 

 

 

 

UTF-8 환경설정

 

 

 

 

CSS

HTML

JSP도

UTF-8로 설정

 

 

 


Spring Legacy Project 선택

 

 

 

 

 

Spring MVC Project 선택

 

 

 

 

 

패키지 경로 작성 필요 (3단계로)

 

 

 

 

 

 


<!-- 

bean 태그 속성
 *id 속성 : 요청(호출)시 사용할 명칭(유일한 명칭)
 *class 속성 : 필수속성, 대상클래스(패키지.클래스명)
 *lazy-init : 생성시기 설정
 (기본은 컨테이너 구동시 객체 생성,lazy-init="true" 설정하면 최초요청시 객체 생성
 *scope : 객체 생성 형태 정의 (default 싱글톤 : 하나의 객체만 생성 사용)
  prototype : 요청할때마다 새로운 객체 생성
  단, prototype scope인 경우 destroy-method 적용 안됨
 *init-method : 객체 생성 후 초기화 작업 처리를 위한 메소드
 *destroy-method : 객체 소멸시 처리할 작업을 설정하기 위한 메소드
 -->