MapleStory Finger Point

์ตœ์‹  ๊ธ€ Public

more

[์—๋Ÿฌ] The default superclass, "jakarta.servlet.http.HttpServlet", ~

Description Resource Path Location TypeTheย defaultย superclass,ย "jakarta.servlet.http.HttpServlet",ย accordingย toย theย project'sย Dynamicย Webย Moduleย facetย versionย (5.0),ย wasย notย foundย onย theย Javaย Buildย Path. NewFile.jsp /JSPTestProject/src/main/webapp lineย 1 JSPย Problemย ย ย ย ย JSP ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ JSP ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜์ž๋งˆ์ž ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.ย +ย ์„œ๋ฒ„๋ฅผ ์‚ญ์ œํ•˜๊ณ  ๋‹ค์‹œ ๋งŒ๋“ค์—ˆ๋”๋‹ˆ ๋˜ ์—๋Ÿฌ๊ฐ€ ๋–ด๋‹ค.์ฒซ๋ฒˆ์งธ ๋ฐฉ๋ฒ•ย `Project ์šฐํด๋ฆญ` > `Properties` >ย  `Proejct Facets` >Dy..

[ํŠธ๋Ÿฌ๋ธ”์ŠˆํŒ…] (Eclipse) java EE, Dynamic Web Project ์•ˆ ๋œจ๋Š” ๊ฒฝ์šฐ

JSP ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์„ ์œ„ํ•ด์„œDynamic Web Project ๋ฅผ ์ƒ์„ฑํ•ด์ค˜์•ผํ•˜๋Š”๋ฐ.....ย ย ย ย ย java EE ๊ฐ€ ์•ˆ๋œฌ๋‹ค...ย ย ย ์ด๋Ÿด ๋• ๋ณธ์ธ ์ดํด๋ฆฝ์Šค ๋ฒ„์ „์ดย Eclipse IDE for Enterprise Java and Web Developersย ๋ฒ„์ „์ธ์ง€ ํ™•์ธํ•ด๋ณด์ž.ย ย ย ย ย ์„ค์น˜ํ•  ๋•Œ Enterprise ๋ฒ„์ „์„ ์„ค์น˜ํ•ด์ค˜์•ผ JAVA EE ๋ฅผ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๋‹ค.ย ย ย ย ย ์žฌ์„ค์น˜ํ•˜๋ฉด ์ด๋Ÿฐ์‹์œผ๋กœ Perspective ์— JAVA EE ๊ฐ€ ์ž˜ ๋œจ๊ณ Dynamic Web Project ๋„ ์ƒ์„ฑ ๊ฐ€๋Šฅ !ย ย ย ย ย ๋˜๋Š” `window` > `Marketplace` ์—์„œ ์„ค์น˜ ํ›„ ํ•ด๊ฒฐ๋˜๋Š” ์‚ฌ๋žŒ๋„ ์žˆ๋‹ค๊ณค ํ•˜๋Š”๋ฐ ๋‚œ ์žฌ์„ค์น˜๋กœ ํ•ด๊ฒฐํ–ˆ๋‹ค.ํ˜น์‹œ ์žฌ์„ค์น˜๋กœ๋„ ์•ˆ๋˜๋Š” ์‚ฌ๋žŒ์€ ์ด ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•ด๋ณด์‹œ๊ธธ..

[JSP] ํ”„๋กœ์ ํŠธ ์„ธํŒ… (Eclipse, ์„œ๋ฒ„, ์‹คํ–‰๊นŒ์ง€)

๋ชฉ์ฐจย ย ย JSP ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด์„œ intelliJ ๋ฅผ ์‚ฌ์šฉํ•ด๋ณด๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ๋ฌด๋ฃŒ๋ฒ„์ „์€ jsp ๋ฅผ ์ง€์›ํ•ด์ฃผ์ง€ ์•Š๋Š”๋‹ค.ultimate ๋งŒ ๊ฐ€๋Šฅํ•œ๊ฑธ ๊นจ๋‹ซ๊ณ .. Eclipse ๋กœ ๋‹ค์‹œ ๋Œ์•„์™”๋‹ค.๋ณต์Šต ๊ฒธ ๋‹ค์‹œ Eclipse ์„ธํŒ…๋ถ€ํ„ฐ ๋‹ค์‹œ ์‹œ์ž‘ํ•ด๋ณด์ž.ย ย ย ์•„๋ž˜๋Š” IntelliJ ์—์„œ JSP ํ”„๋กœ์ ํŠธ ์„ธํŒ…ํ•˜๋‹ค๊ฐ€ ๋ง‰ํ˜”๋˜ ๋ถ€๋ถ„๋“ค ์ฐธ๊ณ ํ–ˆ๋˜ ๋งํฌ๋‹ค.ย JSP ํ”„๋กœ์ ํŠธ ์„ธํŒ…https://velog.io/@lukehongg/intellij-jsp-projectย add framework ~ ์•ˆ๋œฐ๋•Œhttps://goldfish2679.tistory.com/59ย add Framework ์— javaEE ์ถ”๊ฐ€ํ•˜๊ธฐhttps://kkminseok.github.io/posts/Intellij_spring/ย ย ย ย eclipse ๋‹ค์šด๋กœ๋“œย ย ..

