import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
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;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Component
@PropertySource("classpath:propertyConf.yml")
@ConfigurationProperties(prefix = "message")
public class MessageIpConf {
@Value("${accessToken}")
private String accessToken;
}
message:
accessToken: xxxxxxxxxxxxxxxxx