feat: DataProperties
This commit is contained in:
parent
2f161d3481
commit
8d03c86c8f
5 changed files with 39 additions and 14 deletions
|
@ -2,8 +2,12 @@ package eu.ztsh.lfr;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties
|
||||
@ConfigurationPropertiesScan
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
8
src/main/java/eu/ztsh/lfr/config/DataProperties.java
Normal file
8
src/main/java/eu/ztsh/lfr/config/DataProperties.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package eu.ztsh.lfr.config;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties("data")
|
||||
public record DataProperties(String fileUrl) {
|
||||
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
data:
|
||||
file-url: data/temperatures.csv
|
Loading…
Add table
Add a link
Reference in a new issue