From 8d8d8cdd639591c0c4c49b355db1152e310c22d6 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 27 Jan 2022 13:57:10 -0500 Subject: Revert to Java 11 and enable Lombok ext --- src/main/java/dev/submelon/pantry/PantryApplication.java | 6 ------ src/main/resources/application.properties | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/main/java/dev/submelon/pantry/PantryApplication.java b/src/main/java/dev/submelon/pantry/PantryApplication.java index 8bfcee5..0c2a5b5 100644 --- a/src/main/java/dev/submelon/pantry/PantryApplication.java +++ b/src/main/java/dev/submelon/pantry/PantryApplication.java @@ -2,18 +2,12 @@ package dev.submelon.pantry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication @RestController public class PantryApplication { - @RequestMapping("/") - public String home() { - return "Check this out: http://localhost:8080/items"; - } - public static void main(String[] args) { SpringApplication.run(PantryApplication.class, args); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index da7f829..dff3088 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -4,3 +4,4 @@ spring.datasource.driver-class-name=org.mariadb.jdbc.Driver spring.datasource.username=pantry-user spring.datasource.password=i2j9ds0g spring.jpa.show-sql=true +spring.jpa.open-in-view=true -- cgit