๐ŸŸค JSP 2025.01.07 0

SPA vs MPA | SSR vs CSR

SPA ์™€ MPA ๋Š” ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๊ตฌ์กฐ์™€ ๋™์ž‘ ๋ฐฉ์‹์— ๊ตฌ๋ถ„๋˜๋Š” ํŒจํ„ด์ด๋‹ค.์–ด๋–ป๊ฒŒ ๋™์ž‘ํ•˜๊ณ  ์–ด๋–ป๊ฒŒ ํŽ˜์ด์ง€๋ฅผ ๋žœ๋”๋งํ•˜๋Š” ์ง€๊ฐ€ ์ค‘์ ์ด๋‹ค.ย ย ย MPA (Multi-Page Application)์ •์˜:MPA๋Š”ย ๋‹ค์ค‘ ํŽ˜์ด์ง€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์˜๋ฏธํ•˜๋ฉฐ, ๊ฐ ํŽ˜์ด์ง€๋งˆ๋‹ค ๊ฐœ๋ณ„์ ์ธ HTML ํŒŒ์ผ์ด ๋กœ๋“œ๋˜๋Š” ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ž…๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ์„œ๋ฒ„์—์„œ ๊ฐ ํŽ˜์ด์ง€๋ฅผ ๋ Œ๋”๋งํ•˜๊ณ , ๊ฐ URL์€ ํ•˜๋‚˜์˜ ๊ณ ์œ ํ•œ ํŽ˜์ด์ง€๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.ํŠน์ง•:ํŽ˜์ด์ง€ ์ „ํ™˜: ์‚ฌ์šฉ์ž๊ฐ€ ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•  ๋•Œ๋งˆ๋‹ค, ์ƒˆ๋กœ์šด HTML ํŽ˜์ด์ง€๋ฅผ ์„œ๋ฒ„์—์„œ ๋กœ๋“œํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.์„œ๋ฒ„ ๋ Œ๋”๋ง: ์š”์ฒญ์ด ์žˆ์„ ๋•Œ๋งˆ๋‹ค ์„œ๋ฒ„์—์„œ HTML์„ ๋ Œ๋”๋งํ•˜๊ณ , ์ด๋ฅผ ํด๋ผ์ด์–ธํŠธ์— ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.๋™์  ํŽ˜์ด์ง€: ํด๋ผ์ด์–ธํŠธ๊ฐ€ ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์š”์ฒญํ•˜๋ฉด ์„œ๋ฒ„๊ฐ€ ์ด๋ฅผ ์ฒ˜๋ฆฌํ•˜์—ฌ ์ƒˆ๋กœ์šด ํŽ˜์ด์ง€๋ฅผ ๋ Œ๋”๋งํ•ฉ๋‹ˆ๋‹ค.์žฅ..

MIME type = media type = Content-Type

๋ชฉ์ฐจย ย ย ย Content-Type, MIME type, media type์˜ ๊ด€๊ณ„ ์ด๋“ค์€ ๋ชจ๋‘ ๊ฐ™์€ ๊ฐœ๋…์œผ๋กœ, ์ธํ„ฐ๋„ท์—์„œ ํŒŒ์ผ ํฌ๋งท๊ณผ ์ฝ˜ํ…์ธ ๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๊ณผ๊ฑฐ์—๋Š” MIME type ์œผ๋กœ ๋ถˆ๋ ธ์ง€๋งŒ, ์ง€๊ธˆ์€ media type ์œผ๋กœ ์‚ฌ์šฉํ•จ. ๋•Œ๋•Œ๋กœ content type ์ด๋ผ๊ณ ๋„ ๋ถˆ๋ฆผย ย ย ย  MIME(ย Multipurposeย Internetย Mailย Extensionsย )ย typeํŒŒ์ผ์˜ ํ˜•์‹์„ ๋‚˜ํƒ€๋‚ด๋Š” ๋ฌธ์ž์—ด๋กœ ํŒŒ์ผ๊ณผ ๊ฐ™์ด ์†ก์‹ ๋˜๋Š”๋ฐ content์˜ ํ˜•์‹์„ ๋‚˜ํƒ€๋‚ด๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ์œˆ๋„์šฐ์˜ ํŒŒ์ผ ํ™•์žฅ์ž์™€ ๋™์ผํ•œ ์—ญํ• ์ด๋ฉ”์ผ ๋ฉ”์„ธ์ง€ , ์ฒจ๋ถ€ํŒŒ์ผ ์ข…๋ฅ˜๋ฅผ ๊ณ ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์ •์˜๋˜์—ˆ๊ณ  ์ด๋ฅผ ๊ทผ๊ฑฐ๋กœ MIME ํƒ€์ž…์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋งŒ๋“ค์–ด์ง์ง€๊ธˆ์€ Media Type ์ด๋ผ๋Š” ์šฉ์–ด๋กœ ์‚ฌ์šฉ ๋œ๋‹ค.ย ย  media type ๋ฏธ๋””์–ด ํƒ€์ž…์€ ..

