|
@@ -0,0 +1,36 @@
|
|
|
+package com.ruoyi.common.config;
|
|
|
+
|
|
|
+import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 读取项目相关配置
|
|
|
+ *
|
|
|
+ * @author ruoyi
|
|
|
+ */
|
|
|
+@Component
|
|
|
+@ConfigurationProperties(prefix = "wx-app")
|
|
|
+public class WxAppConfig {
|
|
|
+
|
|
|
+ /** AppId */
|
|
|
+ private String appId;
|
|
|
+
|
|
|
+ /** AppSecret */
|
|
|
+ private String appSecret;
|
|
|
+
|
|
|
+ public String getAppId() {
|
|
|
+ return appId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAppId(String appId) {
|
|
|
+ this.appId = appId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAppSecret() {
|
|
|
+ return appSecret;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAppSecret(String appSecret) {
|
|
|
+ this.appSecret = appSecret;
|
|
|
+ }
|
|
|
+}
|