๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

spring43

Spring - ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ ํ„ฐ๋ฏธ๋„๋กœ ์ด๋™ 1. ./gradlew build 2. cd build/libs 3. java -jar hello-spring-0.0.1-SNAPSHOT.jar 4. ์‹คํ–‰ ํ™•์ธ 2023. 7. 3.
Spring - view ํ™˜๊ฒฝ์„ค์ • ์Šคํ”„๋ง ๋ถ€ํŠธ๊ฐ€ ์ œ๊ณตํ•˜๋Š” Welcome Page ๊ธฐ๋Šฅ static/index.html ์„ ์˜ฌ๋ ค๋‘๋ฉด Welcome page ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค. https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-bootfeatures.html#boot-features-spring-mvc-welcome-page thymeleaf ํ…œํ”Œ๋ฆฟ ์—”์ง„ thymeleaf ๊ณต์‹ ์‚ฌ์ดํŠธ: https://www.thymeleaf.org/ ์Šคํ”„๋ง ๊ณต์‹ ํŠœํ† ๋ฆฌ์–ผ: https://spring.io/guides/gs/serving-web-content/ ์Šคํ”„๋ง๋ถ€ํŠธ ๋ฉ”๋‰ด์–ผ: https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/.. 2023. 7. 3.
Spring - ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ start springboot ๋ฅผ ์ด์šฉํ•˜์—ฌ ์ดˆ๊ธฐ ์Šคํ”„๋ง ํ”„๋กœ์ ํŠธ ์ƒ์„ฑํ•œ๋‹ค. https://start.spring.io/ ์ดˆ๊ธฐ build.gradle์˜ ์ƒํƒœ๋Š” ์ด๋Ÿฌํ•˜๋‹ค. plugins { id 'java' id 'war' id 'org.springframework.boot' version '3.0.5' id 'io.spring.dependency-management' version '1.1.0' } group = 'hello' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-star.. 2023. 7. 3.