Spring Public

more

[ํ”„๋กœ์ ํŠธ] Mybatis(DTO) -> JPA(Entity) ๋กœ ๋ณ€ํ™˜ ํ•˜๊ธฐ

๋ชฉ์ฐจย ย ย ย ย ์˜ˆ์ „์— ์ง„ํ–‰ํ–ˆ๋˜ ํ”„๋กœ์ ํŠธ(Mybatis DTO)๋ฅผ JPA ๋กœ ๋ณ€ํ™˜ํ•ด๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.ย ์ „์ฒด๋ฅผ ๋ณ€๊ฒฝํ•˜๊ธฐ์—” ์‹œ๊ฐ„์ ์œผ๋กœ ๋„ˆ๋ฌด ์˜ค๋ž˜๊ฑธ๋ฆด ๊ฒƒ ๊ฐ™์•„์„œ๐Ÿ˜ฐ์—ฐ์Šต์ฐจ์›์—์„œ ๊ฐ„๋‹จํ•œ ์กฐํšŒ ๊ตฌ๋ฌธ๋งŒ ๋ณ€ํ™˜ ํ•ด ๋ณผ ๊ฒƒ์ด๋‹ค.ย ย ย ย ย ์ฐธ๊ณ ์šฉ ERD ์™€ ๊ธฐ์กด Mapperย ย ย 1)ย  ๊ธฐ์กด EmployeeDTO ๋ฅผ Entity ๋กœ ๋ณ€๊ฒฝย ์ด๋•Œ DTO ์—์„œ๋Š” authorityName ์„ ์ง์ ‘ ๋ฐ›์•˜์—ˆ๋Š”๋ฐย ย ย JPA ์—์„œ๋Š” Authority ๊ฐ์ฒด๋กœ ๋ฐ›๊ธฐ ๋•Œ๋ฌธ์— ์ด ์ ์„ ์ฐธ๊ณ ํ•ด์„œ ์ „๋ถ€ ์ˆ˜์ •ํ•ด์ค˜์•ผํ•œ๋‹ค.ย ย 2) Employee Repository ์ƒ์„ฑย JpaRepository ๋ฅผ ์ƒ์† ๋ฐ›์œผ๋ฉด , ๊ธฐ๋ณธ CRUD ๋ฉ”์„œ๋“œ๊ฐ€ ์ž๋™์œผ๋กœ ์ œ๊ณต๋ผ์„œย ๊ธฐ๋ณธ์ ์ธ crud ๋Š” ์ปค์Šคํ…€ ๋ฉ”์„œ๋“œ๋ฅผ ์ž‘์„ฑํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค.ย ex) findAll() , findByAll() ..

๐ŸŸค Spring 2024.12.30 0

[Spring Security] ๋น„๋ฐ€๋ฒˆํ˜ธ ์•”ํ˜ธํ™” ๊ตฌํ˜„

( ์ œ๊ฐ€ ์ž‘์—…ํ–ˆ๋˜ย ย ํ”„๋กœ์ ํŠธ ์ฝ”๋“œ ๊ธฐ๋ฐ˜์œผ๋กœ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.)ย ย ย ์Šคํ”„๋ง ์‹œํ๋ฆฌํ‹ฐ ๋น„๋ฐ€๋ฒˆํ˜ธ ์•”ํ˜ธํ™”์— ๊ด€ํ•œ ์ด๋ก ์€ ์ด์ชฝ ๊ฒŒ์‹œ๋ฌผ ์ฐธ๊ณ  !ย https://hyejux.tistory.com/801ย [Spring Security] BCrypt ํ•ด์‹œ ํ•จ์ˆ˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜Spring Security ์—์„œ๋Š” BCryptPasswordEncoder ๋ผ๋Š” ํด๋ž˜์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š”๋ฐ์ด ํด๋ž˜์Šค๋Š” ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์•”ํ˜ธํ™”ํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹ค.ย ์ด๋•Œ ์•”ํ˜ธํ™” ๋ฐฉ์‹์„ BCrypt ํ•ด์‹œ ํ•จ์ˆ˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉํ•˜๋Š”๋ฐBCrypt ํ•ด์‹œ ํ•จ์ˆ˜ ์•Œ๊ณ hyejux.tistory.comย https://hyejux.tistory.com/802ย [Spring Security] BCryptPasswordEncoder ํด๋ž˜์Šค[ ์Šคํ”„๋ง ์‹œํ๋ฆฌํ‹ฐ ๋น„๋ฐ€๋ฒˆํ˜ธ ์•”ํ˜ธํ™” ]ย BCryptPass..

