@ApiOperation("ClassPath单一资源访问类:在classpath下查找文件")
@GetMapping("/classPath")
public CommonResult classPath() throws IOException {
//获取定义在src/main/resources文件夹中的配置文件
ClassPathResource resource = new ClassPathResource("generator.properties");
Properties prop = new Properties();
prop.load(resource.getStream());
LOGGER.info("/classpath:{}",prop);
return CommonResult.success(null,"操作成功!");
}