From 2e0acea3b7ded9c68d8c0c5857eb3391268223cc Mon Sep 17 00:00:00 2001 From: yihui Date: Sun, 1 Aug 2021 10:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=85=8D=E7=BD=AE=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../java/com/git/hui/boot/properties/value/Application.java | 2 +- .../git/hui/boot/properties/value/config/SpelProperties.java | 2 +- .../value/config/dynamic/RefreshConfigProperties.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index b22d2f85..edfb1ffe 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,7 @@ Spring Snapshots https://repo.spring.io/libs-snapshot-local - true + false diff --git a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/Application.java b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/Application.java index 4cfb203d..5fc28723 100644 --- a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/Application.java +++ b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/Application.java @@ -1,6 +1,6 @@ package com.git.hui.boot.properties.value; -import com.alibaba.fastjson.JSONObject; + import com.git.hui.boot.properties.value.config.ConfigProperties; import com.git.hui.boot.properties.value.config.SpelProperties; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/SpelProperties.java b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/SpelProperties.java index 6935d395..cb9b9d95 100644 --- a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/SpelProperties.java +++ b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/SpelProperties.java @@ -62,7 +62,7 @@ public class SpelProperties { @Value("#{randomService.randUid()}") private String spelBeanMethod; - @Value("${¥{auth.jwt.token}}") + @Value("${¥{auth.jwt.token}}") private String selfProperty; public static String uuid(String prefix) { diff --git a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/dynamic/RefreshConfigProperties.java b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/dynamic/RefreshConfigProperties.java index 188a9257..b3493cd2 100644 --- a/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/dynamic/RefreshConfigProperties.java +++ b/spring-boot/002-properties-value/src/main/java/com/git/hui/boot/properties/value/config/dynamic/RefreshConfigProperties.java @@ -21,7 +21,7 @@ public class RefreshConfigProperties { @Value("${xhh.dynamic.age:18}") private Integer age; - @Value("${xhh.dynamic.other:test}") + @Value("hello ${xhh.dynamic.other:test}") private String other; }