This commit is contained in:
2025-06-06 21:16:31 +08:00
parent 8970a6e352
commit ff2e558a0c
9 changed files with 10 additions and 12 deletions

View File

@ -3,7 +3,7 @@
在主入口函数增加如下注解:
```bash
@Import(value = { cn.zhangdeman.HashMapCache.class}) // 让SpringBoot能够扫描到相关组件
@Import(value = { cn.zhangdeman.exception.HashMapCache.class}) // 让SpringBoot能够扫描到相关组件
```
会自动扫描自定义的异常注解, 并进行数据初始化