update:给Ureport加入PropDoc

This commit is contained in:
蛋蛋 2017-12-28 13:16:31 +08:00
parent 1f4775bc8a
commit 33d9b9bbe6

View File

@ -8,6 +8,7 @@ import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.nutz.boot.annotation.PropDoc;
import org.nutz.boot.starter.WebServletFace;
import org.nutz.ioc.loader.annotation.IocBean;
import org.springframework.web.context.WebApplicationContext;
@ -17,7 +18,15 @@ import com.bstek.ureport.console.UReportServlet;
@SuppressWarnings("serial")
@IocBean
public class UreportServletStarter extends UReportServlet implements WebServletFace {
@PropDoc(value = "定义UReport2中提供的默认基于文件系统的报表存储目录", defaultValue = "")
public static final String UREPORT_FILESTOREDIR = "ureport.fileStoreDir";
@PropDoc(value = "是否启用自定义报表存储器", defaultValue = "")
public static final String UREPORT_DISABLEFILEPROVIDER= "ureport.disableFileProvider";
public String getName() {
return "ureport";
}