You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRunException("Static resource classes cannot be modified, [class:{}][filed:{}] cannot be modified by public, use private modified or enable writeable configuration", clazz, field.getName());
117
+
thrownewRunException("Static resource classes cannot be modified, class:[{}]filed:{}[] cannot be modified by public, use private modified or enable writeable configuration", clazz, field.getName());
118
118
}
119
119
120
120
varsetMethodName = StringUtils.EMPTY;
@@ -158,7 +158,7 @@ public void inject() {
158
158
Typetype = field.getGenericType();
159
159
160
160
if (!(typeinstanceofParameterizedType)) {
161
-
thrownewRuntimeException(StringUtils.format("[bean:{}] type declaration is incorrect, not a generic class", targetBean.getClass().getSimpleName()));
161
+
thrownewRuntimeException(StringUtils.format("bean:[{}] type declaration is incorrect, not a generic class", targetBean.getClass().getSimpleName()));
thrownewRuntimeException(StringUtils.format("Static class [resource:{}] has no @Id annotation", resourceClazz.getSimpleName()));
180
+
thrownewRuntimeException(StringUtils.format("Static class resource:[{}] has no @Id annotation", resourceClazz.getSimpleName()));
181
181
}
182
182
183
183
if (!keyClazz.getSimpleName().toLowerCase().contains(idFields[0].getType().getSimpleName().toLowerCase())) {
184
184
// 注入静态类配置资源的类型和泛型类型不匹配
185
-
thrownewRuntimeException(StringUtils.format("Inject static class configuration [storage:{}][key:{}] type and generic type [type:{}] do not match", resourceClazz.getSimpleName(), idFields[0].getType().getSimpleName(), keyClazz.getSimpleName()));
185
+
thrownewRuntimeException(StringUtils.format("Inject static class configuration storage:[{}]key:[{}] type and generic type type:[{}] do not match", resourceClazz.getSimpleName(), idFields[0].getType().getSimpleName(), keyClazz.getSimpleName()));
0 commit comments