package team.unstudio.udpl.example;

import java.io.File;

import team.unstudio.udpl.config.ConfigurationHandler;
import team.unstudio.udpl.config.serialization.Setting;

public class ExampleConfig extends ConfigurationHandler{
	
	@Setting("text") // 配置文件的键
	public String example;
	
	// 如果没有@Setting注解，就将字段名作为配置文件的键
	public boolean enableExample = true; // 设置字段的默认值为true

	public ExampleConfig(File file) {
		super(file);
	}

}

@@ -115,65 +115,8 @@
 er;%0D
-%0Aimport team.unstudio.udpl.config.serialization.Setting;%0D
 %0A%0D%0Ap
@@ -177,23 +177,26 @@
 %7B%0D%0A%09%0D%0A%09@
-Setting
+ConfigItem
 (%22text%22)
@@ -248,15 +248,18 @@
 %E6%9E%9C%E6%B2%A1%E6%9C%89@
-Setting
+ConfigItem
 %E6%B3%A8%E8%A7%A3%EF%BC%8C%E5%B0%B1

Update example