JAVA监听器中获取properties/yml配置文件中的属性
引入 Environment
import org.springframework.core.env.Environment;
@Autowired
private Environment environment;
@Override
public void execute(DelegateExecution execution) throws Exception {
if(environment == null) {
environment = SpringContextHolder.ge
原创
2021-11-02 14:17:49 ·
377 阅读 ·
0 评论