0.0.9:增加了nacos配置中心
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -10,7 +10,7 @@
|
||||
</parent>
|
||||
<groupId>com.bamanker</groupId>
|
||||
<artifactId>dailyLove</artifactId>
|
||||
<version>0.0.8</version>
|
||||
<version>0.0.9</version>
|
||||
<name>dailyLove</name>
|
||||
<description>dailyLove</description>
|
||||
<properties>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package com.bamanker.dailylove.config;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@RefreshScope
|
||||
public class DailyLoveConfigure {
|
||||
|
||||
// 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
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
active: prob
|
||||
application:
|
||||
name: dailyLove
|
||||
cloud:
|
||||
|
||||
Reference in New Issue
Block a user