๋ฐ์ํ ๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ60 IntelliJ ์ปคํผ์ ์์ด์ฝ ํด๊ฒฐ (ํ๋ก์ ํธ ์คํ ์๋จ) ๋งฅ๋ถ์ผ๋ก ๋ฐ๊พธ๊ณ ๋์.. ๋ค์ ์ธํ ๋ฆฌ์ ์ด ์ ๋ฃ๋ฒ์ ๋ค์ด๋ก๋ํด์ ์ฐ๋ ค๊ณ ํ๋๋ฐ๋ ๋ฑ์ฅํ ์ปคํผ์ ์์ด์ฝ JDK 24 ์ค์นํ๊ณ ..๋ญ๊ฐ ๋ฌธ์ ์ธ๊ฐ ์ถ์ด์ ์ฐพ์๋ณธ ๊ฒฐ๊ณผ src ์ฐํด๋ฆญ -> [Mark Directory as] -> [Source Root] ํ๋ฉด ๋ฉ๋๋ค ๋๋ค~ 2025. 9. 10. ๋งฅ๋ถ ๊นํ๋ธ ์ค์นํ๊ธฐ (Homebrew ์ค์น๋ถํฐ) ๋จผ์ homebrew ์ค์นํ๊ธฐ 1. https://git-scm.com/downloads/mac ์ ์ 2. homebrew ํด๋ฆญ 3. ์๋ ๋ช ๋ น์ด ๋ณต์ฌ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" **homebrew๋ฅผ ์ฐ๋ฉด MacOS์์ ์ด๊ฒ์ ๊ฒ ์ฝ๊ฒ ์ค์น ๊ฐ๋ฅํจ 4 -1. ๋งฅ๋ถ ํฐ๋ฏธ๋ ์ด๊ธฐ (F4 ํค ๋๋ฅด๋ฉด ๋จ๋ ์ฐฝ์ terminal ์ ๋ ฅ, ์ด๊ธฐ) 4-2. ํฐ๋ฏธ๋์ ์๊น ๋ณต์ฌํ ๋ช ๋ น์ด ์ ๋ ฅ ๋ช ๋ น์ด ์ ๋ ฅํ๊ณ password ์ ๋ ฅํ๋ผ๊ณ ๋จ๋๋ฐ ๋งฅ ๋น๋ฒ ์น๋ฉด ๋ฉ๋๋ค 5. ์ค์น ์ ๋๋์ง ์๋ ๋ช ๋ น์ด ์ณ์ ํ์ธbrew help ์ด๋ ๊ฒ ๋จ๋ฉด ์ค์น ์ ๋๊ฒ๋๋ค ์ด์ G.. 2025. 9. 10. [๋ฐฑ์ค, 11286๋ฒ] ์ ๋๊ฐ ํ ๊ตฌํํ๊ธฐ (JAVA) ์ฐ์ ์์ ํ๋ฅผ ์์์ผ ํ ์ ์๋ ๋ฌธ์ . ์๋ฃ๊ตฌ์กฐ ์ค๋๋ง์ ๋ณด๋ค๋ณด๋๊น ๊น๋จน์ด์ ์ฐ์ ์์ ํ ์ฌํ์น๋ฃํ๋๋ฐ ์๊ฐ์ด ์ข ๊ฑธ๋ ธ๋ค....์ด๋ค์์ผ๋ก ์ฐ์ ์์๋ฅผ ์ค์ง ์ปค์คํฐ๋ง์ด์ง(?) ํ ๋ค์ for๋ฌธ ๋๋ฉด์ ์กฐ๊ฑด์ ๋ง๊ฒ์ถ๋ ฅํ ๊ฑด ํ๊ณ , ๋ฃ์๊ฑด ๋ฃ๊ณ ~~public class ์ ๋๊ฐํ { public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(bf.readLine()); // ์ฐ์ ์์ ํ ์ ๋ ฌ ๊ธฐ์ค PriorityQueue myQueue .. 2025. 7. 18. [Java] StringBuffer๊ณผ BufferedWriter์ ์ฐจ์ด์ ์ฝ๋ฉํ ์คํธ ํ๋ค๋ณด๋๊น ์ฝ์์ ์ ์ถ๋ ฅํ๋ ์ฅ์น๋ค์ ๋ํด์ ์์ผ ๋ง์ด ๊น๋จน๊ณ ์์๋ค๋๊ฑธ ๋๋... ํนํ ์ ๋ ฅ๋ฐ์ ๋ BufferedReader + StringTokenizer ์กฐํฉ์ ๋ง์ด ์ผ๋๋ฐ,๋ง์ ์์ ์ถ๋ ฅํด์ผํ ๋StringBuffer๋ BufferedWriter๊ฐ ์ผํ๋ณด๋ฉด ๋น์ทํด๋ณด์ฌ์์ฐจ์ด์ ์ ๋ํด์ ๊ณต๋ถํด๋ด. 1. StringBufferStringBuffer๋ ์ฃผ ๋ชฉ์ ์ด ๋ฌธ์์ด์ ๋ชจ์ผ๋๊ฒ์ ์์.์ด๋์? ๋ฉ๋ชจ๋ฆฌ์.๋ฌธ์์ด์ ๋ฉ๋ชจ๋ฆฌ์ ๋์ ์ํค๋ ๊ฐ์ฒด์.append()ํด์ ๋ฌธ์์ด๋ค์ ๋ชจ์์, ์ถ๋ ฅ์ System.out.print()๋ก ํจ. ๋ฌธ์์ด์ ๋ง์ด ์กฐํฉํด์ผ๋ ๋ ์ฐ๊ธฐ ์ฉ์ดํจ.StringBuffer sb = new StringBuffer();sb.append("Hello").append(" ").a.. 2025. 7. 11. IntelliJ ์๋์์ฑ ๊ธฐ๋ฅ ๋๊ธฐ ์ฝ๋ฉํ ์คํธ ์ค๋น์ค์ด๋ผ ์๋์์ฑ ๊ธฐ๋ฅ์ ๋๋ฌผ์ ๋จธ๊ธ๊ณ ๋๊ธฐ๋ก ํ๋ค.. 1. [File - Settings] ํด๋ฆญ( Mac์์๋ IntelliJ IDEA > Preferences ) 2. [Editor - General - Code Completion] ํด๋ฆญ 3. "Show suggestions as you type" ์ฒดํฌ๋ฐ์ค ํด์ ํ๊ธฐ 4. [Apply - OK] ํด๋ฆญ ๊ทธ๋ผ ์ด์ ์๋์์ฑ ๊ธฐ๋ฅ ๊บผ์ง๋๋ค~~ ++์ถ๊ฐ๊ทธ๋๋ ๋จ๊ธธ๋ [Settings - Editor - Inline Completion] ์์ completion suggestionsํญ๋ชฉ๋ค์์์ฐ๊ณ ์๋ ์ธ์ด ์ฒดํฌ๋ฐ์ค ํด์ ํ๋ฉด๋จ. ๋ ์๋ฐ๊ณต๋ถ ์ค์ด๋ผ ์๋ฐ๋ง ํด์ ํจ. ์ด์ ์๋ธ~!!! ๊ทธ๋ฅ ๊ฐ๋ฐํ ๋๋ ์ฐธ ํธํ๋๋ฐ....์ฝ๋ฉํ ์คํธ ํ ๋๋งํผ์ ๊บผ์ผํ๋๊น.. 2025. 7. 9. [Git] ์๊ฒฉ ์ ์ฅ์์ ์๋ ํด๋ ์ญ์ ํ๊ณ ๋ฐ์ํ๊ธฐ ์๊ฒฉ ์ ์ฅ์์ ์ฌ๋ฆฌ๋ฉด ์๋๋ ํด๋๊ฐ ์ฌ๋ผ๊ฐ์ ๋ฐ์์ด ๋์ด๋ฒ๋ฆผ.์ญ์ ํ๋ ๋ฐฉ๋ฒ์ผ๋ก๋ํฌ๊ฒ 2๊ฐ์ง๊ฐ ์์ 1. commit ๋๋๋ ค์ ๋ค์ ๋ฐ์ํ๊ณ pushํ๊ธฐ2. ๊ทธ๋ฅ ํด๋ ์ญ์ ํ๊ณ pushํ๊ธฐ ๋ 2๋ฒ ๋ฐฉ๋ฒ ์ ํํ์. ๋ช ๋ น์ด๋// ์๊ฒฉ์ ์ฅ์์ ์๋ ํด๋๋ง ์ ๊ฑฐ. ๋ก์ปฌ์๋ ๋จ์git rm -r --cached [ํด๋์ด๋ฆ] **์ฃผ์์ฌํญ๊ฒฝ๋ก ์ ์จ์ผ๋จ. ์ญ์ ํ๊ณ , ์ปค๋ฐํ๊ณ , pushํ๋ฉด์๊ฒฉ ๋ค์ ๊น๋ํด์ง 2025. 7. 1. [JUnit] does not declare any static, non-private, non-final, nested classes annotated with @Configuration ์๋ฌ ํด๊ฒฐ JUnit ํ ์คํธ ์ฝ๋ ๋๋ฆฌ๋ค๊ฐ does not declare any static, non-private, non-final, nested classes annotated with @Configuration.๋ผ๊ณ ์๋ฌ๊ฐ ๋์ค๋ฉด์ ์คํ์ด ์๋จ @SpringBootTest ์๋์@ContextConfiguration(classes = SpringBootApplication.class) ๋ถ์ฌ์ ํด๊ฒฐํจ ๊ธฐ์กด์๋ ๋ณ๋๋ก ์ด๋ค ์ค์ ํด๋์ค๋ฅผ ์ธ์ง ๋ช ์๋ฅผ ์ํด๋์ ์คํ๋ง์ด ์ฐพ์ผ๋ ค๊ณ ์๋ํ๋ ค๋ค๊ฐ ๋ชป์ฐพ์๊ฑฐ์. ๊ทผ๋ฐ @ContextConfiguration(classes = BlogApplication.class) ๋ผ๊ณ ์จ์ค์ผ๋ก์จ์ง์ ๋ช ์๋ก ๋ฎ์ด์ค๊ฒ. 2025. 5. 28. [OAuth2] OAuth2 ๋ก๊ทธ์ธ ํ SuccessHandler ๊ตฌํ @RequiredArgsConstructor@Componentpublic class OAuth2SuccessHandler extends SimpleUrlAuthenticationSuccessHandler { public static final String REFRESH_TOKEN_COOKIE_NAME = "refresh_token"; public static final Duration REFRESH_TOKEN_DURATION = Duration.ofDays(14); public static final Duration ACCESS_TOKEN_DURATION = Duration.ofDays(1); public static final String REDIRECT_PATH = "/artic.. 2025. 5. 17. [OAuth2] ๋ด๊ฐ ๋ณด๋ ค๊ณ ๋ง๋ OAuth2 ํ๋ฆ ์ ๋ฆฌ ์๊ฐ ์์๋๋ก [1] ํด๋ผ์ด์ธํธ๊ฐ ๋ก๊ทธ์ธ ๋ฒํผ ํด๋ฆญ -> ์๋ฒ ์์ฒญ GET /oauth2/authorization/kakao Spring Security๊ฐ ํํฐ ์ฒด์ธ์์ ์ฒ๋ฆฌ,OAuth2AuthorizationrequestRedirectorFilter๊ฐ ๋์ [2] ์๋ฒ : OAuth2AuthorizationRequest ๊ฐ์ฒด ์์ฑOAuth2AuthorizationRequest authorizationRequest = OAuth2AuthorizationRequest .authorizationCode() .clientId("KAKAO_CLIENT_ID") .authorizationUri("https://kauth.kakao.com/oauth/authorize") .redirectUr.. 2025. 5. 16. ์ด์ 1 2 3 4 5 ยทยทยท 7 ๋ค์ ๋ฐ์ํ