본문 바로가기

SpringBoot

(37)
SpringBoot(5) - Web Page 예제2 추가 수정, 추가 정리 사항 1) SpringBoot   1-1) Web Page 예제2 추가 수정   1-2) 추가 정리 사항     1) SpringBoot1-1) Web Page 예제2 추가 수정   (1) [src/main/resources] 안에 application.properties 파일 생성 후 아래와 같이 작성    (2) [src/main/java] - [net.datasa.web2] 안에 HomeController.java 파일 생성 후 아래와 같이 작성 package net.datasa.web2.controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework..
SpringBoot(4) - Web Page 예제2, 추가 정리 사항 1) SpringBoot   1-1) Web Page 예제2   1-2) 추가 정리 사항     1) SpringBoot1-1) Web Page 예제2   (1) [src/main/resources] 안에 application.properties 파일 생성 후 아래와 같이 작성    (2) [src/main/java] - [net.datasa.web2] 안에 HomeController.java 파일 생성 후 아래와 같이 작성 package net.datasa.web2;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;@Controllerpublic class Hom..
SpringBoot(3) - 간단한 Web Page 예제, 추가 정리 사항 1) SpringBoot   1-1) 간단한 Web Page 예제   1-2) 추가 정리 사항     1) SpringBoot 1-1) 간단한 Web Page 예제    (1) [src/main/java] - [net.datasa.web1] 안에 WebController.java 파일 생성 후 아래와 같이 작성 package net.datasa.web1;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;@Controllerpublic class WebController { @GetMapping({"", "/"}) public String webMethod() { ..
SpringBoot(2) - 새 프로젝트 생성(복습), 실습, 추가 정리 1) SpringBoot   1-1) 새 프로젝트 생성(복습)   1-2) 프로젝트 생성 실습   1-3) 추가 정리사항     1) SpringBoot1-1) 새 프로젝트 생성(복습)(1) setting.gradle 확인   (2) build.gradle : spring 버전 및 dependencies(https://mvnrepository.com/ - 필요 시 여기서 가져오면 됨) 부분 체크   (3) application.properties 세팅   (4) [src/main/resources] - [templates] 안에 home.html 파일 생성 후 아래와 같이 작성   (5) [src/main/resources] - [templates] 안에 sub.html 파일 생성 후 아래와 같이 작성 ..
SpringBoot(1) - 개발 환경 설치, 새 프로젝트 생성 1) SpringBoot   1-1) 개발 환경 설치   1-2) 새 프로젝트 생성     1) SpringBoot1-1) 개발 환경 설치* 선수지식JavaMySQLHTMLCSSJavaScriptJQuery  * STS 설치 전 환경JDK17MySQL8DBeaver(또는 기타 DB Tool)Chrome  * STS 설치https://spring.io/tools 접속Window용 STS Download다운받은 "spring-tool-suite-4-4.23.1.RELEASE-e4.32.0-win32.win32.x86_64.self-extracting.jar" 파일을 C:\Java 폴더로 이동  * jar 압축 해제 후 실행 다운로드한 Jar 파일 실행압축이 풀리면 sts-4.17.0.RELEASE 폴더 아래..