Section 4: Users Microservice 1 - KwangtaekJung/MSA-SpringCloud-user-service GitHub Wiki
Users Mocroservice 1
Users Microservice κ°μ
Users Microservice νλ‘μ νΈ μμ±
Users Microservice DB
Users Microservice νμ κ°μ
Users Microservice Security
Users Microservice κ°μ
- APIs
κΈ°λ₯ | URI(API Gateway μ¬μ© μ) | URI(API Gateway λ―Έ μ¬μ© μ) | HTTP Method |
---|---|---|---|
μ¬μ©μ μ 보 λ±λ‘ | /user-service/users | /users | POST |
μ 체 μ¬μ©μ μ‘°ν | /suer-service/users | /suers | GET |
μ¬μ©μ μ 보, μ£Όλ¬Έ λ΄μ μ‘°ν | /user-service/users/{user_id} | /users/{user_id} | GET |
μλ μν νμΈ | /user-service/suers/health_check | /users/health_check | GET |
νμ λ©μμ§ | /user-service/users/welcome | /users/welcome | GET |
Users Microservice νλ‘μ νΈ μμ±
- Dependencies
- DevTools, Lombok, Web, Eureka Discovery Client
- Spring Boot 2.4.1
Users Microservice DB
- H2 Database
- μλ°λ‘ μμ±λ μ€ν μμ€ RDBMS
- Embedded, Server-Client κ°λ₯
- JPA μ°λ κ°λ₯
- h2.1.4.198 μ΄ ν λ²μ λΆν°λ 보μ λ¬Έμ λ‘ μλμΌλ‘ λ°μ΄ν°λ² μ΄μ€ μμ±νμ§ μμ.
Users Microservice νμ κ°μ
Users Microservice Security
- Authentication + Authorization
- BCryptPasswordEncoder
- Passwordλ₯Ό ν΄μ± νκΈ° μν΄ Bcrypt μκ³ λ¦¬μ¦ μ¬μ©
- λλ€ Saltλ₯Ό λΆμ¬νμ¬ μ¬λ¬ λ² Hashλ₯Ό μ μ©ν μνΈν λ°©μ