直接转curl
【postman&curl】浏览器、 postman操作和curl命令互转
How to resolve ‘curl: option --data-raw: is unknown’ error
如何直接从未注入类读取application.properties属性
JAVA Spring Boot : How to access application.properties values in normal class
public final class AppUtils {
private static final Properties properties;
static {
properties = new Properties();
try {
ClassLoader classLoader = AppUtils.class.getClassLoader();
InputStream applicationPropertiesStream = classLoader.getResourceAsStream("application.properties");
applicationProperties.load(applicationPropertiesStream);
} catch (Exception e) {
// process the exception
}
}
}