雪花算法 YES/NO

This commit is contained in:
2025-01-02 22:42:28 +08:00
parent 8e07f8e7fd
commit c07e7f48eb
6 changed files with 183 additions and 1 deletions

View File

@@ -23,6 +23,11 @@ public class SpringContextUtils implements ApplicationContextAware {
return applicationContext.getBean(name);
}
public static Object getSpringBean(Class<?> clazz) {
return applicationContext == null ? null : applicationContext.getBean(clazz);
}
public static <T> T getBean(String name, Class<T> requiredType) {
return applicationContext.getBean(name, requiredType);
}