From 7feb5789d1eedd9e3b0ec88c5a8209e116e2b28e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Oct 2020 00:24:40 +0300 Subject: Clean up JDT warnings --- src/main/java/com/juick/www/api/apple/AppSiteAssociation.java | 4 ++++ src/main/resources/application.properties | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java b/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java index 2acd559e..c0827003 100644 --- a/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java +++ b/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java @@ -25,6 +25,8 @@ import org.springframework.web.bind.annotation.RestController; import java.util.Collections; import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + @RestController public class AppSiteAssociation { @Value("${ios_app_id:}") @@ -43,6 +45,7 @@ public class AppSiteAssociation { private class SiteAssociations { private WebCredentials webcredentials; + @JsonProperty public WebCredentials getWebcredentials() { return webcredentials; } @@ -55,6 +58,7 @@ public class AppSiteAssociation { private class WebCredentials { private List apps; + @JsonProperty public List getApps() { return apps; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 28ad8430..60bf2021 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,9 +1,8 @@ server.servlet.session.tracking-modes=cookie -spring.jackson.default-property-inclusion=non_default +spring.jackson.default-property-inclusion=non-default spring.jackson.serialization.write-dates-as-timestamps=false spring.jackson.serialization.write-empty-json-arrays=true spring.h2.console.enabled=true spring.datasource.generate-unique-name=false spring.datasource.platform=h2 -management.endpoints.web.exposure.include=* -management.security.roles=ROLE_ADMIN + -- cgit v1.2.3