2024/12/02 6

[JPA] Failed to convert from type [null] to type [int] for value [null]

[ ์—๋Ÿฌ ] JPA๋กœ ์„ธํŒ…๋œ ์ƒํƒœ์ด๋ฉฐ์—”ํ‹ฐํ‹ฐ ๋ณ€์ˆ˜์ค‘ intํ˜•์œผ๋กœ ์„ ์–ธ๋œ๊ฒƒ์ด ์žˆ๊ณ data๋“ฑ๋ก API๋ฅผ ํ˜ธ์ถœ์‹œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ ๋ฐœ์ƒ.w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntitydefault message [Failed to convert value of type 'null' to required type 'int'; Failed to convert from type [null] to type [int]..

Dev_Log 2024.12.02

[JPA] Unable to determine Dialect without JDBC metadata

[ ์—๋Ÿฌ ] Caused by: org.hibernate.HibernateException:Unable to determine Dialect without JDBC metadata(please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)  [ Solution ]application.yml์— jpa์˜ dialect์„ค์ • ์ถ”๊ฐ€spring: datasource: url: jdbc:mysql://localhost:3306/your_database username: your_username password: yo..

Dev_Log 2024.12.02

[VS Code] ์ €์žฅ์‹œ ์ž๋™์ •๋ ฌ ๋„๊ธฐ

VS Code์—์„œ ์ฝ”๋“œ ์ž‘์„ฑํ›„ ์ €์žฅ์‹œ ์ž๋™์ •๋ ฌ์ด ์ง€์›๋˜๋Š”๋ฐ๋ง˜์— ๋“ค์ง€์•Š๊ธฐ๋•Œ๋ฌธ์— ๊ธฐ๋Šฅ์„ ๊บผ๋ณด๋ ค๊ณ  ํ•œ๋‹ค1. File > Preferences > Settings ๋“ค์–ด๊ฐ€๊ธฐ ( ๋‹จ์ถ•ํ‚ค : Ctrl + , )2. ๊ฒ€์ƒ‰์ฐฝ์— format์ž…๋ ฅํ›„ Text Editor>Formatting์— ๋“ค์–ด๊ฐ€์„œ Format On Save๊ธฐ๋Šฅ ์ฒดํฌํ•ด์ œํ•˜๊ธฐ

Dev_Tool/VS Code 2024.12.02

[VS Code] ์ฝ”๋“œ ๊ธธ์ด ๊ฐ€์ด๋“œ์„  ํ‘œ์‹œํ•˜๊ธฐ

์ฝ”๋”ฉ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ์—๋”ฐ๋ผ ๋งž์ถฐ์„œ ์ž‘์—…์„ ํ•˜๊ฒ ์ง€๋งŒ๋‚˜๋Š” 1๋ผ์ธ์„ 79์ž๋ฅผ ์•ˆ๋„˜๊ธฐ๋„๋ก ํ•˜๋ ค๊ณ  ํ•œ๋‹คVS Code์—์„œ๋Š” ์„ค์ •๋œ ๊ธ€์ž์ˆ˜์˜ ๋ผ์ธ์„ ํ‘œ์‹œํ•ด์ค„ ์ˆ˜ ์žˆ๋‹ค1. File > Preferences > Settings (๋‹จ์ถ•ํ‚ค : Ctrl + , )2. ๊ฒ€์ƒ‰์ฐฝ์— ruler ์ž…๋ ฅํ›„ Edit in settings.json ํด๋ฆญํ•˜๊ธฐ3. editor.rulers ๋ฐฐ์—ด์•ˆ์— ๊ฐ€์ด๋“œ๋ผ์ธ์„ ํ‘œ์‹œํ•˜๊ณ ์‹ถ์€ ๊ธ€์ž์ˆ˜ ์ž…๋ ฅํ•˜๊ธฐ

Dev_Tool/VS Code 2024.12.02

[VS Code] Tabํ‚ค ๋„์–ด์“ฐ๊ธฐ ๊ธ€์ž์ˆ˜ ์„ค์ •ํ•˜๊ธฐ

์ฝ”๋”ฉ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ์—๋”ฐ๋ผ ๋งž์ถฐ์„œ ์ž‘์—…์„ ํ• ํ…Œ๊ณ VS Code ๊ธฐ๋ณธ๊ฐ’์ด Spsaces:4๋กœ ๋˜์–ด์žˆ๋Š”๋ฐ๋‚œ 2์นธ์œผ๋กœ ํ•˜๊ณ ์‹ถ๋‹คSpaces๊ฐ’ ๋ณ€๊ฒฝ์„ ์œ„ํ•ด์„œ ๋นจ๊ฐ„๋„ค๋ชจ๋ถ€๋ถ„์„ ํด๋ฆญํ•˜๋ฉด ์•„๋ž˜ํ™”๋ฉด์ด ๋œฐํ…๋ฐIndent Using Spaces๋ฅผ ํด๋ฆญํ•ด์ค€๋‹ค๊ทธ๋Ÿผ Spaces๊ฐ’์„ ์„ ํƒํ•˜๋Š” ํ™”๋ฉด์ด ๋‚˜์˜ค๋Š”๋ฐ๋‚˜๋Š” 2๋กœ ๋ณ€๊ฒฝํ• ๊ฒƒ์ด๊ธฐ๋•Œ๋ฌธ์— 2๋ฅผ ์„ ํƒํ•ด์ค€๋‹ค

Dev_Tool/VS Code 2024.12.02