skip to Main Content

Redis – Deserialize class with @AutoValue annotation during getting from cache in SpringBoot application

I've created a value class with com.google.auto.value.AutoValue annotation: @AutoValue @JsonDeserialize(builder = AutoValue_Company.Builder.class) public abstract class Company { public static Builder newBuilder() { return new AutoValue_Company.Builder(); } @JsonProperty("id") public abstract long id(); @JsonProperty("description") public abstract String description(); @JsonProperty("websiteUrl") public abstract String…

VIEW QUESTION

Set Java version on Linux Shell – CentOS

I am running the following script on Linux Centos 7. export JAVA_HOME=/usr/lib/jvm/jdk-14.0.2 echo $JAVA_HOME echo | java -version echo "maven build ..." mvn clean install -DskipTests -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 With this output: /usr/lib/jvm/jdk-14.0.2 java version "1.7.0_161" OpenJDK Runtime Environment (rhel-2.6.12.0.el7_4-x86_64 u161-b00) OpenJDK…

VIEW QUESTION
Back To Top
Search