Spring Tools 4 is the next generation of Spring tooling
Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE.
spring.io
맞춰서 다운
그담에 알집지우고 압축풀기
아니면 알집안에 content.zip*/
spring-tool-suite-3.9.11.RELEASE-e4.14.0-win32-x86_64 이거깜
dev에넣기
dev에 stsdata폴더만들고 워크스페이스 지정
help > eclipse marketplace > find:sts > Spring add-on 뭐시기뭐시기
install > confirm > confirm > accept > finish 다운로드 끝나면 끝 > restart
또 marketplace > find : web developer > eclipse enterprise> confirm accept > ~~~
그담에 다시 marketplace > find : web developer > 하면 두번째거 깔려있음 > 다시 enterprise~~~> 설치하기
new > spring > spring legacy project > Spring MVC project
> preferecnes > encoding 검색 > 전부 utf-8
> preferences > general > editors > text editors > spelling > encoding : utf- 8
java 검색 > installed jres > 자바 버전 확인
program files > java > openjdk(만들고) > openjdk-11.0.1_windows-x64_bin 압축풀고 붙여넣기]
그담에 내pc 속성 고급 환경변수 > JAVA_HOME 변수값 경로를 jdk 11 폴더로 설정 후
javac -version
java -version
으로 버전확인
이후 스프링 > preferences > java > installed jres > add > standardvm next > add > jre home > C:\Program Files\Java\openjdk\jdk-11.0.1
체크하고 어플라이
그다음에 java > compiler > jdk compliance > compiler compliance level : 11 맞추고
server > runtime environment > add > apache > tomcat 9.0 > next > directory > D:\dev\apache-tomcat-9.0.58 > jre : jdk-11.0.1
>>톰캣서버는 하든말든 상관없다 스프링 기본서버로도 됨
다된다음에 severs > pivotal tc server developer edition > catalina.properties > nio.http.port=9090으로.
서버구동해보고, 안되면 톰캣으로
레거시 만들고 spring00 넥스트 도메인은 com.it.di
>>이후설정
0. pom.xml 더블클릭, 자바버전 <java-version>1.11.0.2</java-version>로 변경, 스프링프레임워크버전 <org.springframework-version>5.0.7.RELEASE</org.springframework-version>로 변경
<source>1.8</source>
<target>1.8</target>로 변경
후 저장하면 자동으로 빌드가 됨, 우측하단.
1. 레거시 프로젝트 우클릭 > properties > project facets > java 버전 맞추기 지금은 11
1.1. 맞추고 빌드패스 들어가면, jre 바뀌어있고, mavern~~ 안에 전부다 5.0.7로 바뀌어있음
2. src > main > webapp > web-inf > views > home.jsp 위에 <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false"%>(지시어) 붙여넣기
3. 실행
'프로그래밍 공부 > 스프링 설치' 카테고리의 다른 글
프로젝트 옮길 때 같이 옮길 설정 관련 (0) | 2022.06.24 |
---|---|
apache maven (0) | 2022.06.24 |
Mybatis 설치후 스프링연동 (0) | 2022.06.24 |
스프링에 OJDBC, 커넥션풀 설정 (0) | 2022.06.24 |
lombok 설치 (0) | 2022.06.24 |