반응형
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 |
Tags
- 스프링부트
- 프로그래밍
- JSON
- springboot
- frontend
- 유니티
- spring
- IntelliJ
- express
- AWS
- 스프링
- node.js
- react
- unity
- 백준
- bcrypt
- 게임
- Python
- 코딩
- oAuth
- OAuth2.0
- MongoDB
- netlify
- 게임개발
- 백엔드
- 파이썬
- c#
- RiotAPI
- 깃
- jwt
Archives
- Today
- Total
목록empty:false (1)
Unwound Developer
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/FU58O/btrUtvM4z7A/OP1qVgpccjpVh7ypyn9eL0/img.png)
DB에서 JSON형태로 데이터를 받아오고, 서버는 JSON 배열 형태로 받습니다. 서버가 그 JSON 배열을 클라이언트에게 다시 넘겨줍니다. 위는 별글 프로젝트에서 Get요청을 처리하는 방법입니다. 코드는 다음과 같습니다. Class.forName("com.mysql.cj.jdbc.Driver"); Connection conn = DriverManager.getConnection( "jdbc:mysql://localhost:포트번호/스키마이름","아이디","비밀번호" ); PreparedStatement ps = conn.prepareStatement( "SELECT * FROM user_tb" ); // 데이터베이스와 연결 ResultSet rs = ps.executeQuery(); // rs는 Res..
Web/Spring
2022. 12. 24. 16:39