๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Java19

[intellij]๊ธฐ์–ตํ•˜๊ณ  ์‹ถ์€ ๋‹จ์ถ•ํ‚ค (Mac) ๐Ÿ’ก ์ž๋™ ์ž„ํฌํŠธ(Auto Import) : Opt+Enter ๐Ÿ’ก ํ€ต ํ”ฝ์Šค ์ œ์•ˆ : Opt+Enter ๐Ÿ’ก ์ž๋™์œผ๋กœ ๋’ท๋ฌธ์žฅ ์™„์„ฑ ์‹œํ‚ค๊ณ  ๋‹ค์Œ์ค„๋กœ ๋„˜์–ด๊ฐ€๊ธฐ : Command+Shift+Enter ๐Ÿ’ก ๋ณต๋ถ™ํ•˜๊ณ  ์‹ถ์€ ๋ถ€๋ถ„ ๋“œ๋ž˜๊ทธํ•ด์„œ ๊ทธ ๋ฐ‘์— ๋˜‘๊ฐ™์ด ๋ณต๋ถ™ํ•˜๊ธฐ : command + D ๐Ÿ’ก ํ•จ์ˆ˜๋กœ ๋งŒ๋“ค๊ณ  ์‹ถ์€๋ถ€๋ถ„ ๋“œ๋ž˜๊ทธํ•ด์„œ ํ•จ์ˆ˜๋กœ ์ถ”์ถœํ•˜๊ธฐ : ^ + T ํ•˜๊ณ  Extract method์„ ํƒ ๐Ÿ’ก ํŒŒ๋ผ๋ฏธํ„ฐ ์ •๋ณด ๋ณด๊ธฐ : command + P ๐Ÿ’ก Generate : command + N (aka.getter and setter ๋‹จ์ถ•ํ‚ค, ์ƒ์„ฑ์ž ์ƒ์„ฑ, toString() ์ƒ์„ฑ) ๐Ÿ’ก inline Variable : command + option + N (aka.๋ฐ˜ํ™˜ํ•  ๋ณ€์ˆ˜์— ๋‘๊ณ  ๋ˆ„๋ฅด๋ฉด Return์— ํ•œ์ค„๋กœ ๋งŒ๋“ค์–ด์คŒ) ๐Ÿ’ก ๋ณ€์ˆ˜ .. 2023. 7. 3.
Spring - ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ ํ„ฐ๋ฏธ๋„๋กœ ์ด๋™ 1. ./gradlew build 2. cd build/libs 3. java -jar hello-spring-0.0.1-SNAPSHOT.jar 4. ์‹คํ–‰ ํ™•์ธ 2023. 7. 3.
Spring - ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ start springboot ๋ฅผ ์ด์šฉํ•˜์—ฌ ์ดˆ๊ธฐ ์Šคํ”„๋ง ํ”„๋กœ์ ํŠธ ์ƒ์„ฑํ•œ๋‹ค. https://start.spring.io/ ์ดˆ๊ธฐ build.gradle์˜ ์ƒํƒœ๋Š” ์ด๋Ÿฌํ•˜๋‹ค. plugins { id 'java' id 'war' id 'org.springframework.boot' version '3.0.5' id 'io.spring.dependency-management' version '1.1.0' } group = 'hello' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-star.. 2023. 7. 3.