์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 | 29 | 30 |
31 |
- ํ๋ก๊ทธ๋๋จธ์ค SQL
- js api
- ํ๋ก๊ทธ๋๋จธ์ค
- Spring Security
- ์ง ๊ตฌํ๊ธฐ
- Quick Sort
- java
- ๋ฐฑ๊ธฐ์ ์คํฐ๋
- HTTP ์๋ฒฝ ๊ฐ์ด๋
- HTTP ์๋ฒฝ๊ฐ์ด๋
- ๊น์ํ http
- ์๋ฃ๊ตฌ์กฐ
- REST API
- js array
- ๊น์ํ JPA
- ํจ์คํธ์บ ํผ์ค ์ปดํจํฐ๊ณตํ ์์ฃผ๋ฐ
- ์ดํํฐ๋ธ์๋ฐ ์คํฐ๋
- ์ดํํฐ๋ธ์๋ฐ ์์ดํ 59
- http
- ์ดํํฐ๋ธ์๋ฐ
- BOJ
- dreamcoding
- ๋๋ฆผ์ฝ๋ฉ
- ์ดํํฐ๋ธ์๋ฐ ์์ดํ 60
- js promise
- ๊ฐ์ ๋ฉด์ ์ฌ๋ก๋ก ๋ฐฐ์ฐ๋ ๋๊ท๋ชจ ์์คํ ์ค๊ณ ๊ธฐ์ด
- JPA ์ฐ๊ด๊ด๊ณ ๋งคํ
- ๋ฐฑ์ค
- JS ๋ฅ๋ค์ด๋ธ
- ๋ชจ๋์๋ฐ์คํฌ๋ฆฝํธ
- Today
- 0
- Total
- 11,277
๋ชฉ๋ก์ ์ฒด ๊ธ (436)
kingsubin

โป์ฐธ์กฐ Do it! ์๋ฃ๊ตฌ์กฐ์ ํจ๊ป ๋ฐฐ์ฐ๋ ์๊ณ ๋ฆฌ์ฆ ์ ๋ฌธ ๊ต์ฌ

1) ApplicationEvent ๋ฑ๋ก - ApplicationContext๋ฅผ ๋ง๋ค๊ธฐ ์ ์ ์ฌ์ฉํ๋ ๋ฆฌ์ค๋๋ @Bean์ผ๋ก ๋ฑ๋กํ ์ ์๋ค. - SpringApplication.addListners() 2) WebApplicationType ์ค์ 3) ์ ํ๋ฆฌ์ผ์ด์ ์๊ท๋จผํธ ์ฌ์ฉํ๊ธฐ - ApplicationArguments๋ฅผ ๋น์ผ๋ก ๋ฑ๋กํด ์ฃผ๋๊น ๊ฐ์ ธ๋ค ์ฐ๋ฉด ๋๋ค. 4) ์ ํ๋ฆฌ์ผ์ด์ ์คํํ ๋ค ๋ญ๊ฐ ์คํํ๊ณ ์ถ์๋ - ApplicationRunner (์ถ์ฒ) ๋๋ CommandLineRunner - ์์ ์ง์ ๊ฐ๋ฅ @Order (1) ApplicationContext๊ฐ ๋ง๋ค์ด์ง๊ธฐ ์ ์ ์์๋๋ ์ด๋ฒคํธ๋ ๋น์ผ๋ก ๋ฑ๋ก๋์ด์๋๋ผ๋ ์คํ๋์ง ์๋๋ค. ํด๊ฒฐ๋ฒ์ context์ ์ง์ listener๋ฅผ ์ถ๊ฐํด์ค๋ค. ..

์๋ฐ๋ ? Java๋ ์ฒ์๋ถํฐ ๊ฐ์ฒด ์งํฅ ์ธ์ด๋ก ๊ฐ๋ฐ๋ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์ด๋ค. ์๋ฐ๋ ์๋ฐ ๊ฐ์ ๋จธ์ (Java Virtual Machine)์ ์ฌ์ฉํ์ฌ, ์ด์์ฒด์ ์๋ ๋ ๋ฆฝ์ ์ผ๋ก ๋์ ๊ฐ๋ฅํ๋ค. ๋ฐ๋ผ์ ์๋ฐ๋ ์ด๋ ์ด์์ฒด์ ์์๋ ๊ฐ์ ํํ๋ก ์คํ ๊ฐ๋ฅํ๋ค. ์๋ฐ์ ํน์ง ์ฅ์ ) 1. ์ด์์ฒด์ ์๋ ๋ ๋ฆฝ์ ์ผ๋ก ์คํ ํ ์ ์๋ค. 2. ๋ถํ์ํ ๊ธฐ๋ฅ์ ์ ๊ฑฐํด ๋ค๋ฅธ ์ธ์ด์ ๋นํด ๋ฐฐ์ฐ๊ธฐ ์ฝ๋ค. 3. ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฑ์ ์ง์ํ์ฌ ์์ ์ฑ์ด ๋๋ค. 4. ์ฐ์ฐ์ ์ค๋ฒ๋ก๋ฉ์ ๊ธ์งํ๊ณ ์ ๋ค๋ฆญ์ ๋์ ํจ์ผ๋ก์จ ์ฝ๋์ ๊ฐ๋ ์ฑ ์์น ๋จ์ ) 1. ์คํ์ ์ํด์๋ JVM์ ๊ฑฐ์ณ์ผ ํ๋ฏ๋ก , ๋ค๋ฅธ ์ธ์ด์ ๋นํด ์คํ ์๋๊ฐ ๋๋ฆฌ๋ค. 2. ์์ธ ์ฒ๋ฆฌ๊ฐ ์ ๋์ด ์์ง๋ง, ๊ฐ๋ฐ์๊ฐ ์ผ์ผ์ด ์ฒ๋ฆฌ๋ฅผ ์ง์ ํด ์ค์ผ ํ๋ค๋ ๋ถํธํ๋ค. 3. ์ฝ๋์ ๊ธธ์ด..

- SpringApplication ์ ์คํ์ํค๋๋ฒ @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } -> static ๋ฉ์๋ ์ฌ์ฉ์ ์ปค์คํฐ๋ง์ด์ง ๋ถ๊ฐ๋ฅ @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication app = new SpringApplication(Application.class); app.run(); } } @SpringBootApplication pu..