Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Google Refund
- Git
- Packet Network
- server
- linux
- critical rendering path
- css framework
- docker
- Google Developer API
- react
- spread 연산자
- nodejs
- --watch
- mongoDB
- unity
- springboot
- express
- OverTheWire
- MySQL
- SDK upgrade
- Digital Ocean
- draganddrop
- Spring Boot
- Unity Editor
- screencapture
- Camera Zoom
- rpg server
- Unity IAP
- Camera Movement
- java
Archives
- Today
- Total
목록2025/04/22 (1)
우당탕탕 개발일지

Spring Boot로 JWT 기반 방치형 게임 서버 만들기오늘은 방치형 RPG 게임 서버에서 "게스트 로그인"을 구현해보고, 로그인 시 JWT 토큰을 발급하고, 유저에게 기본 장비를 지급하는 구조를 만들어봤다. 1. JWT가 뭐고 왜 쓰는 걸까?JWT(Json Web Token)는 로그인한 유저를 식별할 수 있는 서버 인증 토큰이야. AccessToken 안에 userId 같은 정보를 암호화해서 담아두고, 이후 요청에선 DB 조회 없이 인증할 수 있게 해주지.2. application.yml 설정profile별로 jwt.secret을 다르게 설정해줘야 해.spring: profiles: active: dev---spring: config: activate: on-profile: ..
Server/방치RPG 서버
2025. 4. 22. 17:39