전체 글 335

[Java] this

https://www.baeldung.com/java-this this 는 method가 호출되는 현재 객체에 대한 참조이다 이 this는 자주 쓰면서도 정확한 개념을 모르는 경우가 많다 Disambiguating Field Shadowing instance 변수와 로컬 매개변수를 구분할때 유용하다 인스턴스 필드와 이름이 같은 생성자 매개변수가 있을 때 매개변수와 구분하기 위해 this를 사용한다 public class KeywordTest { private String name; private int age; public KeywordTest(String name, int age) { this.name = name; this.age = age; } } Referencing Constructors of ..

Web/JAVA 2023.03.22

[Spring Junit Test] 2.11. Test Instance Lifecycle

https://junit.org/junit5/docs/current/user-guide/#writing-tests-test-instance-lifecycle JUnit 5 User Guide Although the JUnit Jupiter programming model and extension model do not support JUnit 4 features such as Rules and Runners natively, it is not expected that source code maintainers will need to update all of their existing tests, test extensions, and custo junit.org 잘못된 해석이 있다면 알려주세요 🐥 2.11..

Web/spring 2023.03.21

[Spring Batch] Configuring and Running a Job - (6) Advanced Metadata Usage

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#advancedMetaData Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 잘못된 내용이 있다면 알려..

Web/spring 2023.03.19

MySQL 데이터베이스 스키마/테이블/컬럼 네이밍 설계 규칙

1. 소문자로 작성 MySQL에서는 대소문자를 구분하지 않습니다. 따라서 MySQL에서는 모든 스키마/테이블/컬럼 이름을 소문자로 작성하는 것이 일반적입니다. 2. 언더스코어(_)로 단어 구분 MySQL에서는 공백 대신 언더스코어(_)를 사용하여 단어를 구분하는 것이 일반적입니다. 예를 들어, "customer_order"와 같은 이름을 사용합니다. 3. 명사 사용 테이블 이름은 일반적으로 단수 명사를 사용합니다. 예를 들어, "customer"와 같은 이름을 사용합니다. 4. 접두사 사용 MySQL에서는 하나의 데이터베이스에서 여러 애플리케이션이 동작할 수 있기 때문에 테이블 이름 앞에 애플리케이션 접두사를 추가하는 것이 일반적입니다. 예를 들어, "app_customer"와 같은 이름을 사용합니다. ..

Web/DB 2023.03.19

[Spring Batch] Configuring and Running a Job - (5) Running a Job

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#runningAJob Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 틀린 해석이 있다면 알려주세용 🍟 ..

Web/spring 2023.03.19

[Spring Http API Test] 테스트환경 만들기

[ IntelliJ ] HttpRequest 파일 생성 예제 확인하기 이런 식으로 예제 확인이 가능하다 이걸 보고 필요한거 추가하믄 됨 ### GET request with a header GET https://httpbin.org/ip Accept: application/json ### GET request with parameter GET https://httpbin.org/get?show_env=1 Accept: application/json ### GET request with environment variables GET {{host}}/get?show_env={{show_env}} Accept: application/json ### GET request with disabled redirect..

Web/HTTP 2023.03.19
728x90