This commit is contained in:
白茶清欢 2025-06-04 18:56:10 +08:00
parent 4262f7a241
commit 8970a6e352

View File

@ -41,7 +41,7 @@ public class HashMapCache implements ServletContextListener {
List<String> classList = getAllClassList(scanPackageList, exceptionClassList);
for (String className: classList) {
Class<?> classInstance = Class.forName(className);
// 判断是否实现接口: 要求实现 ICustomExceptionAnnotation IExceptionConfig
// 判断是否实现接口: 要求实现 ICustomExceptionAnnotation ICustomExceptionConfig
if(!ICustomExceptionAnnotation.class.isAssignableFrom(classInstance) || !ICustomExceptionConfig.class.isAssignableFrom(classInstance)) {
// 未实现接口
continue;