这是代码:
package com.thinkingstar.elevatorcommonservice.common.serviceImpl;
import com.thinkingstar.elevatorcommonservice.common.serviceI.FieldFilterServiceI;
import org.apache.poi.ss.formula.functions.T;
import org.nutz.dao.Dao;
import org.nutz.dao.FieldFilter;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.service.EntityService;
/**
* 字段过滤
* @author Administrator
*
* @param
*/
@IocBean
public class FieldFilterServiceImpl extends EntityService implements FieldFilterServiceI {
public FieldFilterServiceImpl(Dao dao) {
super(dao);
}
@Override
public void fileldFilter(T t , String regular) {
Daos.ext(dao(), FieldFilter.create(t.getClass(), regular)).update(t);
}
}
错误日志:
[INFO ] 09:34:00.886 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:166) - Fail to call getMethods() in Class=class com.thinkingstar.elevatorcommonservice.common.serviceImpl.FieldFilterServiceImpl, miss class or Security Limit, ignore it
java.lang.NoClassDefFoundError: org/apache/poi/ss/formula/functions/T
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetPublicMethods(Class.java:2902)
at java.lang.Class.getMethods(Class.java:1615)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:156)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:53)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader$FC$224d8bb48a0f1d34f28817b1caf29aba.invoke(AnnotationIocLoader.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:1022)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:124)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:98)
at org.nutz.boot.NbApp.prepareIocLoader(NbApp.java:397)
at org.nutz.boot.NbApp.prepare(NbApp.java:268)
at org.nutz.boot.NbApp.execute(NbApp.java:196)
at org.nutz.boot.NbApp.run(NbApp.java:178)
at com.thinkingstar.MainLauncher.main(MainLauncher.java:27)
Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.formula.functions.T
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 18 more
```
```