728x90

๐Ÿ“š Computer Science/Server 3

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: ํšŒ์› ๊ด€๋ฆฌ ์˜ˆ์ œ - ๋ฐฑ์—”๋“œ ๊ฐœ๋ฐœ

1. ํšŒ์› domain ๊ณผ repository ๋งŒ๋“ค๊ธฐ  src/main/java/com.yoonsung.firstproject/domain/Member.javapackage com.yoonsung.firstproject.domain;public class Member { private Long id; private String name; public Long getId(){ return id; } public void setId(Long id){ this.id = id; } public String getName(){ return name; } public void setName(String name){ t..

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: Spring ์›น ๊ฐœ๋ฐœ ๊ธฐ์ดˆ

Spring Boot ๋กœ ์›น์„ ๊ฐœ๋ฐœํ•˜๋Š” ๋ฐฉ๋ฒ• 3๊ฐ€์ง€. 1. Static Content ์ •์  ์ปจํ…์ธ ํŒŒ์ผ์„ ๊ทธ๋Œ€๋กœ ์›น๋ธŒ๋ผ์šฐ์ €์— ๋‚ด๋ฆฌ๋Š” ๊ฒƒ.Spring Boot ๋Š” ์ •์  ์ปจํ…์ธ ๋ฅผ ์ž๋™์œผ๋กœ ์ฐพ์•„์„œ ๋‚ด๋ ค์ฃผ๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค.์ฆ‰, static ์ด๋ผ๋Š” ์˜ˆ์•ฝ์–ด๋กœ ํด๋”๋ฅผ ๋งŒ๋“ค์–ด์„œ ์•ˆ์— .html ํŒŒ์ผ์„ ๋„ฃ์œผ๋ฉด ์ด๋ฅผ ์Šคํ”„๋ง ๋ถ€ํŠธ๊ฐ€ ์ฐพ์•„์„œ ๊ทธ๋Œ€๋กœ ์ปจํ…์ธ ๋ฅผ ๋‚ด๋ ค์ค€๋‹ค. ์ •์  ์ปจํ…์ธ ์— ๋”ฐ๋กœ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์€ ํ•  ์ˆ˜ ์—†๋‹ค. controller ๊ฐ€ ๋” ์šฐ์„ ์ˆœ์œ„๋ฅผ ๊ฐ–๋Š”๋‹ค. Servlet Web Applications :: Spring BootIf you want to build servlet-based web applications, you can take advantage of Spring Boot’s auto-configuration ..

728x90