From 056dcb5b4fda70f963bfb392fcd2816170f2bc12 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 3 May 2022 14:58:42 +0430 Subject: added PUT, the CRUD is done now. just need to test the crud --- src/main/java/com/terminaldweller/doc/DocConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/terminaldweller/doc/DocConfig.java') diff --git a/src/main/java/com/terminaldweller/doc/DocConfig.java b/src/main/java/com/terminaldweller/doc/DocConfig.java index 1826817..b75b0d4 100644 --- a/src/main/java/com/terminaldweller/doc/DocConfig.java +++ b/src/main/java/com/terminaldweller/doc/DocConfig.java @@ -11,8 +11,8 @@ public class DocConfig { @Bean CommandLineRunner commandLineRunner(DocRepository repository) { return args -> { - Doc mydoc1 = new Doc("mydoc1", 0L); - Doc mydoc2 = new Doc("mydoc2", 0L); + Doc mydoc1 = new Doc("mydoc1", 0L, ""); + Doc mydoc2 = new Doc("mydoc2", 0L, ""); repository.saveAll(List.of(mydoc1, mydoc2)); }; -- cgit v1.2.3