0.0.9:增加了nacos配置中心
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -10,7 +10,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>com.bamanker</groupId>
|
<groupId>com.bamanker</groupId>
|
||||||
<artifactId>dailyLove</artifactId>
|
<artifactId>dailyLove</artifactId>
|
||||||
<version>0.0.8</version>
|
<version>0.0.9</version>
|
||||||
<name>dailyLove</name>
|
<name>dailyLove</name>
|
||||||
<description>dailyLove</description>
|
<description>dailyLove</description>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package com.bamanker.dailylove.config;
|
package com.bamanker.dailylove.config;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
|
@RefreshScope
|
||||||
public class DailyLoveConfigure {
|
public class DailyLoveConfigure {
|
||||||
|
|
||||||
// public static String Access_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}";
|
// public static String Access_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}";
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ server:
|
|||||||
port: 13145
|
port: 13145
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: prob
|
||||||
application:
|
application:
|
||||||
name: dailyLove
|
name: dailyLove
|
||||||
cloud:
|
cloud:
|
||||||
|
|||||||
Reference in New Issue
Block a user