๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

๊ฐœ๋ฐœ93

[Intellij] ๋‹จ์ถ•ํ‚ค๋ฅผ sts, eclipse์™€ ๋™์ผํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜๊ธฐ STS, Eclipse๋งŒ ์‚ฌ์šฉํ•˜๋‹ค ์ธํ…”๋ฆฌ์ œ์ด๋ฅผ ์ฒ˜์Œ ์‚ฌ์šฉํ•ด๋ณด๋‹ˆ ๋‹จ์ถ•ํ‚ค๊ฐ€ ๋‹ฌ๋ผ ์–ด์ƒ‰ํ–ˆ๋‹ค ๊ทผ๋ฐ ์ธํ…”๋ฆฌ์ œ์ด์— eclipse์˜ ๋‹จ์ถ•ํ‚ค์™€ ๋˜‘๊ฐ™์ด ์„ค์ •ํ•˜๋Š” ๊ธฐ๋Šฅ์ด ์žˆ์—ˆ๋‹ค. File > Settings ์—์„œ Keymap ์„ค์ • 2021. 11. 30.
[intellij] html, jsp, css, javascript.. Live reload(์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜, ์ƒˆ๋กœ๊ณ ์นจ)์ ์šฉํ•˜๊ธฐ Update Policies ์ •์ฑ…์œผ๋กœ ์ธํ•ด ์—…๋ฐ์ดํŠธ๊ฐ€ ๋ฐ”๋กœ ์ ์šฉ ์•ˆ๋จ.. ํ”„๋กœ์ ํŠธ๋ฅผ ์ˆ˜์ •์‚ฌํ•ญ์„ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด ์žฌ์‹œ์ž‘์„ ํ•˜๋Š”๊ฒŒ ๋„ˆ๋ฌด ๋ฒˆ๊ฑฐ๋กœ์›Œ ์„œ์น˜ํ•ด๋ด„.. ์•„๋ž˜์™€ ๊ฐ™์ด ์ ์šฉํ•˜๋ฉด ์žฌ์‹œ์ž‘ํ•˜์ง€ ์•Š์•„๋„ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ฐ˜์˜๋œ๋‹ค! Run > EditConfiguration : Running Application Update Policies ํ•„๋“œ๊ฐ’ ๋ณ€๊ฒฝ On 'Update' action = Update trigger file On frame deactivation = Update resources Dependency ์ถ”๊ฐ€ compile 'org.springframework.boot:spring-boot-devtools'โ€‹ ์„ค์ • ํŒŒ์ผ(application.xml) ์ ์šฉํ•˜๊ธฐ spring.thymeleaf.cache=false.. 2021. 11. 30.
[Intellij] ํ”„๋กœ์ ํŠธ import ์—๋Ÿฌ svn์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋‚ด๋ ค๋ฐ›์•˜๋”๋‹ˆ ์—๋Ÿฌ๊ฐ€ ์ฃผ๋ฅด๋ฅต ๋–ด๋‹ค. ๊ฐ™์€ ํ”„๋กœ์ ํŠธ ๋‚ด์˜ class ํŒŒ์ผ ์ž์ฒด๋„ ์ธ์‹์ด ์•ˆ๋˜๋Š” ๊ฑด์ง€.. import ๋ถ€๋ถ„์— ์—๋Ÿฌ ํˆฌ์„ฑ์ด.. mvn ํ”„๋กœ์ ํŠธ๋„, gradle ํ”„๋กœ์ ํŠธ๋„ ์•„๋‹ˆ๋ผ ํ‰์†Œ์— ํ•˜๋˜ clean, install, build ๋“ฑ๋„ ๋ชปํ•˜๋Š” ์ƒํ™ฉ ์ฐพ์•„๋ณด๋‹ˆ๊นŒ ์ธํ…”๋ฆฌ์ œ์ด์˜ Build > Build Project ๊ฐ€ ์žˆ์—ˆ๋‹ค Build Project ํ•˜๊ณ  ๋‚˜๋‹ˆ ์—๋Ÿฌ๊ฐ€ ๋ง๋”ํžˆ ์‚ฌ๋ผ์ง! ์œ„ ๋ฐฉ๋ฒ•์œผ๋กœ ์•ˆ๋˜๋ฉด .idea ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค ์ง€์šฐ๊ณ  ๋‹ค์‹œ ํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ๋”๋ผ 2021. 11. 30.
[Intellij] Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1 ์ธํ…”๋ฆฌ์ œ์ด์—์„œ yml ํŒŒ์ผ์— ํ•œ๊ธ€ ์ฃผ์„์ด ์žˆ์„ ๊ฒฝ์šฐ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ 1. ํŒŒ์ผ ์œ„์น˜ : C:/Program Files/JetBrains/IntelliJ IDEA 2021.1.2/bin/idea64.exe.vmoptions -Dfile.encoding=UTF-8 ์ถ”๊ฐ€ -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -ea -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSche.. 2021. 11. 30.
[JPA] @OneToMany - ์ž์‹ ํ…Œ์ด๋ธ”(๊ด€๊ณ„ Entity)์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒํ™ฉ์— ๋”ฐ๋ผ ๊ฐ€์ ธ์˜ค๊ธฐ JPA๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค ๋ณด๋ฉด LAZY ํŒจ์น˜ํƒ€์ž…์œผ๋กœ relation์ด ๋‹ฌ๋ ค ์žˆ๋Š” ์—”ํ‹ฐํ‹ฐ๋ฅผ ์กฐํšŒํ•  ๋•Œ n+1 ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ์ด๋Ÿด ๋•Œ๋Š” @EntityGrapth๋งŒ ๋‹ฌ์•„์ฃผ๋ฉด joinํ•˜์—ฌ ํ•œ๋ฒˆ์— selectํ•  ์ˆ˜ ์žˆ๋‹ค. ์•„๋ž˜๋Š” ์˜ˆ์‹œ์ด๋‹ค. Product ํ…Œ์ด๋ธ”๊ณผ Sample ํ…Œ์ด๋ธ”์€ 1:N ๊ด€๊ณ„์ด๋‹ค. ๋”ฐ๋ผ์„œ sampleList์— @OneToMany ์–ด๋…ธํ…Œ์ด์…˜์„ ์„ค์ •ํ•ด์ฃผ์—ˆ๋‹ค. (๋ฐ˜๋Œ€๋กœ Sample ์—”ํ‹ฐํ‹ฐ์— Product๋ฅผ @ManyToOne ์„ค์ •ํ•ด์ฃผ์–ด๋„ ๋œ๋‹ค) @Entity @ToString @Table(name = "PRODUCT") public class Product{ @Id @Column(name = "PRODUCT_ID", columnDefinition ="VARCHAR(36)") private .. 2021. 11. 26.
728x90
๋ฐ˜์‘ํ˜•