refactor: 更新LICENSE年份及格式

This commit is contained in:
Jie Zheng 2025-01-14 15:14:33 +08:00
parent 6413e5fd87
commit 60cce85763
2 changed files with 14 additions and 10 deletions

View File

@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on
the same "printed page" as the copyright notice for easier identification within
third-party archives.
Copyright 2019-2020 Zheng Jie
Copyright 2019-2025 Zheng Jie
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -133,6 +133,10 @@ public class QuartzJobController {
return new ResponseEntity<>(HttpStatus.OK);
}
/**
* 验证Bean是不是合法的合法的定时任务 Bean 需要用 @Service 定义
* @param beanName Bean名称
*/
private void checkBean(String beanName){
// 避免调用攻击者可以从SpringContextHolder获得控制jdbcTemplate类
// 并使用getDeclaredMethod调用jdbcTemplate的queryForMap函数执行任意sql命令