๐ŸŸค Spring 2024.12.04 0

[Spring Security] ๊ถŒํ•œ ์ฒ˜๋ฆฌ

๋ชฉ์ฐจย ย ย ( ์ œ๊ฐ€ ์ž‘์—…ํ–ˆ๋˜ย ย ํ”„๋กœ์ ํŠธย ์ฝ”๋“œ ๊ธฐ๋ฐ˜์œผ๋กœ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.)ย 1. ๊ถŒํ•œ ์ž‘์—… (EmployeeDetails.java)ย  // ๊ถŒํ•œ ๊ด€๋ จ ์ž‘์—…์„ ์œ„ํ•œ ๋ฉ”์„œ๋“œ @Override public Collection getAuthorities() { Collection authorities = new ArrayList(); try { // Employee์˜ authorityGrade๋ฅผ UserRole Enum์œผ๋กœ ๋ณ€ํ™˜ UserRole role = UserRole.valueOf(employee.getAuthorityGrade()); // ๊ถŒํ•œ์— ROLE_ ์ ‘๋‘์‚ฌ ๋ถ™์—ฌ ์ถ”๊ฐ€ authorities.add(new SimpleGrantedAuthority("R..

๐ŸŸค Spring 2024.12.04 0

์šฉ์–ด ์ •๋ฆฌ Public

more

SPA vs MPA | SSR vs CSR

SPA ์™€ MPA ๋Š” ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๊ตฌ์กฐ์™€ ๋™์ž‘ ๋ฐฉ์‹์— ๊ตฌ๋ถ„๋˜๋Š” ํŒจํ„ด์ด๋‹ค.์–ด๋–ป๊ฒŒ ๋™์ž‘ํ•˜๊ณ  ์–ด๋–ป๊ฒŒ ํŽ˜์ด์ง€๋ฅผ ๋žœ๋”๋งํ•˜๋Š” ์ง€๊ฐ€ ์ค‘์ ์ด๋‹ค.ย ย ย MPA (Multi-Page Application)์ •์˜:MPA๋Š”ย ๋‹ค์ค‘ ํŽ˜์ด์ง€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์˜๋ฏธํ•˜๋ฉฐ, ๊ฐ ํŽ˜์ด์ง€๋งˆ๋‹ค ๊ฐœ๋ณ„์ ์ธ HTML ํŒŒ์ผ์ด ๋กœ๋“œ๋˜๋Š” ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ž…๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ์„œ๋ฒ„์—์„œ ๊ฐ ํŽ˜์ด์ง€๋ฅผ ๋ Œ๋”๋งํ•˜๊ณ , ๊ฐ URL์€ ํ•˜๋‚˜์˜ ๊ณ ์œ ํ•œ ํŽ˜์ด์ง€๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.ํŠน์ง•:ํŽ˜์ด์ง€ ์ „ํ™˜: ์‚ฌ์šฉ์ž๊ฐ€ ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•  ๋•Œ๋งˆ๋‹ค, ์ƒˆ๋กœ์šด HTML ํŽ˜์ด์ง€๋ฅผ ์„œ๋ฒ„์—์„œ ๋กœ๋“œํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.์„œ๋ฒ„ ๋ Œ๋”๋ง: ์š”์ฒญ์ด ์žˆ์„ ๋•Œ๋งˆ๋‹ค ์„œ๋ฒ„์—์„œ HTML์„ ๋ Œ๋”๋งํ•˜๊ณ , ์ด๋ฅผ ํด๋ผ์ด์–ธํŠธ์— ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.๋™์  ํŽ˜์ด์ง€: ํด๋ผ์ด์–ธํŠธ๊ฐ€ ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์š”์ฒญํ•˜๋ฉด ์„œ๋ฒ„๊ฐ€ ์ด๋ฅผ ์ฒ˜๋ฆฌํ•˜์—ฌ ์ƒˆ๋กœ์šด ํŽ˜์ด์ง€๋ฅผ ๋ Œ๋”๋งํ•ฉ๋‹ˆ๋‹ค.์žฅ..

MIME type = media type = Content-Type

