1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-09 10:21:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

修改配置文件加载方式

This commit is contained in:
2022-04-04 10:55:15 +08:00
parent 3497772ea7
commit 3af1b80d2a
4 changed files with 45 additions and 20 deletions

View File

@@ -2,13 +2,9 @@ package plus.bookshelf.Common.ThirdParty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "thirdparty")
@PropertySource("thirdparty.properties")
@Data
public class ThirdPartyConfig {