1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 10:38:19 +08:00

docs(sample): Add sample codes. 🥚

This commit is contained in:
2024-01-03 23:33:39 +08:00
parent 48050a52a2
commit 97db8204dc
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -62,6 +62,7 @@ public class Sample {
@HeaderComment("Configure your name!") // Header comment
ConfiguredValue<String> NAME = ConfiguredValue.of("Joker");
@ConfigPath("year") // Custom path
ConfiguredValue<Integer> AGE = ConfiguredValue.of(24);
}
@@ -89,7 +90,7 @@ enabled: true # Enabled?
info:
# Configure your name!
name: Joker
age: 24
year: 24
```
### Dependencies