๋ชฉ์ฐจย ย ย ย Content-Type, MIME type, media type์˜ ๊ด€๊ณ„ ์ด๋“ค์€ ๋ชจ๋‘ ๊ฐ™์€ ๊ฐœ๋…์œผ๋กœ, ์ธํ„ฐ๋„ท์—์„œ ํŒŒ์ผ ํฌ๋งท๊ณผ ์ฝ˜ํ…์ธ ๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๊ณผ๊ฑฐ์—๋Š” MIME type ์œผ๋กœ ๋ถˆ๋ ธ์ง€๋งŒ, ์ง€๊ธˆ์€ media type ์œผ๋กœ ์‚ฌ์šฉํ•จ. ๋•Œ๋•Œ๋กœ content type ์ด๋ผ๊ณ ๋„ ๋ถˆ๋ฆผย ย ย ย  MIME(ย Multipurposeย Internetย Mailย Extensionsย )ย typeํŒŒ์ผ์˜ ํ˜•์‹์„ ๋‚˜ํƒ€๋‚ด๋Š” ๋ฌธ์ž์—ด๋กœ ํŒŒ์ผ๊ณผ ๊ฐ™์ด ์†ก์‹ ๋˜๋Š”๋ฐ content์˜ ํ˜•์‹์„ ๋‚˜ํƒ€๋‚ด๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ์œˆ๋„์šฐ์˜ ํŒŒ์ผ ํ™•์žฅ์ž์™€ ๋™์ผํ•œ ์—ญํ• ์ด๋ฉ”์ผ ๋ฉ”์„ธ์ง€ , ์ฒจ๋ถ€ํŒŒ์ผ ์ข…๋ฅ˜๋ฅผ ๊ณ ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์ •์˜๋˜์—ˆ๊ณ  ์ด๋ฅผ ๊ทผ๊ฑฐ๋กœ MIME ํƒ€์ž…์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋งŒ๋“ค์–ด์ง์ง€๊ธˆ์€ Media Type ์ด๋ผ๋Š” ์šฉ์–ด๋กœ ์‚ฌ์šฉ ๋œ๋‹ค.ย ย  media type ๋ฏธ๋””์–ด ํƒ€์ž…์€ ..

HTTP (Hypertext Transfer Protocol) ๊ฐœ๋…

๋ชฉ์ฐจย ย ย ย HTTP ๋ž€?ย HTTP๋Š” HTML ๋ฌธ์„œ์™€ ๊ฐ™์€ ๋ฆฌ์†Œ์Šค๋“ค์„ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ณ„์ธต ํ”„๋กœํ† ์ฝœย  (ํด๋ผ์ด์–ธํŠธ-์„œ๋ฒ„ ํ”„๋กœํ† ์ฝœ)ย ย * ํ”„๋ก์‹œ :ย ย ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ณ„์ธต์—์„œ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ๋“ค์„ ์ผ๋ฐ˜์ ์œผ๋กœ ๋ถ€๋ฅด๋Š” ๋ง, ํ•˜๋‹จ์˜ ๊ธฐ๋Šฅ๋“ค์„ ์ˆ˜ํ–‰ ํ•  ์ˆ˜ ์žˆ๋‹ค.์บ์‹ฑ (์บ์‹œ๋Š” ๊ณต๊ฐœ ๋˜๋Š” ๋น„๊ณต๊ฐœ๊ฐ€ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค (์˜ˆ: ๋ธŒ๋ผ์šฐ์ € ์บ์‹œ))ํ•„ํ„ฐ๋ง (๋ฐ”์ด๋Ÿฌ์Šค ๋ฐฑ์‹  ์Šค์บ”, ์œ ํ•ด ์ปจํ…์ธ  ์ฐจ๋‹จ(์ž๋…€ ๋ณดํ˜ธ) ๊ธฐ๋Šฅ)๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ (์—ฌ๋Ÿฌ ์„œ๋ฒ„๋“ค์ด ์„œ๋กœ ๋‹ค๋ฅธ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋„๋ก ํ—ˆ์šฉ)์ธ์ฆ (๋‹ค์–‘ํ•œ ๋ฆฌ์†Œ์Šค์— ๋Œ€ํ•œ ์ ‘๊ทผ ์ œ์–ด)๋กœ๊น… (์ด๋ ฅ ์ •๋ณด๋ฅผ ์ €์žฅ)ย HTTP ํŠน์ง•ย ๋ฌด์ƒํƒœ(Stateless) : HTTP๋Š” ์ƒํƒœ๋ฅผ ์ €์žฅํ•˜์ง€ ์•Š๊ณ ,๊ฐ๊ฐ์˜ ์š”์ฒญ๊ณผ ์‘๋‹ต์ด ๋…๋ฆฝ์ ์œผ๋กœ ์ฒ˜๋ฆฌ๋จ, ์„œ๋ฒ„๋Š” ์š”์ฒญ ๊ฐ„์˜ ์—ฐ๊ฒฐ ์ƒํƒœ๋ฅผ ์œ ์ง€ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ํšจ์œจ์ ์ด์ง€๋งŒ, ..

DNS(Domain Name System) ๊ฐœ๋…

