refactor: 更新LICENSE年份及格式
This commit is contained in:
parent
6413e5fd87
commit
60cce85763
@ -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.
|
||||
|
@ -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命令。
|
||||
|
Loading…
Reference in New Issue
Block a user