二、代码
配置文件application.yml如下:
minio:
endpoint:
name: /demo
enable: false
url: http://claves.me
access-key: 88ed52c190834b76fd152075f8fa53765a
secret-key: 6583813f0e6775511387015b84a91d799
2.1 方式一
实体类:

使用:
@RestController
@RequestMapping("/minio/test")
public class MinioTestController {
@Autowired
private MinioProperties properties;
@SneakyThrows
@GetMapping("/hello")
public String hello() {
return properties.getUrl();
}
}
2.2 方式二
实体类:

使用:

测试代码:test226-minio