μ’μ μλΉμ€λ₯Ό λ§λλ κ°λ°μκ° λκ³ μΆμ΄μ.
ν¬μΉ΄μ΄λΈ "λ°©νμλ
λ¨(BTS) ν¬ν μΉ΄λ κ΅ν νλ«νΌ" (μλΉμ€ μ€!)
App douwnload
Zzz project "ν¨κ» μκΈ°νλ©° μ¦κΈ°λ μ¨λΌμΈ 3D λ°©νμΆ!!"
GitHub
ν¬μΉ΄μ΄λΈ "λ°©νμλ
λ¨(BTS) ν¬ν μΉ΄λ κ΅ν νλ«νΌ" (μλΉμ€ μ€!)
App douwnload
Zzz project "ν¨κ» μκΈ°νλ©° μ¦κΈ°λ μ¨λΌμΈ 3D λ°©νμΆ!!"
GitHub
μν°ν°λ₯Ό μ§μ νλ‘ νΈμ μ λ¬νμ§ μκ³ dtoλ‘ κ°μΈμ μ λ¬ν΄μ£Όλ κ²μ μ’μμ΅λλ€. λ€λ§ μ¬κΈ°μ νλ‘μ νΈκ° 컀μ§κ² λλ©΄ λ§μ ν΄λμ€κ° μμ±λλ€λ λ¬Έμ κ° μλλ°μ. μ΄λ»κ²νλ©΄ request responseλ₯Ό νλμ dto classμμ μ²λ¦¬ν μ μμμ§ κ³ λ―Όν΄λ³΄μλ©΄ μ’μ κ² κ°μ΅λλ€ (ν€μλ: static inner class)
μ κ·Έλ¦¬κ³ λ¦¬λλ―Έ νμΌμμ μ¬μ© κΈ°μ μ λ²μ μ λͺ
μν΄μ£Όλ©΄ μ’μ κ² κ°μ΅λλ€.
μ΄μ μ 리ν λΆλΆμ μ’μμ΅λλ€. μΆνμλ λ μ§λ³λ‘ μ΄μμ λν΄μ νΈλνΉνμλ©΄ λ μ’μ κ² κ°μ΅λλ€.!
βS3Uploader ν΄λμ€βμ S3μ μ΄λ―Έμ§λ₯Ό μ μ₯νλ upload λ©μλλ₯Ό μμ±νμ΅λλ€.
μμ§ νμΌ μ¬μ΄μ¦λ₯Ό μ ννλ λΆλΆμ μμ±νμ§ μμμ ν° νμΌμ΄ λμ΄μ€λ©΄ μλ¬κ° λ°μν κ² κ°μμ. μ΄ λΆλΆ μΈμλ μ κ° μ§ μ½λμμ μλ¬κ° λ°μν μ μλ λΆλΆμ΄ μμκΉμ?
κ·Έλ¦¬κ³ νμΌμ λ©ν λ°μ΄ν°μ λ°μ΄ν° νμ
κ³Ό μ¬μ΄μ¦λ§ λ£μλλ°μ
νμμ μΌλ‘ λ€μ΄κ°μΌ νλ λ©ν λ°μ΄ν°κ° λ μμκΉμ?
μν리ν°μμ JWT ν ν°μ μ¬μ©νλ©΄μ , JwtAuthFilterμ μ μΈλλ apiλ₯Ό WebSecurityConfigμ μ§μ ν΄μ£Όμλλ°μ.
JwtAuthFilterμμ κ°μ΄ ν ν°μ΄ μλ κ²½μ° μλμ κ°μ΄ μλ¬λ©μμ§λ₯Ό 보μ¬μ£Όλλ‘ μ½λλ₯Ό μμ±νμλλ°(κΉνλΈ μ½λλ μμ νμμ΅λλ€!), JwtAuthFilterμ μ μΈλλ api(/products/)μμ 400μλ¬κ° λ°μνλ κ²½μ°μλ(@RequestParam λ¬Έμ μμ΅λλ€.) μλμ μλ¬λ©μμ§κ° μΆλ ₯λμμ΅λλ€.
` @OverRide
public Authentication attemptAuthentication(
HttpServletRequest request,
HttpServletResponse response
) throws AuthenticationException, IOException {
// JWT κ°μ λ΄μμ£Όλ λ³μ TokenPayload
String tokenPayload = request.getHeader("Authorization");
if (tokenPayload == null) {
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.setContentType("application/json;charset=utf-8");
JSONObject json = new JSONObject();
String message = "**ν ν°μ΄ μ‘΄μ¬νμ§ μμ΅λλ€.**";
json.put("httpStatus", HttpStatus.UNAUTHORIZED);
json.put("errorMessage", message);
PrintWriter out = response.getWriter();
out.print(json);
}`
ν΄λΉ κ²½λ‘λ JwtAuthFilterλ₯Ό μμ μνλ€κ³ μκ°νλλ° μ attemptAuthentication λ©μλκ° μ€νλμλμ§ κΆκΈν©λλ€!
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.