0.0.9:增加了nacos配置中心

This commit is contained in:
bamanker
2023-01-20 11:35:57 +08:00
parent 32f175ef40
commit 648857bfb4
3 changed files with 5 additions and 1 deletions

View File

@@ -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>

View File

@@ -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}";

View File

@@ -2,6 +2,8 @@ server:
port: 13145 port: 13145
spring: spring:
profiles:
active: prob
application: application:
name: dailyLove name: dailyLove
cloud: cloud: