> For the complete documentation index, see [llms.txt](https://xdpxi.gitbook.io/xdlib-4.x.x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xdpxi.gitbook.io/xdlib-4.x.x/config/config-setup.md).

# Config Setup

### Creating the config

To create your config create a new class and add the following code

```java
import dev.xdpxi.xdlib.api.v4.Config;

@Config.Setup(name = "Example Config", file = "config/example_config.json")
public class ExampleConfig implements Config.Configuration {
    public static int exampleInt = 42;
    
    public static boolean exampleBoolean = true;
    
    public static String exampleString = "Default Value";
    
    public static int advancedSetting = 100;
}
```

Once you have added that then add the following to your main class

```java
Config.ConfigLoader.loadConfig(ExampleConfig.class);
```
