[Spring] Spring Boot์— QueryDSL ๋„์ž…๊ธฐ
ยท
Backend/Spring Boot
์ผ๋ฐ˜์ ์œผ๋กœ Spring Boot ํ™˜๊ฒฝ์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐ, Spring Data JPA๊ฐ€ ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋ณธ CRUD  ๋ฉ”์†Œ๋“œ์™€ Named Query ๋ฉ”์†Œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋œ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ๋Š” JPQL์ด๋‚˜ Native Query๋กœ ์ž‘์„ฑํ•˜๊ฒŒ ๋œ๋‹ค. ํ•˜์ง€๋งŒ ๋ณต์žกํ•œ ์ฟผ๋ฆฌ ๋กœ์ง์„ ๊ฐ€์ง„ ๊ฒฝ์šฐ์—๋Š” ๋ฉ”์†Œ๋“œ๋‚˜ ์ฟผ๋ฆฌ๋ฌธ์ด ๊ธธ์–ด์ ธ์„œ ๊ฐ€๋…์„ฑ์ด ๋–จ์–ด์ง€๊ฒŒ ๋œ๋‹ค. ํŠนํžˆ Paging์ด๋‚˜ Sorting์„ ๊ตฌํ˜„ํ•˜๊ฒŒ ๋  ๊ฒฝ์šฐ, ๊ตฌํ˜„์ด ๋ณต์žกํ•ด์ง€๊ฒŒ ๋œ๋‹ค.     ๐Ÿšจ ๋ฌธ์ œ ์ƒํ™ฉ ๋‚˜์˜ ๊ฒฝ์šฐ์—๋„ ์ด์ „ ํ”„๋กœ์ ํŠธ๊นŒ์ง€ Spring Data JPA๊ฐ€ ๊ธฐ๋ณธ์ ์œผ๋กœ ์ œ๊ณตํ•˜๋Š” CRUD ๋ฉ”์†Œ๋“œ์™€ Named Query๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋กœ์ง์„ ๊ตฌํ˜„ํ–ˆ์—ˆ๊ณ , ์กฐ๊ธˆ ๋” ๋ณต์žกํ•œ ์ฟผ๋ฆฌ์˜ ๊ฒฝ์šฐ์—๋Š” ๊ฐ€๋…์„ฑ์€ ์กฐ๊ธˆ์€ ๋–จ์–ด์ง€์ง€๋งŒ Native Query๋กœ ๋ณ„ ๋ฌธ์ œ์—†์ด ๊ตฌํ˜„์„..
[Spring] TypeError: Failed to execute 'fetch' on 'Window' : Request with GET/HEAD method cannot have body.
ยท
Backend/Spring Boot
Swagger์—์„œ API๋ฅผ ํ…Œ์ŠคํŠธํ•˜๋Š”๋ฐ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค!     ๐Ÿ’ป ์—๋Ÿฌ ๋ฉ”์‹œ์ง€Failed to execute 'fetch' on 'Window' : Request with GET/HEAD method cannot have body.     ๐Ÿ”Ž ์›์ธGet ๋ฐฉ์‹์œผ๋กœ RequestBody๋กœ ๋ณด๋‚ด๋ ค๊ณ  ํ–ˆ๋˜ ๊ฒƒ์ด ์›์ธ์ด์—ˆ๋‹ค. ์•„๋ฌด ์ƒ๊ฐ์—†์ด ์กฐํšŒ๋‹ˆ๊นŒ Get๋ฐฉ์‹์œผ๋กœ ํ•ด์•ผ์ง€~ ํ–ˆ๋‹ค.. @GetMapping("/one") public ResponseEntity list(@RequestBody TicketReq ticketReq) { try { List list = ticketService.getTicketList(ticketReq); if (list != nul..
[Spring/MySQL] SQL Error: 1064, SQLState: 42000 - MySQL ์˜ˆ์•ฝ์–ด ์‚ฌ์šฉํ•ด์„œ ๋‚˜๋Š” ์—๋Ÿฌ
ยท
Backend/Spring Boot
๐Ÿ’ป ์—๋Ÿฌ ๋ฉ”์‹œ์ง€You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match (distance, match_date, max_start_time, min_start_time, place_id) values ' at line 1     ๐Ÿ” ์›์ธํ…Œ์ด๋ธ”๋ช…์ธ match ๊ฐ€ MySQL ์˜ˆ์•ฝ์–ด์—ฌ์„œ ๋‚ฌ๋‹ค. MySQL ์˜ˆ์•ฝ์–ด ๋ชฉ๋ก์„ ๊ฒ€์ƒ‰ํ•ด์„œ ์ฐพ์€ ๊ฒฐ๊ณผ MATCH ๊ฐ€ ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. https://zetawiki.com/wiki/MySQL_%EC%98%88%EC%95%BD%EC%96%B4 MySQL ์˜ˆ์•ฝ์–ด - ์ œํƒ€์œ„..
[Java] Window Eclipse ์ดํด๋ฆฝ์Šค ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ค์ •ํ•˜๊ธฐ
ยท
Backend/Java
1. JDK ๋‹ค์šด๋กœ๋“œ & ์„ค์น˜ ์›ํ•˜๋Š” ๋ฒ„์ „์˜ JDK๋ฅผ ์œˆ๋„์šฐ ๋ฒ„์ „์œผ๋กœ ๋‹ค์šดํ•˜๊ณ  ์„ค์น˜ํ•œ๋‹ค. Oracle์ด๋‚˜ Azul์— ๊ฐ€๋ฉด ๋‹ค์šด๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” Azul zulu 11๋กœ ์„ ํƒํ•ด ์„ค์น˜ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ๋‹ค. https://www.oracle.com/kr/java/technologies/downloads/ Download the Latest Java LTS Free Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts. www.oracle.com https://www.azul.com/downloads/?package=jdk#zulu Azul Downloads ..
giraffe_
'Backend' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (3 Page)