๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

    [Java Web] 1. WAS (Web Application Server)

    Java๋กœ Servlet๊ธฐ๋ฐ˜ Web Server๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๊ธ€์ด๋‹ค.๋กœ๊ทธ์ธ ์„œ๋น„์Šค ์ œ๊ณต ์„œ๋ฒ„ ์ œ์ž‘์„ ๋ชฉํ‘œ๋กœ ์ž‘์„ฑํ•จ  Spring framework๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋˜๋Š”๋ฐ ์™œ ๊ตณ์ด ์“ฐ์ง€๋„ ์•Š๋Š” Servlet์„ ์‚ฌ์šฉํ•ด์•ผํ•˜๋Š”์ง€ ์˜๋ฌธ์ด ๋“ค ์ˆ˜ ์žˆ๋‹ค. ํ•˜์ง€๋งŒ Spring framework๋„ Servlet์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ‹€(frame)์„ ์ œ๊ณตํ•ด์ค„๋ฟ์ด๊ธฐ ๋•Œ๋ฌธ์— ๊ณต๋ถ€ํ•˜๋‹ค๋ณด๋ฉด ์–ธ์  ๊ฐ€ Servlet์ด๋ผ๋Š” ๊ฐœ๋…์„ ๋งˆ์ฃผํ•˜๊ฒŒ ๋  ๊ฒƒ์ด๋‹ค. ๋‹ค์‹œ ๋Œ์•„์™€ ๊ณต๋ถ€ํ•˜๊ธฐ ๋ณด๋‹ค ํŠผํŠผํ•œ ๊ธฐ์ดˆ๋ฅผ ์Œ“๊ณ  framework๋ฅผ ๊ณต๋ถ€ํ•˜์ž.  ํ”„๋กœ์ ํŠธ ํ™˜๊ฒฝ๋ณธ๊ฒฉ์ ์œผ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์•ž์„œ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ๊ณผ ์„ธํŒ… ๊ฐ’, ํŒจํ‚ค์ง€ ๊ตฌ์กฐ์— ๋Œ€ํ•ด์„œ ์‚ดํŽด๋ณด์ž.ํ”„๋กœ์ ํŠธ ์„ค์ •์ด ์ต์ˆ™ํ•˜์ง€ ์•Š๋‹ค๋ฉด ๋‹ค์–‘ํ•œ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•˜๋ฉด์„œ ๋™์ผํ•œ ํ™˜๊ฒฝ ์ƒํƒœ๋ฅผ ์„ค์ •ํ•ด๋†“๋Š” ๊ฒƒ์ด ์ข‹๋‹ค.https:/..

    [Java Web] Servlet Binding | Local/ Session Storage

    ServerJava Servlet์—์„œ ๊ด€๋ฆฌํ•˜๋Š” ์ €์žฅ ๊ณต๊ฐ„์€ Servlet context, reqeust, Page context, Session์ด ์žˆ๋‹ค.๋ฐ”์ธ๋”ฉ ์œ„์น˜์‚ฌ์šฉ ๊ฐ€๋Šฅ ๋ฒ”์œ„์‚ฌ์šฉ ์˜ˆ์‹œServletContext๋ชจ๋“  ์š”์ฒญ์กฐํšŒ์ˆ˜session๋ธŒ๋ผ์šฐ์ €๋กœ๊ทธ์ธ ์ •๋ณดrequest๊ฐ ์š”์ฒญJSP ๋™์  ํ• ๋‹นPageContextpage  BindTestServlet.java@WebServlet("/jsp/bind1.go")public class BindingTestServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws Se..

    [Java] ๋ฐฑ์ค€ 1629 ๊ณฑ์…ˆ - ๋ถ„ํ•  ์ •๋ณต

    ~๋ชฉ์ฐจ~๋ฌธ์ œ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œhttps://www.acmicpc.net/problem/1629    ๋ฌธ์ œ ํ•ด๊ฒฐ ๊ณผ์ •- ๋‹จ์ˆœํžˆ a๋ฅผ b๋ฒˆ ๊ณฑํ•˜๊ฒŒ ๋œ๋‹ค๋ฉด ์‹œ๊ฐ„ ๋ณต์žก๋„ O(b) (์‹œ๊ฐ„ ์ดˆ๊ณผ)- a^b = (a^(b/2))^2  ์‚ฌ์šฉํ•˜๋ฉด ํ•ด๊ฒฐ ๊ฐ€๋Šฅ! (^ : ์ œ๊ณฑ)   ์ž‘์„ฑ ์ฝ”๋“œimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BJ_1629_๊ณฑ์…ˆ { public static void main(String[] args) throws IOException { BufferedReader br = ..

    [Python] ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ์—ฌํ–‰๊ฒฝ๋กœ | DFS

    ~๋ชฉ์ฐจ~๋ฌธ์ œ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œhttps://school.programmers.co.kr/learn/courses/30/lessons/43164 ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค์ฝ”๋“œ ์ค‘์‹ฌ์˜ ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ. ์Šคํƒ ๊ธฐ๋ฐ˜์˜ ํฌ์ง€์…˜ ๋งค์นญ. ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค์˜ ๊ฐœ๋ฐœ์ž ๋งž์ถคํ˜• ํ”„๋กœํ•„์„ ๋“ฑ๋กํ•˜๊ณ , ๋‚˜์™€ ๊ธฐ์ˆ  ๊ถํ•ฉ์ด ์ž˜ ๋งž๋Š” ๊ธฐ์—…๋“ค์„ ๋งค์นญ ๋ฐ›์œผ์„ธ์š”.programmers.co.kr   ๋ฌธ์ œ ํ•ด๊ฒฐ ๊ณผ์ •- ํ‹ฐ์ผ“์€ ํ•œ ๋ฒˆ๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ์‚ฌ์šฉํ–ˆ์Œ์„ ๊ธฐ๋กํ•ด์•ผํ•จ (ํ•˜์ง€๋งŒ, ์ค‘๋ณต์ด ์žˆ์„ ์ˆ˜ ์žˆ์Œ)- ํŠน์ • ๊ณตํ•ญ์—์„œ ๊ฐˆ ์ˆ˜ ์žˆ๋Š” ๊ณตํ•ญ์„ ์˜ฌ๋ฆผ์ฐจ์ˆœ์œผ๋กœ ๊ด€๋ฆฌ- DFS๋กœ ์ˆœํ™˜ํ•˜๋ฉด์„œ ์ •๋‹ต์ด ๋  ์ˆ˜ ์žˆ๋Š” ์ฒซ๋ฒˆ์งธ ๊ฒฝ์šฐ๋ฅผ ๋ฐ˜ํ™˜ - ์ฃผ์˜ ์‚ฌํ•ญ1. ํ‹ฐ์ผ“์€ ํ•œ ๋ฒˆ๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ๋™์ผํ•œ ๊ฒฝ๋กœ์˜ ํ‹ฐ์ผ“์ด 2๊ฐœ ์ด์ƒ์ผ ์ˆ˜ ์žˆ์Œ ( 2๋ฒˆ ํ…Œ์ผ€)2. ํŠน์ • ๊ณตํ•ญ์—์„œ ๋‹ค๋ฅธ..

    2024 2ํšŒ ์ •๋ณด์ฒ˜๋ฆฌ๊ธฐ์‚ฌ ์‹ค๊ธฐ ํ•ฉ๊ฒฉ ๋…ํ•™ ํ›„๊ธฐ

    ์ฒ˜์Œ์œผ๋กœ ์ž๊ฒฉ์ฆ ์ทจ๋“ ํ›„๊ธฐ๋ฅผ ์˜ฌ๋ ค๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค ์ €๋Š” ํ•ญ์ƒ ์‹œํ—˜์„ ์ค€๋น„ํ•  ๋•Œ ์„ฑ๊ณตํ•œ ์‚ฌ๋žŒ๋“ค์˜ ์‚ฌ๋ก€๋ฅผ ์ฐธ๊ณ ํ•˜๋Š” ํŽธ์ธ๋ฐ '๋Œ€๋‹จํ•˜๋‹ค ๋‚˜๋„ ์ด๋ ‡๊ฒŒ ๋˜๊ณ ์‹ถ๋‹ค', '์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋˜๋Š”๊ตฌ๋‚˜' ์ƒ๊ฐํ•˜๋ฉด์„œ ๋™๊ธฐ๋ถ€์—ฌ๋„ ๋˜๊ณ , ๋ฐฉํ–ฅ์„ ์žก์„ ์ˆ˜ ์žˆ์–ด์„œ ์ข‹์€ ์Šต๊ด€์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์ž๊ฒฉ์ฆ ์ธ์ฆ์œผ๋กœ ๊ธ€์„ ์‹œ์ž‘ํ•˜์ฃ !    ๋ฒ ์ด์Šค ์ง€์‹์ด ์–ด๋–ป๊ฒŒ ๋ผ?๋ผ๋Š” ์งˆ๋ฌธ์— ๋จผ์ € ๋‹ต๋ณ€๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค. ์„œ์šธ 4๋…„์ œ ๋Œ€ํ•™ ์†Œํ”„ํŠธ์›จ์–ด ์ „๊ณต, ๊ฒฝ์˜ ๋ณต์ˆ˜์ „๊ณต์œผ๋กœ ์กธ์—…ํ•˜์˜€์Šต๋‹ˆ๋‹ค.์ฆ‰ ๋ฒ ์ด์Šค๊ฐ€ ์—†์ง€ ์•Š๊ณ  ์ฒ˜์Œ ๊ธฐ๋ณธ์„œ๋ฅผ ๋ณด์•˜์„ ๋•Œ ์™„๋ฒฝํ•˜๊ฒŒ ์•Œ์ง„ ๋ชปํ•˜์ง€๋งŒ ์–ด๋””์„ ๊ฐ€ ๋ณธ์ ์žˆ๋‹ค! ์ •๋„์˜ ์ˆ˜์ค€์—์„œ ์‹œ์ž‘ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋Œ€ํ•™ ์ •๊ทœ ๊ณผ์ • ์„ฑ์‹คํžˆ ๋“ค์€ ๋ณดํ†ต์˜ ์กธ์—…์ƒ ์ •๋„๋ผ๊ณ  ๋ณด์‹œ๋ฉด ๋  ๊ฒƒ๊ฐ™์Šต๋‹ˆ๋‹ค.  ์–ผ๋งˆ๋‚˜ ๊ณต๋ถ€ํ–ˆ์–ด?๋นก์„ธ์ง€ ์•Š๊ฒŒ 4์ฃผ ์žก๊ณ  ๊ณต๋ถ€ํ–ˆ์Šต๋‹ˆ๋‹ค.์ดํ‹€, ์ผ์ฃผ์ผ ๊ณต๋ถ€ํ–ˆ๋‹ค๋Š” ์ฒœ์žฌ๋ถ„๋“ค๋„ ๊ฐ€..

    [ํ† ์ต][์Šคํƒ€ํŠธ๋ฆฌ๋”ฉ ๋ฌด๋ฃŒ๊ฐ•์˜] ์ฑŒ๋ฆฐ์ง€ 20์ผ์ฐจ

    ๋“œ๋””์–ด ๋งˆ์ง€๋ง‰ 20์ผ์ฐจ ์ฃผ์ œ '๋ณ‘์น˜/๋„์น˜'!!! ๋ถ€์กฑํ•˜์ง€๋งŒ ์ œ ๊ธ€์„ ์ฝ์–ด์ฃผ์‹  ๋ถ„๋“ค๊ณผ ์ €์—๊ฒŒ ๊ฐ์‚ฌ์˜ ๋ง์”€์„ ๋“œ๋ฆฝ๋‹ˆ๋‹ค ๋ณ‘์น˜/ ๋„์น˜ 1. ๋ณ‘์น˜ : ๋‘ ๊ฐ€์ง€ ์š”์†Œ๊ฐ€ ์—ฐ๊ฒฐ์–ด๋กœ ์ด์–ด์งˆ ๋•Œ๋Š” ์—ฐ๊ฒฐ์–ด ์•ž๋’ค๊ฐ€ ์„œ๋กœ ๊ท ํ˜•์„ ์ด๋ฃจ์–ด์•ผ ํ•จ : ๋“ฑ์œ„์ ‘์†์‚ฌ์™€ ์ƒ๊ด€์ ‘์†์‚ฌ๋กœ ์—ฐ๊ฒฐํ•  ๋•Œ ์ผ์–ด๋‚จ 1) ํ’ˆ์‚ฌ ๋ณ‘์น˜ : ๊ฐ™์€ ํ’ˆ์‚ฌ๋ผ๋ฆฌ ์—ฐ๊ฒฐ ๋ช…์‚ฌ - The employees get both a bonus and benefits. ๋™์‚ฌ - We can send a letter or call you. ํ˜•์šฉ์‚ฌ - The new machine is neither efficient not fast. ๋ถ€์‚ฌ - He edited the letter quickly and correctly. 2) ๊ตฌ์กฐ ๋ณ‘์น˜ : ๋ณ‘์น˜ ๊ตฌ๋ฌธ์—์„œ๋Š” ๊ฐ™์€ ๊ตฌ์กฐ๋ผ๋ฆฌ ์—ฐ๊ฒฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค...

    [ํ† ์ต][์Šคํƒ€ํŠธ๋ฆฌ๋”ฉ ๋ฌด๋ฃŒ๊ฐ•์˜] ์ฑŒ๋ฆฐ์ง€ 19์ผ์ฐจ

    ์˜ค๋Š˜์€ 19์ผ์ฐจ '๋น„๊ต ๊ตฌ๋ฌธ'! ๋ฒŒ์จ 19์ผ์ฐจ๋‹ค 1์ผ์ฐจ ์ˆ˜๊ฐ•ํ•˜๋ฉด์„œ ๋‹ค์งํ•˜๋˜๋ฐ ์—Š๊ทธ์ œ๊ฐ™์€๋ฐ.. ๋น„๊ต ๊ตฌ๋ฌธ : ๋‘ ๊ฐ€์ง€ ํ˜น์€ ์„ธ ๊ฐ€์ง€ ์ด์ƒ์˜ ๋Œ€์ƒ์„ ์„œ๋กœ ๊ฒฌ์ฃผ์–ด ๋น„๊ตํ•˜๋Š” ๊ตฌ๋ฌธ 1) ์›๊ธ‰ : ๋น„๊ตํ•˜๋Š” ๋‘ ๋Œ€์ƒ์ด ๊ฐ™์„ ๋•Œ 2) ๋น„๊ต๊ธ‰ : ๋‘ ๊ฐœ์˜ ๋น„๊ต ๋Œ€์ƒ ์ค‘ ํ•˜๋‚˜๊ฐ€ ๋” ์šฐ์›”ํ•  ๋•Œ 3) ์ตœ์ƒ๊ธ‰ : ์…‹ ์ด์ƒ์˜ ๋น„๊ต ๋Œ€์ƒ ์ค‘ ํ•˜๋‚˜๊ฐ€ ๊ฐ€์žฅ ๋›ฐ์–ด๋‚  ๋•Œ ์›๊ธ‰ ๊ตฌ๋ฌธas ์›๊ธ‰ asas large as๋น„๊ต๊ธ‰ ๊ตฌ๋ฌธ๋น„๊ต๊ธ‰ + thanlarger than์ตœ์ƒ๊ธ‰ ๊ตฌ๋ฌธthe + ์ตœ์ƒ๊ธ‰ (๋‹จ, ๋ถ€์‚ฌ์˜ ์ตœ์ƒ๊ธ‰ ์•ž์—๋Š” ๋ณดํ†ต the ์‚ฌ์šฉ x)the largest 1. ๋น„๊ต๊ธ‰1) ๋น„๊ต๊ธ‰ + than : ํ˜•์šฉ์‚ฌ/ ๋ถ€์‚ฌ์˜ ๋น„๊ต๊ธ‰ _ than์„ ์“ด๋‹ค : ์ฆ‰ ๋ฌธ์žฅ์— than์ด ๋‚˜์˜ค๋ฉด ์•ž์— ํ˜„์šฉ์‚ฌ/ ๋ถ€์‚ฌ๋Š” ๋น„๊ต๊ธ‰ 2) ๋น„๊ต๊ธ‰์ด ํฌํ•จ๋œ ํ‘œํ˜„ : the ..

    [ํ† ์ต][์Šคํƒ€ํŠธ๋ฆฌ๋”ฉ ๋ฌด๋ฃŒ๊ฐ•์˜] ์ฑŒ๋ฆฐ์ง€ 18์ผ์ฐจ

    ์˜ค๋Š˜์€ 'ํ˜•์šฉ์‚ฌ์ ˆ'์„ ํ•™์Šต! ํ˜•์šฉ์‚ฌ์ ˆ : ํ˜•์šฉ์‚ฌ์ ˆ ์ ‘์†์‚ฌ + (์ฃผ์–ด) + ๋™์‚ฌ ~ : ํ˜•์šฉ์‚ฌ์ ˆ ์ ‘์†์‚ฌ = ๊ด€๊ณ„๋Œ€๋ช…์‚ฌ ์ˆ˜์‹ ๋ฐ›๋Š” ๋ช…์‚ฌ \ ๊ฒฉ์ฃผ๊ฒฉ๋ชฉ์ ๊ฒฉ์†Œ์œ ๊ฒฉ์‚ฌ๋žŒwhowho/ whomwhose์‚ฌ๋ฌผ, ๋™๋ฌผwhichwhichwhose/ of which์‚ฌ๋žŒ, ์‚ฌ๋ฌผ, ๋™๋ฌผthatthat- 1. ํ˜•์šฉ์‚ฌ์ ˆ ์ž๋ฆฌ : ํ˜•์šฉ์‚ฌ์ ˆ(=๊ด€๊ณ„์ ˆ)์€ ๋ช…์‚ฌ ๋’ค : ํ˜•์šฉ์‚ฌ์ ˆ์„ ์ด๋„๋Š” ๊ด€๊ณ„๋Œ€๋ช…์‚ฌ ์ž๋ฆฌ์— ๋Œ€๋ช…์‚ฌ๋Š” ์˜ฌ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. 2. ๊ด€๊ณ„๋Œ€๋ช…์‚ฌ1) Who/ Which ๊ตฌ๋ณ„ : ํ˜•์šฉ์‚ฌ์ ˆ ์•ž์— ๋‚˜์˜จ ๋ช…์‚ฌ๊ฐ€ : ์‚ฌ๋žŒ์ผ ๋•Œ Who : ์‚ฌ๋ฌผ์ผ ๋•Œ Which 2) ์ฃผ๊ฒฉ/ ๋ชฉ์ ๊ฒฉ/ ์†Œ์œ ๊ฒฉ ๊ตฌ๋ณ„ : ํ˜•์šฉ์‚ฌ์ ˆ ์•ˆ์— ์ฃผ์–ด๊ฐ€ ์—†์œผ๋ฉด ์ฃผ๊ฒฉ ๊ด€๊ณ„๋Œ€๋ช…์‚ฌ who/ which/ that : ํ˜•์šฉ์‚ฌ์ ˆ ์•ˆ์— ๋ชฉ์ ์–ด๊ฐ€ ์—†์œผ๋ฉด ๋ชฉ์ ๊ฒฉ ๊ด€๊ณ„๋Œ€๋ช…์‚ฌ whom/ which/ tha..

    [ํ† ์ต][์Šคํƒ€ํŠธ๋ฆฌ๋”ฉ ๋ฌด๋ฃŒ๊ฐ•์˜] ์ฑŒ๋ฆฐ์ง€ 17์ผ์ฐจ

    ์˜ค๋Š˜์€ '๋ถ€์‚ฌ์ ˆ' ์ฃผ์ œ๋กœ ํ•™์Šตํ•˜์˜€๋‹ค. ๋ถ€์‚ฌ์ ˆ : ์ฃผ์ ˆ์„ ์ˆ˜์‹ํ•˜์—ฌ ์ด์œ , ์กฐ๊ฑด, ์‹œ๊ฐ„ ๋“ฑ์˜ ๋ถ€๊ฐ€์ ์ธ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ด์ฃผ๋Š” ์ ˆ : ๋ถ€์‚ฌ์ ˆ ์ ‘์†์‚ฌ + ์ฃผ์–ด + ๋™์‚ฌ ~ 1. ์ž๋ฆฌ : ์ฃผ์ ˆ์˜ ์•ž์ด๋‚˜ ๋’ค์— ์œ„์น˜ํ•ฉ๋‹ˆ๋‹ค. : ์ฃผ์ ˆ์˜ ์•ž์— ์˜ฌ ๋•Œ๋Š” ๋ฐ˜๋“œ์‹œ ๋ถ€์‚ฌ์ ˆ ๋’ค์— ์‰ผํ‘œ(,)๋ฅผ ๋ถ™์—ฌ์•ผ ํ•จ! ๋น„์Šทํ•œ ์˜๋ฏธ์˜ ์ „์น˜์‚ฌ์™€ ํ˜ผ๋™ํ•˜์ง€ ๋ง์ž!์˜๋ฏธ๋ถ€์‚ฌ์ ˆ ์ ‘์†์‚ฌ์ „์น˜์‚ฌ~ํ•˜๋Š” ๋™์•ˆWhileduring, for๋น„๋ก ~์ด์ง€๋งŒAlthough, even thoughin spite of, despite~๋•Œ๋ฌธ์—Because, SinceBecause of, due to 2. ๋ถ€์‚ฌ์ ˆ ์ ‘์†์‚ฌ์ข…๋ฅ˜๋ถ€์‚ฌ์ ˆ ์ ‘์†์‚ฌ์‹œ๊ฐ„until ~ ํ•  ๋•Œ๊นŒ์ง€ before ~ํ•˜๊ธฐ ์ „ after ~ํ•œ ํ›„์— when ~ํ•  ๋•Œ since ~ํ•œ ์ด๋ž˜๋กœ while ~ํ•˜๋Š” ๋™์•ˆ์กฐ๊ฑดif ๋งŒ์•ฝ ~..