새소식

Java/Spring

spring - 기초 세팅

  • -

spring 강의 주소

VSC로 세팅

jdk 설치

  1. 주소 https://www.oracle.com/java/technologies/downloads/#jdk17-windows
  2. 버전 상관 x
  3. 설치 후 cmd에 java --version 입력 해서 버전 정보 나오면 성공

spirng 설치

  1. 웹사이트 주소 https://spring.io/tools
  2. 바로 설치 주소 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
  3. 파일이 자바 아이콘으로 표시되면 실행
    • 안 된다면 해당 폴더 cmd 실행
      • java -jar s 입력 후 탭
  4. 실행 후 workspace 경로 설정

VSC 설치

Emmet 설치

  1. help에 install new software
  2. Add... 클릭
  3. NAME = Emmet, laction = http://download.emmet.io/eclipse/updates/
  4. Add 클릭 (설치 중 install anyway 클릭)

JSP, JS 지원 설치

  1. help에 install new software
  2. Work with = Latest Eclipse Release - https://download.eclipse.org/releases/latest
  3. 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

일반 설정

  1. window - preferences - work - Workspace - text file encoding - other:(uth-8)
  2. window - preferences - files - json files - encoding - (uth-8)
  3. window - preferences - files - css files - encoding - (uth-8)
  4. window - preferences - files - html files - encoding - (uth-8)
  5. window - preferences - files - jsp files - encoding - (uth-8)
  6. 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
  7. window - preferences - typing - java - typing - in string literals - Escape text when pasting into a string literal 체크 해제
  8. window - preferences - browser - general - web browser - use external web browser - 원하는 브라우저 선택
  9. 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 제외하고 전부 삭제

톰캣 설치

  • 주소 https://tomcat.apache.org/download-90.cgi
    • 작업 폴더에 설치, 압축 해제
  • file - new - other - dynamic web project - target runtime - new runtime - tomcat v9 - next - browse - 압축 해제한 폴더 선택 - finish

서버관련 문제 생겼을때

  • window - preferneces - server - runtime environments - 해당 tomcat 삭제

롬복 설치

  • file - new - starter spring project
    1. packaging : war
    2. java version : 17
    3. language : java
    4. name, group, artifact, package 입력
    5. availlable = lombok
    6. finish
  • 다운로드 후 \.m2\repository\org\projectlombok\lombok\1.18.22 파일 실행
    • location 입력 (spring.exe 파일)

Package Explorer 없어졌을때

  • window - show view - package explorer

프로젝트 생성시

  • Acailavle
    1. Lombok
    2. Spring Web
    3. Spring Boot DevTools
      선택
반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.