-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: @Value->@ConfigurationProperties
- Loading branch information
Showing
3 changed files
with
23 additions
and
32 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
src/main/java/com/splanet/splanet/config/OpenAIConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/splanet/splanet/gpt/OpenAiProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.splanet.splanet.gpt; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Getter | ||
@Setter | ||
@ConfigurationProperties(prefix = "gpt-api-key") | ||
@Configuration | ||
public class OpenAiProperties { | ||
private String apiKey; | ||
} |