返回Column信息
This commit is contained in:
@@ -275,11 +275,9 @@ public class CoolEps {
|
|||||||
*/
|
*/
|
||||||
private String getEntity(Class<?> controller) {
|
private String getEntity(Class<?> controller) {
|
||||||
try {
|
try {
|
||||||
Type type = ((ParameterizedType) SpringUtil.getBean(controller).getClass()
|
ParameterizedType parameterizedType = (ParameterizedType) controller.getGenericSuperclass();
|
||||||
.getGenericSuperclass())
|
Class<?> entityClass = (Class<?>) parameterizedType.getActualTypeArguments()[1];
|
||||||
.getActualTypeArguments()[1];
|
return entityClass.getSimpleName();
|
||||||
String[] names = type.getTypeName().split("[.]");
|
|
||||||
return names[names.length - 1];
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user