记录一下:
@Component
@ConfigurationProperties(prefix = "xxx")
@ToString
@Data
public class AuthorityConfig {
/**
* 项目外部访问路径
*/
private String outAllPath;
}
配置文件bootstrap.yml中需要加
spring:
cloud:
nacos:
config:
shared-configs:
- data-id: bpm-common.yml
group: bpm
refresh: true