📜  如何在 Spring Boot 中访问 application.properties 文件中定义的值 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:42.453000             🧑  作者: Mango

代码示例1
@Value("${userBucket.path}")
private String userBucketPath;
(Assumes you have a property in application.properties called userbucket.path)