@Entity
public class Item{
@Id
@GenereatedValue(strategy = GenerateType.AUTO)
Private Long id;
Private String name
Private Long description;
}
public interface ItemRepository extends CrudReository<Item,Long>
{
}
logging.level.org.springframework:DEBUG
# H2
spring.h2.console.enabled=true
spring.h2.console.path=/h2
spring.datasource.url= jdbc:h2:mem:items
localhost:8080/items
spring boot starter web
spring boot starter test
spring boot starter jpa
h2 database
spring boot starter rest