StudyRepository
728x90
article thumbnail
2. View 환경설정(Spring 2)
Spring 2023. 3. 30. 13:11

Welcome Page 만들기 src -> main -> resources -> templates 에서 hello.html 파일을 만듭니다. Hello hello 위 코드를 넣은 뒤 저장하고 실행시켜준 뒤 localhost:8080에 접속하면 다음과 같이 잘 실행되는 것을 확인할 수 있습니다.     Welcome 페이지 예제(2)  다음과 같이 controller패키지에 HelloController 클래스를 만들어 준 뒤, package exercise.ms.controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annota..

article thumbnail
1. 개발환경 구축(Spring 1)
Spring 2023. 3. 29. 22:51

JAVA 설치 https://www.oracle.com/kr/java/technologies/downloads/ Download the Latest Java LTS FreeSubscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.www.oracle.com 가장 먼저 해야할 일은 위 링크의 오라클 홈페이지에 들어가 Java 11을 설치하는 것입니다. 전 맥북을 사용하고있어서 macOs의 Arm 64 를 설치했습니다.    Spring 설치https://start.spring.io/    똑같이 설정 후 GENERATE 버튼을 눌러줍니다. 오른쪽의 Depende..

728x90