๋ชฉ์ฐจย ย ย ย [DNS / DNS ์„œ๋ฒ„]ย ๐Ÿ’โ€โ™€๏ธ DNS ๋ž€, Domain Name System (๋„๋ฉ”์ธ ๋„ค์ž„ ์‹œ์Šคํ…œ) ์˜ ์•ฝ์ž์ž…๋‹ˆ๋‹ค. ๋„๋ฉ”์ธ ์ด๋ฆ„๊ณผ IP ์ฃผ์†Œ๋ฅผ ๋ณ€ํ™˜(๋งคํ•‘)ํ•ด์ฃผ๋Š” ์‹œ์Šคํ…œย ๐Ÿ’โ€โ™€๏ธDNS ์„œ๋ฒ„๋Š” DNS ์‹œ์Šคํ…œ์„ ์šด์˜ํ•˜๊ณ  ๋™์ž‘ ์‹œํ‚ค๋Š” ์„œ๋ฒ„๋กœ, ์‹ค์ œ DNS ์ฟผ๋ฆฌ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ  ๋„๋ฉ”์ธ ์ด๋ฆ„ ํ•ด๊ฒฐํ•ฉ๋‹ˆ๋‹ค. (DNS ๊ตฌ์„ฑ ์š”์†Œ)ย ย ย [DNS ์™œ ์‚ฌ์šฉํ•˜๋Š”๋ฐ?]๐Ÿ’โ€โ™€๏ธ ๋„คํŠธ์›Œํฌ ํ†ต์‹ ์—์„œ๋Š” IP ์ฃผ์†Œ๋กœ ์žฅ์น˜๋ฅผ ์‹๋ณ„ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๊ตฌ๊ธ€ ํ™ˆํŽ˜์ด์ง€์˜ IP ์ฃผ์†Œ๋Š” 142.250.76.132 ์ž…๋‹ˆ๋‹ค.ย ๐Ÿ˜ญ ๊ทธ๋Ÿผ ์„œ๋กœ ํ†ต์‹ ์„ ํ•˜๋ ค๋ฉด ๋งค๋ฒˆ IP ์ฃผ์†Œ๋ฅผ ์ž…๋ ฅ ํ•ด์•ผ ํ•˜๋Š” ๊ฑธ๊นŒ์š”? 142.250 โ€ฆ. โ€ฆ. .. ?? 76.. .?ย ๐Ÿ’โ€โ™€๏ธ ์•„๋‹ˆ์š”! DNS ์„œ๋ฒ„๊ฐ€ ๋„๋ฉ”์ธ ์ด๋ฆ„ โ†” IP ์ฃผ์†Œ๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ๋Š” ๊ธฐ๋Šฅ์„ ํ•˜๊ธฐ ๋•Œ๋ฌธ์—..

React Public

more

[React] Ajax (์™ธ๋ถ€ ๋ฐ์ดํ„ฐ ํ†ต์‹ )

Ajax ?AJAX ( Asynchronous Javascript and XML) ์€ ์›น ํŽ˜์ด์ง€์˜ ์ด๋™์—†์ด ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋งŒ ์ „์†กํ•˜๋Š” ๊ธฐ์ˆ ์ž…๋‹ˆ๋‹ค.ย ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋•Œ ์„œ๋ฒ„์ชฝ ๋ฐ์ดํ„ฐ๊ฐ€ ํ•„์š”ํ•  ๋•Œ ajax๊ธฐ๋ฒ•์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.์ด ์ž‘์—…์€ ์‹œ๊ฐ„์ด ์˜ค๋ž˜ ๊ฑธ๋ฆด ์ˆ˜๋„ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋น„๋™๊ธฐ์ ์œผ๋กœ ์ฒ˜๋ฆฌํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.๋น„๋™๊ธฐ(asynchronous)๋Š” ์š”์ฒญ์ด ๋๋‚  ๋•Œ ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฌ๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๋™์‹œ์— ์—ฌ๋Ÿฌ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.๋‚˜์ค‘์— react์—์„œ๋Š” ๋‹ค๋ฅธ ์„œ๋ฒ„์˜ REST API์™€ ํ†ต์‹ ์„ ์ด์šฉํ•˜์—ฌย ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šคย ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.ย ย ES6 fetch ๋ฅผ ์ด์šฉํ•ด ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ (๋ฆฌ์•กํŠธ)Promise = fetch(์š”์ฒญ์ฃผ์†Œ)ย ๐Ÿ“ ์ด๋ฒคํŠธ ํด๋ฆญ์‹œ ์ฒ˜๋ฆฌํ•˜๊ธฐ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์™€์„œ useState()์— ์ €์žฅํ•˜๋Š” ์ž‘..

๐Ÿ”ต React 2024.08.31 1

[React] ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ

