작성
·
268
1
1. H2 Database 연결을 확인하자!
2. @EntityScan을 이용하자!
@SpringBootApplication
@EntityScan(basePackages = "jpabook.domain")
public class JpashopApplication {
public static void main(String[] args) {
Hello hello = new Hello();
hello.setData("hello");
String data = hello.getData();
System.out.println("data = " + data);
SpringApplication.run(JpashopApplication.class, args);
}
}