有什么方法可以将JSON文件 bundle 到Jar文件中?例如,我们使用maven-jaxb2-plugin从xsd创建jar。以类似的方式,我需要Json文件。请帮忙
最佳答案
您可以尝试jsonschema2pojo Gradle插件。根据它的描述:
jsonschema2pojo generates a Java representation of your json schema. The schema reference describes the rules and their effect on generated Java types.
关于json - 有什么方法可以将JSON文件捆绑到Jar文件中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41329635/