โ—ˆ ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐpackage.json >> build.gradle / pom.xml ๊ณผ ๋™์ผ (๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ , ๋ฒ„์ „ ๋ช…์‹œ)๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ๊ทธ ๋ฒ„์ „์„ ๋ช…์‹œํ•˜์—ฌ ํ”„๋กœ์ ํŠธ์˜ ์˜์กด์„ฑ์„ ๊ด€๋ฆฌํ•˜๋Š” ํ•ญ๋ชฉย dependencyย  : ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ๊ทธ ๋ฒ„์ „์„ ๋ช…์‹œํ•˜์—ฌ ํ”„๋กœ์ ํŠธ์˜ ์˜์กด์„ฑ์„ ๊ด€๋ฆฌํ•˜๋Š” ํ•ญ๋ชฉย ย scripts ๋ช…๋ น๋ฌธ :ย ์ž์ฃผ ์‚ฌ์šฉ๋˜๋Š” ๋ช…๋ น์–ด๋ฅผ ์Šคํฌ๋ฆฝํŠธ๋กœ ์ •์˜ํ•˜์—ฌ ์‰ฝ๊ฒŒ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ํ•ญ๋ชฉeslintConfig :ย ๊ธฐ๋ณธ ํ”„๋กœ๊ทธ๋žจ ๋„์›€ (์ฝ”๋“œ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜๊ธฐ ์œ„ํ•ด JavaScript ์ฝ”๋“œ ์Šคํƒ€์ผ์„ ๊ฒ€์‚ฌํ•˜๋Š” ๋„๊ตฌ์ธ ESLint์˜ ๊ธฐ๋ณธ ์„ค์ •์„ ์ •์˜ํ•˜๋Š” ํ•ญ๋ชฉ)browserlist :ย ํ”„๋กœ์ ํŠธ๊ฐ€ ์ง€์›ํ•ด์•ผ ํ•˜๋Š” ๋ธŒ๋ผ์šฐ์ €์˜ ๋ฒ”์œ„๋ฅผ ๋ช…์‹œ ( ๋ธŒ๋ผ์šฐ์ € ํ˜ธํ™˜์„ฑ์„ ์œ ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ํ•„์ˆ˜ )โ—ˆย ย web pack loader์ž๋™ ๋ฆฌ๋กœ๋“œ๋จ (..

๐Ÿ”ต React 2024.08.29 0

[React] React๋ผ์šฐํ„ฐ

๐Ÿ˜บ React ๋ผ์šฐํ„ฐ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ธฐ ์ „์— SPA ์˜ ๊ฐœ๋…์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž.ย ๐Ÿ“ SPA๋ž€? (single page application)ํ•˜๋‚˜์˜ ํŽ˜์ด์ง€๋กœ ๋งŒ๋“ค์–ด์ง„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์˜๋ฏธํ•œ๋‹ค.์ „ํ†ต์ ์ธ ๋ฐฉ์‹์€ Server๊ฐ€ html ํŒŒ์ผ ๋งŒ๋“ค๊ณ  data ์‹ค์–ด์„œ ์‘๋‹ตํ•˜์ง€๋งŒ,spa ๋ฐฉ์‹์€ ํด๋ผ์ด์–ธํŠธ์— html ์„ธ์›Œ๋‘๊ณ  ๋ฐ์ดํ„ฐ๋งŒ ์š”์ฒญ์‘๋‹ต์„ ํ†ตํ•ด ๋ฐ”๊พผ๋‹ค.ย ย SPA๋Š” htmlํŒŒ์ผ์„ ๋ธŒ๋ผ์šฐ์ € ์ธก์—์„œ ๋กœ๋“œํ•˜๊ณ , ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋Š” API์™€ ajaxํ†ต์‹ ์„ ์ด์šฉํ•ด์„œ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.๋ธŒ๋ผ์šฐ์ €์—์„œ ์‚ฌ์šฉ์ž๊ฐ€ ์ƒํ˜ธ์ž‘์šฉ ํ•˜๋ฉด ํ•„์š”ํ•œ ๋ถ€๋ถ„๋งŒ ์—…๋ฐ์ดํŠธ ํ•ด์„œ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.๋ฉ€ํ‹ฐํ”Œ๋žซํผ Android, IOS์— ๋Œ€์‘ํ•˜์—ฌ ์›น๋ทฐ๋กœ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ชฉ์ ์œผ๋กœ๋„ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.ย ๐Ÿ“ SPA์˜ ๋‹จ์  (CSR๋ฐฉ์‹)์•ฑ์˜ ๊ทœ๋ชจ๊ฐ€ ์ปค์ง€๋ฉด, JSํŒŒ์ผ๋„ ๋„ˆ๋ฌด ์ปค์ ธ์„œ ๋กœ๋”ฉ์ด ์˜ค๋ž˜๊ฑธ๋ฆฌ๊ฒŒ ๋ฉ..

๐Ÿ”ต React 2024.08.28 0

Git Public

more

[Git] eclipse ๊นƒํ—ˆ๋ธŒ ํ˜‘์—… ๋ฐฉ๋ฒ• & ๋ธŒ๋ Œ์น˜

[ eclipseย  ๊นƒํ—ˆ๋ธŒ ํ˜‘์—… ๋ฐฉ๋ฒ• ]ย 1. ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•  ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ƒ์„ฑgithub ์—์„œ repositories ๋ฅผ ํ•˜๋‚˜ ์ƒ์„ฑํ•œ๋‹ค.ย ย 2. ์ฝœ๋ผ๋ณด๋ ˆ์ดํ„ฐ ์ดˆ๋Œ€ํ•˜๊ธฐ๊ฐ™์ด ํ˜‘์—…ํ•  ์‚ฌ๋žŒ์„ ์ดˆ๋Œ€ํ•œ๋‹ค. Collaborators์ด๋•Œ ์ดˆ๋Œ€๋ฅผ ์ˆ˜๋ฝํ•ด์•ผํ•œ๋‹ค.ย 3. ์ดํด๋ฆฝ์Šค์™€ ๊นƒํ—ˆ๋ธŒ ์—ฐ๊ฒฐํ•˜๊ธฐ์ดํด๋ฆฝ์Šค์—์„œ Import -> git -> cloneย ์ด๋•Œ ๊นƒํ—ˆ๋ธŒ Settings > Developer-Settings > Token ์„ ์ƒ์„ฑํ•œ๋‹ค.ย 4. ์ž˜ ์—ฐ๊ฒฐ ๋˜์—ˆ๋Š”์ง€ ์„œ๋ฒ„ ์ผœ์„œ ํ™•์ธํ•ด์ฃผ๋ฉด ๋ย ย [ ํ˜‘์—… ์‹œ ๊นƒ ํ—ˆ๋ธŒ ์‚ฌ์šฉ๋ฒ• ? ]ย ย (ํŒ€์žฅ)ย ๋‚ด github ๊ณ„์ •์—ฐ๊ฒฐ$git config --global user.email "๋ณธ์ธ์ด๋ฉ”์ผ์ฃผ์†Œ"$git config --global user.name "๋ณธ์ธ์ด๋ฆ„"ย ย ์ดˆ๊ธฐ ์ฝ”๋“œ ์—…๋กœ๋“œํ•˜๊ธฐ$g..

๐ŸŸ  Git 2024.07.15 0

[Git] ์ž๋™ push.exe

git init ๊ณผ ์›๊ฒฉ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ์—ฐ๊ฒฐ ๋˜์–ด์—ˆ๋Š” ์ƒํƒœ์—์„œ ์•ˆ์— ๋ฐฐ์น˜ํŒŒ์ผ ๋ˆ„๋ฅด์‹œ๋ฉด ์ž๋™์œผ๋กœ ํ‘ธ์‰ฌ๋œ๋‹ค.!ย ย ย *** ์ˆ˜๋™ ์—…๋กœ๋“œํ•˜๊ธฐ Open Git Bash hereย ย ๊นƒ ์‹œ์ž‘ํ•˜๊ธฐ$ git initย ย ๊นƒ ์ดˆ๊ธฐ ์„ธํŒ…ย $ git config --global user.name "๋ณธ์ธ์ด๋ฆ„์˜์–ด"$ git config --global user.name ๋ณธ์ธ์ด๋ฉ”์ผ$ git config --list๊นƒํ—ˆ๋ธŒ ํšŒ์›" data-og-host="hyejux.tistory.com" data-og-source-url="https://hyejux.tistory.com/633" data-og-url="https://hyejux.tistory.com/633" data-og-image="https://scrap.kakaocdn.net/d..

๐ŸŸ  Git 2024.06.18 0

[Git] comflict ์ถฉ๋Œ

comflict ๋ž€?ย comflict ๋Š” ๊ฐ™์€ ํŒŒ์ผ, ๊ฐ™์€ ์œ„์น˜๋ฅผ ์—ฌ๋Ÿฌ ์‚ฌ์šฉ์ž๊ฐ€ ๋™์‹œ์— ์ˆ˜์ •ํ•  ๋•Œ ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜์ด๋‹ค. merge / rebase ์ž‘์—… ์ค‘ ์ž๋™์œผ๋กœ ํ•ด๊ฒฐํ•  ์ˆ˜ ์—†๋Š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์žˆ์„ ๋•Œ ๋ฐœ์ƒํ•œ๋‹ค.ย ex)ย 1) A ๋ธŒ๋žœ์น˜์™€ B ๋ธŒ๋žœ์น˜๊ฐ€ ์žˆ๋‹ค.2) ๋‘ ๋ธŒ๋žœ์น˜๋ฅผ ๋™์ผํŒŒ์ผ, ๋™์ผ ๋ผ์ธ์„ ์ˆ˜์ •ํ•จย 3) A ๋กœ ์ฒดํฌ์•„์›ƒํ•˜์—ฌ B ๋ฅผ ๋ณ‘ํ•ฉํ•œ๋‹ค (merge) .ย  ---> Automatic merge failed; fix conflicts and then commit the result.ย >>>>>> B-branchย ย comflict ๋ฐœ์ƒ ์‹œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•comflict ๋ฐœ์ƒํ•œ ํŒŒ์ผ์„ ์ˆ˜๋™์œผ๋กœ ์ˆ˜์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.๋”๋ณด๊ธฐpull ๋‹น๊ฒจ์˜ค๋ฉด comflict ๋ฐœ์ƒ >์“ฐ๋˜ ์ฝ”๋“œ๋ฅผ add / commit >pull (comf..

๐ŸŸ  Git 2024.06.12 0