[ 개발 환경 설정 ]
STS3 : 스프링
STS4 : 스프링부트
oracle
ㄴ> 유로, 대용량 데이터베이스에 적합한 성능과 기능을 제공하는 db
ㄴ> 스키마를 생성(하나의 db 안에 여러 스키마 --> 스키마 관리 계정 생성)
mysql
ㄴ> 오픈 소스 db
ㄴ> Apache 프로그램, php등과 같은 언어와 상호 연동이 잘 되어있음
ㄴ> db 생성(각각의 여러 db 생성)
mariadb
ㄴ> mysql과 마찬가지로 오픈소스 db
ㄴ> mysql과 구조 및 사용방법 등이 모두 동일하며 완벽 호환 가능
ㄴ> mysql 기능 + 더 좋은 성능
1. 1. STS3 다운로드
- projects > spring tool 4 > 맨밑에 spring tool 3 버전 > 4.21 winㅡ32- x86-64.zip 다운
Spring | Home
Cloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.
spring.io
2) 설치한 다음 바로 압축 풀지말고 c드라이브로 옮긴 후 압축 풀기
3) 실행
c드라이브 > spring 폴더 생성 > browse(C:\spring)
4) 설정 - 이클립스와 동일
server runtime - JRE JDK11로 연결
좌측 하단 servers - 톰캣 연결
utf-8 설정
* spring tool 3 사이트 바로가기
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
2. 2. JDK 11 버전 다운
- projects > hardware and software 에 있는 java > 우측 상단 download java > 중간부분 java 11 > window 탭 x64 Installer
Oracle | Cloud Applications and Cloud Platform
Global organizations including Thomson Reuters, Cisco, SoundHound, GoTo, 8x8, Wiz, and Nomura Research Institute use Oracle Container Engine for Kubernetes (OKE) to run their apps at scale.
www.oracle.com
2) 설치파일 실행
next > next > close
3) 설치확인
c드라이브 > program files > java > jdk -11 있으면 ok
4) 원래 깔려잇던 1.8버전은 back 폴더 생성해 안에 넣어두기
3. 3. 이클립스
- 우측 상단 download > 2023-03 download packages > 파란상자에 있는 windows 클릭 > exe 파일 설치
The Community for Open Innovation and Collaboration | The Eclipse Foundation
The Eclipse Foundation provides our global community of individuals and organizations with a mature, scalable, and business-friendly environment for open source …
www.eclipse.org
2) 설치파일 실행

두번째 EE > installing > select all 클릭 하단에 trust selected > launch > browse(C:\jsp)
4. 4. 아파치 톰캣
- 톰캣 설치되어있던 건 제거하기(제어판)
- 좌측 Tomcat 9 > 32-bit/64-bit Windows Service Installer 설치
Apache Tomcat® - Welcome!
The Apache Tomcat® software is an open source implementation of the Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations and Jakarta Authentication specifications. These specifications are part of the
tomcat.apache.org
2) 실행
next > agree > next > -1 대신 8005, next > 경로 지정(C:\Program Files\Java\jdk-11), next > install > finish
> 작업표시줄 우측에 tomcat 아이콘 stop service
5. 5. 이클립스 - 아파치 연동
[이클립스에서]
1) window > preferences > server - runtime > add > apache - tomcat 9, next
> browse(C:\Program Files\Apache Software Foundation\Tomcat 9.0) , finish > apply and close
2) 하단에 servers > 링크 클릭 > browse 설정 > 연결
3) window > preferences > web - css files, html files, jsp files utf-8로 설정
4) window > web browser > chrome
[STS3 실행]
1. 프로젝트 생성
1) file - new - spring legacy project
> 프로젝트명 입력, templates에서 spring MVC project 클릭 후 next
> org.zerock.controller 입력후 finish
2) 프로젝트 설정
프로젝트 명 우클릭 > properties
> java compiler - use 체크 해제 - 11 apply and close
> project facets - java 11 apply and close
3) 오류 잡기(용량 부족)
window > preferences > run/debug - console > size 80000 대신 1000000 apply and close
6. 6. lombok 설치
Project Lombok
projectlombok.org
'JAVA > spring' 카테고리의 다른 글
스프링 Board 구현_넘버링, 검색 (0) | 2023.05.03 |
---|---|
스프링 Board 구현_예외처리, 페이징 (1) | 2023.05.02 |
스프링 Board 구현 (0) | 2023.04.28 |
스프링 페이지 이동(변수 전달) (0) | 2023.04.28 |
스프링 프로젝트 생성 (0) | 2023.04.27 |