mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-09 10:21:38 +08:00
修改配置文件加载方式
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user