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

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

View File

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