@Import(MemoryConfig.class)
@SpringBootApplication(scanBasePackages = "hello.itemservice.web")
public class ItemServiceApplication {
public static void main(String[] args) {
SpringApplication.run(ItemServiceApplication.class, args);
}
@Bean
@Profile("local")
public TestDataInit testDa
taInit(ItemRepository itemRepository) {
return new TestDataInit(itemRepository);
}
}
https://docs.spring.io/spring-boot/reference/features/profiles.html#features.profiles
테이블의 기본 키를 선택하는 전략은 크게 2가지가 있다
스읍.. 정리할 필요가? mybatis 를 정리하는 편이 좋겠다.