Skip to content

Commit

Permalink
动态配置刷新
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyueyi committed Aug 1, 2021
1 parent 6ef9b05 commit 2e0acea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

0 comments on commit 2e0acea

Please sign in to comment.