전체 글 (291) 썸네일형 리스트형 [Spring Junit Test] 2.5. Assertions https://junit.org/junit5/docs/current/user-guide/#writing-tests-assertions 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 틀린 해석이 있다면 알려주세요 🐰 All JUnit Jupiter .. [Spring Junit Test] 2.1. Annotation https://junit.org/junit5/docs/current/user-guide/#writing-tests 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 잘못된 해석이 있다면 알려주세요 ⌚️ Annotations 주석설명 JUnit Jupi.. [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 잘못된 내용이 있다면 알려.. MySQL 데이터베이스 스키마/테이블/컬럼 네이밍 설계 규칙 1. 소문자로 작성 MySQL에서는 대소문자를 구분하지 않습니다. 따라서 MySQL에서는 모든 스키마/테이블/컬럼 이름을 소문자로 작성하는 것이 일반적입니다. 2. 언더스코어(_)로 단어 구분 MySQL에서는 공백 대신 언더스코어(_)를 사용하여 단어를 구분하는 것이 일반적입니다. 예를 들어, "customer_order"와 같은 이름을 사용합니다. 3. 명사 사용 테이블 이름은 일반적으로 단수 명사를 사용합니다. 예를 들어, "customer"와 같은 이름을 사용합니다. 4. 접두사 사용 MySQL에서는 하나의 데이터베이스에서 여러 애플리케이션이 동작할 수 있기 때문에 테이블 이름 앞에 애플리케이션 접두사를 추가하는 것이 일반적입니다. 예를 들어, "app_customer"와 같은 이름을 사용합니다. .. [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 틀린 해석이 있다면 알려주세용 🍟 .. [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.. [Spring] JAR / WAR 둘다 자바 클래스 확장자로 이를 압축하여 배포할 때 쓴다 jar 는 클라우드 플랫폼 구성 시 적합한 선택이다 일부 클라우드 플랫폼에서 war가 가능하긴 하지만, JAR는 모두 가능하다 JRE or JDK 환경에서 JAR 파일을 실행하고 있으며 스프링부트 자체에 내장 톰캣이 있기에 JAR 배포만으로 실행이 가능하다 근데 JSP 사용을 못함 -> 스프링부트는 JSP를 추천하지않는다 war는 기존 자바 애플리케이션 배포 방식이다 웹 초기 설정 클래스에 포함시켜서 사용하고 Servlet / Jsp 컨테이너에 배치할 수 있는 웹 어플리케이션 압축파일 Servlet Context 관련 파일들이 패키징 되어있으며, 웹 컨테이너의 구조에 맞추어 실행된다 클라우드 환경 - JAR 웹 어플리케이션 전용 - WAR (웹 사.. [error] Spring Boot jUnit Test : JPA metamodel must not be empty! TDD 테스트 시 JPA를 사용한 Auditing 클래스 (@EnableJpaAuditing) 을 @SpringBootApplication에 등록했을 시에 나타나는 오류 @Configuration @EnableJpaAuditing public class JpaAuditingConfiguration { } 이렇게 따로 분리해주거나 @MockBean 에 따로 추가하는 방법이 있다 이전 1 ··· 18 19 20 21 22 23 24 ··· 37 다음