spring 강의 주소
VSC로 세팅
jdk 설치
- 주소 https://www.oracle.com/java/technologies/downloads/#jdk17-windows
- 버전 상관 x
- 설치 후 cmd에
java --version
입력 해서 버전 정보 나오면 성공
spirng 설치
- 웹사이트 주소 https://spring.io/tools
- 바로 설치 주소 https://download.springsource.com/release/STS4/4.13.1.RELEASE/dist/e4.22/spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-win32.win32.x86_64.self-extracting.jar
- 파일이 자바 아이콘으로 표시되면 실행
- 실행 후 workspace 경로 설정
VSC 설치
Emmet 설치
- help에 install new software
- Add... 클릭
- NAME = Emmet, laction = http://download.emmet.io/eclipse/updates/
- Add 클릭 (설치 중 install anyway 클릭)
JSP, JS 지원 설치
- help에 install new software
- Work with =
Latest Eclipse Release - https://download.eclipse.org/releases/latest
- Web, XML, Java EE and OSGi Enterprise Development 안에 아래 5가지 체크, 설치
Eclipse java EE Developer Tools
Eclipse java Web Developer Tools
Eclipse java Web Developer Tools - JavaScript Support
Eclipse Web Developer Tools
Eclipse Web JavaScript Developer Tools
일반 설정
- window - preferences - work - Workspace - text file encoding - other:(uth-8)
- window - preferences - files - json files - encoding - (uth-8)
- window - preferences - files - css files - encoding - (uth-8)
- window - preferences - files - html files - encoding - (uth-8)
- window - preferences - files - jsp files - encoding - (uth-8)
- window - preferences - emmet - expand abbreviations by tap key =
html, xml, xsl, xsd, css, php, tpl, less, styl, scss, sass, jade, haml, hbs, twig, jsp, jspf
- window - preferences - typing - java - typing - in string literals - Escape text when pasting into a string literal 체크 해제
- window - preferences - browser - general - web browser - use external web browser - 원하는 브라우저 선택
- window - preferences - html - html files - editor
- line width : 120
- indent using spaces 체크
- indentaion size : 2
- inline elements:
abbr, acronym, basefont, big, cite, i, q, u
제외하고 전부 삭제
톰캣 설치
서버관련 문제 생겼을때
- window - preferneces - server - runtime environments - 해당 tomcat 삭제
롬복 설치
- file - new - starter spring project
- packaging : war
- java version : 17
- language : java
- name, group, artifact, package 입력
- availlable = lombok
- finish
- 다운로드 후
\.m2\repository\org\projectlombok\lombok\1.18.22
파일 실행
- location 입력 (spring.exe 파일)
Package Explorer 없어졌을때
- window - show view - package explorer
프로젝트 생성시
- Acailavle
- Lombok
- Spring Web
- Spring Boot DevTools
선택