본문 바로가기

분류 전체보기61

Spring(2) - 프로젝트 생성해서 Run해보기 - Spring 프로젝트 생성 전 준비물 1. 자바 JDK 11 설치 https://kongsabary.tistory.com/45?category=892801 2. Eclipse 설치 https://kongsabary.tistory.com/46?category=897469 3. 스프링 툴4 설치 https://kongsabary.tistory.com/55 4. 톰캣8 설치 https://kongsabary.tistory.com/51?category=892802 * 설치중 Trust가 뜬다면? https://kongsabary.tistory.com/54?category=898481 1. File -> Spring Legacy Project 클릭합니다. 2. Spring MVC Project 선택합니다. 3.. 2022. 1. 11.
오류(5) Server Error - The selection cannot be run on any server. [문제 발생] The selection cannot be run on any server. 해당 오류가 떴다. 맨날 내가 만지면 에러가 뜨는건 기분탓인가 [해결 과정] 해당 프로젝트 오른쪽 마우스 -> Properties - Server -> 해당 톰캣 클릭 -> Apply - 참고 사이트 https://kimsaemjava.tistory.com/166 2022. 1. 11.
톰캣8(Tomcat 8) 설치하기 1. https://tomcat.apache.org에 접속합니다. 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. Download -> Tomcat 8 클릭합니다. 32-bit/64-bit Windows Service I.. 2022. 1. 11.
오류(4) This application has no explicit mapping for /error, so you are seeing this as a fallback. [문제 발생] 1. 패키지 경로를 설정하지않아 오류가 발생 [해결 과정] TestApplication.java에 @ComponentScan(basePackages = "com.example.main") 추가 * basePackages = "해당 패키지 경로"로 작성 package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot... 2022. 1. 4.
오류(3) spring boot pom.xml 첫 줄 에러 [문제 발생] 1. spring boot pom.xml 첫 줄 에러가 떴다. [해결 과정] - 해당 프로젝트 오른쪽 마우스 -> Maven -> Update Project를 누릅니다. - Force Update of Snapshots/Releases - Update project configuration from pom.xml - Refresh workspace resources from local filesystem - Clean projects 선택 후 OK 누르면 된다 -> 해결 완료 2022. 1. 4.
STS 설치하기 1. 이클립스를 실행하고 Help -> Eclipse Marketplace 실행합니다. 2. 검색창에 sts 입력하고 Spring Tools 4 설치합니다. - Confirm 클릭합니다. - 동의 선택하고 Finish - Restart Now 클릭 2022. 1. 3.
Eclipse 설치하기 1. https://www.eclipse.org/downloads/접속합니다. 2. Download 클릭합니다. - Eclipse IDE for Enterperise Java and Web Developers - Accept Now - LAUNCH 설치 - Workspace 경로 설정 2022. 1. 3.
JDK 11 설치하기 1. www.oracle.com/kr/java/technologies/javase-jdk11-downloads.html 접속하기 2. JDK 11 다운받기 3. JDK 11 설치하기 - Next -> Next -> Close 4. 환경 변수 설정하기 - JDK 다운 경로 복사 대부분 C:\Program Files\Java\jdk-11.0.13\bin 경로로 설정될 확률이 높다. - 내 PC -> 속성 - 고급 시스템 설정 - 시스템 속성 -> 환경 변수 - 환경 변수 -> 새로 만들기 - 새 사용자 변수 변수 이름 : JAVA_HOME 변수 값 : C:\Program Files\Java\jdk-11.0.13\bin -> 확인 - 환경 변수 -> Path 클릭 -> 편집 - 환경 변수 편집 -> 새로 만들.. 2022. 1. 3.
Eclipse(2) - Tap 간격 조절 Window - Preferences General - Editors - Text Editors 에서 Displayed tab width - 2 입력 .java 파일 Java - Code Style - Formatter 에서 New 버튼 - Profile name에 알아서 입력 후 OK 후 Tab policy - Spaces only 선택, Indentation size - 2, Tab size - 2 입력 후 OK .css 파일 Web - CSS Files - Editor 에서 Indent using spaces 선택 후 Indentation size - 2 .htm, .html 파일 Web - HTML Files - Editor 에서 Indent using spaces 선택 후 Indentation .. 2021. 11. 26.