@Component 해당 클래스를 스프링에게 자바 빈으로 등록하라고 알려주는 것 @Service, @Controller, @Repository 등에는 그 안에 포함되어 있음 @ComponentScan이 있어야 스캔할 수 있다. ( @SpringBootApplicat
@RestController // = @ResponseBody + @Controller@RequestMapping("test")public class TestController {// return ResponseEntity.badRequest().body(
JPA는 스펙이다. ‘JPA의 구현을 위해 이런 기능들을 작성해라’ 라고 되어 있고, 명시한대로 작성 후 나머지 내부의 세부 구현은 구현자의 마음이다.이 스펙을 구현하는 구현자를 JPA Provider라고 부르며, 대표로 Hibernate가 있다.SpringDataJP
스프링 부트는 기본적인 테스트 스타터 spring-boot-starter-test 를 제공. 크게 2가지 모듈.spring-boot-test : Test 실행 관련 기능spring-boot-test-autoconfiguration : 관련 Test 자동 설정 기능이 장
MariaDB의 isolation level 기본값은 Repetable Read이므로 Select 로직이 내 생각과 다를 수 있구나