|
@@ -0,0 +1,26 @@
|
|
|
|
|
+package com.fs.nuonuo;
|
|
|
|
|
+
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
|
+
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
|
|
+
|
|
|
|
|
+@Component
|
|
|
|
|
+public class NuonuoInitConfig {
|
|
|
|
|
+
|
|
|
|
|
+ @Value("${nuonuo.key:10924508}")
|
|
|
|
|
+ private String key;
|
|
|
|
|
+
|
|
|
|
|
+ @Value("${nuonuo.secret:A2EB20764D304D16}")
|
|
|
|
|
+ private String secret;
|
|
|
|
|
+
|
|
|
|
|
+ @Value("${nuonuo.token:7c5d284cc10f344b8198bb02zvijkmcs}")
|
|
|
|
|
+ private String token;
|
|
|
|
|
+
|
|
|
|
|
+ @PostConstruct
|
|
|
|
|
+ public void init() {
|
|
|
|
|
+ NuonuoUtils.setKey(key);
|
|
|
|
|
+ NuonuoUtils.setSecret(secret);
|
|
|
|
|
+ NuonuoUtils.setToken(token);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|