前言 简单来说这个就是一套标准环境 简单使用 @Autowired private StandardEnvironment environment; @Test void test1(){ String s = environment.resolvePlaceholders(