目录
一、编写nacos配置
1、在指定项目服务的nacos配置中心,选择该服务的配置文件
2、进入编辑,添加需要的配置
二、新建JAVA配置类
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("cjw
目录
1、在指定项目服务的nacos配置中心,选择该服务的配置文件
2、进入编辑,添加需要的配置
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("cjw