728x90

๐Ÿ–ฅ๏ธ Web Development Study 7

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: ์Šคํ”ผ๋ง ๋นˆ๊ณผ ์˜์กด๊ด€๊ณ„

* ์˜์กด๊ด€๊ณ„ ?MemberService ๊ฐ€ MemberController ๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ค๊ณ  ๋ณด์—ฌ์ฃผ๊ณ  ํ•ด์•ผ ํ•œ๋‹ค. ์ด๋ฅผ MemberService ๊ฐ€ MemberController ๋ฅผ ์˜์กดํ•œ๋‹ค๊ณ  ํ‘œํ˜„ํ•œ๋‹ค.  [์Šคํ”„๋ง ๋นˆ์„ ๋“ฑ๋กํ•˜๊ณ  ์˜์กด๊ด€๊ณ„ ์„ค์ •ํ•˜๊ธฐ]ํšŒ์› ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ํšŒ์› ์„œ๋น„์Šค์™€ ํšŒ์› ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ์˜์กด๊ด€๊ณ„๋ฅผ ์ค€๋น„ํ•˜์ž.@Controllerpublic class MemberController{ private final MemberService memberService; @Autowired public MemberController(MemberService memberService){ this.memberService = memberService; }}@Ser..

[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 ..

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: Build, ์‹คํ–‰

IntelliJ ๊ฐ€ ์•„๋‹Œ ์„œ๋ฒ„์— ์˜ฌ๋ฆด ์ˆ˜ ์žˆ๋Š” jar ํŒŒ์ผ๋กœ ๋นŒ๋“œ๋ฅผ ํ•ด๋ณด์ž. 1. cmd ์—์„œ project ํด๋”๋กœ ์ด๋™ํ•˜๊ธฐ 2. gradle build ํ•˜๊ธฐ./gradlew build 3. ์ƒ์„ฑ๋œ java ํŒŒ์ผ์ด ์žˆ๋Š” ๊ณณ์œผ๋กœ ์ด๋™ํ•ด์„œ jar ํŒŒ์ผ ์‹คํ–‰ํ•˜๊ธฐ cd build/libsjava -jar firstproject-0.0.1-SNAPSHOT.jar ๋—๋—๋—. ์„œ๋ฒ„์— ์š” jar ํŒŒ์ผ ๋„ฃ๊ณ  ์‹คํ–‰ํ•ด์ฃผ๋ฉด ๋˜‘๊ฐ™์ด ๋™์ž‘ํ•œ๋‹ค๊ณ ..!

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: View ํ™˜๊ฒฝ ์„ค์ •

1. Welcome page ๋งŒ๋“ค๊ธฐstatic ์ด๋ผ๋Š” ์ •์ ํด๋” ๋ฐ‘์— index.html ์ด๋ผ๋Š” ์ด๋ฆ„์˜ ํŒŒ์ผ์„ ๋งŒ๋“ค์–ด์ฃผ๋ฉด ์ž๋™์œผ๋กœ welcome page ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค. https://docs.spring.io/spring-boot/reference/web/servlet.html Servlet Web Applications :: Spring BootFor servlet application, Spring Boot includes support for embedded Tomcat, Jetty, and Undertow servers. Most developers use the appropriate “Starter” to obtain a fully configured instance. By default, t..

[Back-End] ์Šคํ”„๋ง ์ž…๋ฌธ :: ํ™˜๊ฒฝ ์…‹ํŒ…(Java, IntelliJ, Spring Boot Starter)

#1๊ฐ•_ํ™˜๊ฒฝ์„ค์ • 1) Java Installhttps://www.oracle.com/java/technologies/downloads/#jdk22-windows 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 2) IntelliJ Installhttps://www.jetbrains.com/help/idea/installation-guide.html#toolbox Install IntelliJ IDEA | IntelliJ IDEA www.jetbrains.com=> ..

[Udemy Web Development Bootcamp] HTML ํƒœ๊ทธ ๋ชจ์Œ & ์‚ฌ์ดํŠธ

Heading Tag: : ์ œ๋ชฉ ํ•˜์ด๋ผ์ดํŠธ๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ํƒœ๊ทธ.ํ—ค๋”ฉ ํƒœ๊ทธ๋Š” h1, h2, ..., h6 ๊นŒ์ง€ ์žˆ์Œ. h1 ๋‚จ๋งํ•˜์ง€ ์•Š๊ธฐh1, h3 ์ด๋ ‡๊ฒŒ ์ค‘๊ฐ„์— ํ•˜๋‚˜ ๊ฑด๋„ˆ๋›ฐ์ง€ ๋ง๊ธฐ Paragraph Tag: : ๋‹จ๋ฝ์„ ํ‘œ์‹œํ•˜๋Š” ํƒœ๊ทธ.Self Closing Tag Horizontal Rule Tag: : ์ˆ˜ํ‰์„  ๊ทธ์–ด์„œ ๊ตฌ๋ถ„ํ•ด์ฃผ๋Š” ํƒœ๊ทธ Break Element: : ์ƒˆ ๋ผ์ธ ํƒœ๊ทธ. paragraph ํƒœ๊ทธ ์•ˆ์—์„œ๋„ ๋ฐ–์—์„œ๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.: The Anchor element - HTML: HyperText Markup Language | MDN" data-og-description="The HTML element (or anchor element), with its href attribute, creates ..

728x90