★ 스프링, Spring
- 프레임 워크 > 초반(어려움) > 후반(쉬움)
- Spring Framework(틀)
- https://spring.io/
Spring | Home
Cloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.
spring.io
■ Spring ver
- Spring 1.0 ~ 6.0
- Spring 3.XX ~ 5.XX > Spring 5.XX 사용
- 자바 플랫폼을 위한 오픈 소스 애플리케이션 프레임워크이다.
- 콘솔 프로그램 or 응용 프로그램 or 웹 응용 프로그램
- 대부분 > 웹 응용 프로그램
- Servlet/JSP > 버전업
- 전자 정부 표준 프레임워크로 채택 > Spring 기반 > 공공기관 프로젝트 or 대기업
■ 스프링 프로젝트
- Spring
- Spring MVC
- Spring AOP
- Spring Data
- Spring Boot
- Spring Security
- ...
■ 스프링 프레임워크 구성 요소(주요 기술)
1. POJO 기반
2. 의존성 주입 지원(DI)
3. 관점 지향 프로그래밍 지원(AOP)
4. Spring MVC
5. 레이아웃 지원(Tiles)
6. 데이터베이스 연동 지원
- JDBC
- Spring JDBC (X)
- ORM(JPA) (O)
- MyBatis (O)
■ 개발 환경
OpenJDK 11(X) -> Oracle JDK 11(O)
1. Eclipse 사용 > 손이 많이 감
2. Eclipse + 확장 프로그램(STS) > 간편
3. STS(+Eclipse) > 간편
- STS 3.X > Spring 개발
- STS 4.X > Spring Boot 개발
★ 실행 셋팅
1. Oracle JDK 11 다운로드
Java Archive Downloads - Java SE 11 | Oracle 대한민국
WARNING: These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downlo
www.oracle.com
- 다운로드 후 압축 풀기
2. 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
- 아래의 항목 다운로드
3. 환경 변수 설정
- 고급 시스템 설정 보기 -> 환경설정 -> JAVA HOME
4. STS.ini > 경로 설정
5. lombok 설정
- lombok 실행
- lombok 경로 설정 및 적용
6. 실행
- 경로 설정 : C:\class\code\spring
7. 초기 셋팅
- 1. Encoding > UTF-8
- Workspace, CSS, HTML, JSP 인코딩
8. 톰캣 다운로드
Apache Tomcat® - Apache Tomcat 9 Software Downloads
Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version
tomcat.apache.org
- server.xml 파일 메모장으로 열기
9. Server 설정
- Add 해서 다운로드한 톰캣 경로 설정 및 시작
'Spring' 카테고리의 다른 글
Spring STEP 6 - MyBatis 활용 게시판 만들기 (0) | 2023.06.16 |
---|---|
Spring STEP 5 - MyBatis 응용 (1) | 2023.06.15 |
Spring STEP 4 - Spring MVC (0) | 2023.06.14 |
Spring STEP 3 - DI & AOP (0) | 2023.06.14 |
Spring STEP 2 - 스프링 구성요소 (2) | 2023.06.13 |