- I'm Backend Developer using
Java
andSpring
. - I'm interested in
OOP
,Clean Code
.
pbg0205 / java-was Goto Github PK
View Code? Open in Web Editor NEWThis project forked from codesquad-members-2021/java-was
2021 Java WAS
This project forked from codesquad-members-2021/java-was
2021 Java WAS
βλ‘κ·ΈμΈβ λ©λ΄λ₯Ό ν΄λ¦νλ©΄ http://localhost:8080/user/login.html μΌλ‘ μ΄λν΄ λ‘κ·ΈμΈν μ μλ€. λ‘κ·ΈμΈμ΄ μ±κ³΅νλ©΄ index.htmlλ‘ μ΄λνκ³ , λ‘κ·ΈμΈμ΄ μ€ν¨νλ©΄ /user/login_failed.htmlλ‘ μ΄λν΄μΌ νλ€.
μμμ νμκ°μ ν μ¬μ©μλ‘ λ‘κ·ΈμΈν μ μμ΄μΌ νλ€. λ‘κ·ΈμΈμ΄ μ±κ³΅νλ©΄ cookieλ₯Ό νμ©ν΄ λ‘κ·ΈμΈ μνλ₯Ό μ μ§ν μ μμ΄μΌ νλ€. λ‘κ·ΈμΈμ΄ μ±κ³΅ν κ²½μ° μμ² headerμ Cookie header κ°μ΄ logined=true, λ‘κ·ΈμΈμ΄ μ€ν¨νλ©΄ Cookie header κ°μ΄ logined=falseλ‘ μ λ¬λμ΄μΌ νλ€.
μ§κΈκΉμ§ ꡬνν μμ€ μ½λλ stylesheet νμΌμ μ§μνμ§ λͺ»νκ³ μλ€. Stylesheet νμΌμ μ§μνλλ‘ κ΅¬ννλλ‘ νλ€.
http://localhost:8080/index.html λ‘ μ μνμ λ webapp λλ ν 리μ index.html νμΌμ μ½μ΄ ν΄λΌμ΄μΈνΈμ μλ΅νλ€.
issue test
μ κ·Όνκ³ μλ μ¬μ©μκ° βλ‘κ·ΈμΈβ μνμΌ κ²½μ°(Cookie κ°μ΄ logined=true) κ²½μ° http://localhost:8080/user/list λ‘ μ κ·Όνμ λ μ¬μ©μ λͺ©λ‘μ μΆλ ₯νλ€. λ§μ½ λ‘κ·ΈμΈνμ§ μμ μνλΌλ©΄ λ‘κ·ΈμΈ νμ΄μ§(login.html)λ‘ μ΄λνλ€.
βνμκ°μ βμ μλ£νλ©΄ /index.html νμ΄μ§λ‘ μ΄λνκ³ μΆλ€. νμ¬λ URLμ΄ /user/create λ‘ μ μ§λλ μνλ‘ μ½μ΄μ μ λ¬ν νμΌμ΄ μλ€. λ°λΌμ redirect λ°©μμ²λΌ νμκ°μ μ μλ£ν ν βindex.htmlβλ‘ μ΄λν΄μΌ νλ€. μ¦, λΈλΌμ°μ μ URLμ΄ /index.htmlλ‘ λ³κ²½ν΄μΌ νλ€.
βνμκ°μ β λ©λ΄λ₯Ό ν΄λ¦νλ©΄ http://localhost:8080/user/form.html μΌλ‘ μ΄λνλ©΄μ νμκ°μ ν μ μλ€. νμκ°μ νλ€.
νμκ°μ
μ νλ©΄ λ€μκ³Ό κ°μ ννλ‘ μ¬μ©μκ° μ
λ ₯ν κ°μ΄ μλ²μ μ λ¬λλ€.
HTMLκ³Ό URLμ λΉκ΅ν΄ λ³΄κ³ μ¬μ©μκ° μ
λ ₯ν κ°μ νμ±ν΄ model.User ν΄λμ€μ μ μ₯νλ€.
http://localhost:8080/user/form.html νμΌμ form νκ·Έ methodλ₯Ό getμμ postλ‘ μμ ν ν νμκ°μ κΈ°λ₯μ΄ μ μμ μΌλ‘ λμνλλ‘ κ΅¬ννλ€.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.