본문 바로가기

전체 글

(291)
[Java] try-with-resources https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html The try-with-resources Statement (The Java™ Tutorials > Essential Java Classes > Exceptions) The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Languag..
[Spring Reading Code] @ControllerAdvice /* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distribut..
[Spring Framework Core] 4.3. Language Reference (3) https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#expressions-operator-ternary Core Technologies In the preceding scenario, using @Autowired works well and provides the desired modularity, but determining exactly where the autowired bean definitions are declared is still somewhat ambiguous. For example, as a developer looking at ServiceConfig, how do docs.spring.io 틀린..
[ChatGPT] 코드 짜달라고 했더니 어마어마하다 😂 Q. 간단한 erd를 만들어줄 수 있어? 회원가입을 하고 게시판을 쓸 수 있고, 아이템을 올릴 수 있는 식의 어플리케이션을 만들고 싶어 A. 회원가입을 위한 ERD 요소: 사용자(User) 테이블: 회원 정보(이름, 이메일, 비밀번호 등)를 담고 있는 테이블 회원 가입(Log In) 테이블: 사용자가 회원 가입 시 입력한 정보를 담고 있는 테이블 게시판을 위한 ERD 요소: 게시판(Board) 테이블: 게시판 정보(제목, 내용, 작성자, 작성일 등)를 담고 있는 테이블 댓글(Comment) 테이블: 게시글에 대한 댓글 정보(내용, 작성자, 작성일 등)를 담고 있는 테이블 아이템 등록을 위한 ERD 요소: 아이템(Item) 테이블: 아이템 정보(이름, 설명, 가격 등)를 담고 있는 테이블 주문(Order)..
[IntelliJ] 유용한 디버깅 단축키 정리 MAC ⌨️ https://yeonyeon.tistory.com/239 [IntelliJ] 편하게 디버깅하기 😊 서론 원래는 System.out.println()을 찍어가며 디버깅을 했었다. 좋지 않은 습관임은 알았지만 다른 공부할게 너무 많아서 우선순위가 뒤로 밀려났다. 이전 미션에서 페어 프로그래밍을 진행하며 yeonyeon.tistory.com https://smpark1020.tistory.com/423 [IntelliJ] 자주쓰는 단축키(Mac) 자주쓰는 단축키 파일 찾기: Command + Shift + O 클릭한 메서드로 이동: Command + 클릭 이전/다음 시점으로 이동: Command + Option + 화살표(좌, 우) 단어 단위 이동: Option + 화살표(좌, 우) 파라미터 변수 확 smp..
[Spring Framework Core] 4.3. Language Reference (2) public abstract class StringUtils { public static String reverseString(String input) { StringBuilder backwards = new StringBuilder(input.length()); for (int i = 0; i < input.length(); i++) { backwards.append(input.charAt(input.length() - 1 - i)); } return backwards.toString(); } } https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#expressions-operators Core Technologie..
[Spring Reading Code] ErrorController.java 좋은 코드 읽어보기!! 보면서 어떻게 썼는지, 어떻게 만들어졌는지 분석하면 스스로 좋은 코드를 쓰는 법이 자연스럽게 생길 것 같아 꾸준히 해보려고 한다 오늘 파헤쳐볼 코드는 ErrorController 인터페이스이며, 에러가 났을때 페이지를 구현 할 수 있도록 해준다 내가 자체적으로 에러페이지를 구현하고 싶을 때 쓰는 거고 썸네일에도 보면 예외처리에 대한 에러페이지를 따로 구현 하고 싶어서 사용했다 /* * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance..
[Spring Framework Core] 4.3. Language Reference (1) https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#expressions-language-ref Core Technologies In the preceding scenario, using @Autowired works well and provides the desired modularity, but determining exactly where the autowired bean definitions are declared is still somewhat ambiguous. For example, as a developer looking at ServiceConfig, how do docs.spring.io 잘못된 내용..

728x90