com.haoxuer.discover.web.App Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discover-website Show documentation
Show all versions of discover-website Show documentation
discover网站配置模块,主要管理网站主题,网站配置等功能
package com.haoxuer.discover.web;
import com.haoxuer.discover.web.data.entity.WebConfig;
import com.haoxuer.discover.web.data.entity.WebTheme;
import com.nbsaas.codemake.CodeMake;
import com.nbsaas.codemake.template.hibernate.TemplateHibernateDir;
import com.nbsaas.codemake.templates.adminlte.TemplateAdminLTE;
import com.nbsaas.codemake.CodeMake;
import com.nbsaas.codemake.template.hibernateSimple.TemplateHibernateSimpleDir;
import java.io.File;
/**
* Hello world!
*/
public class App {
public static void main(String[] args) {
File file = new File("E:\\mvnspace\\xjob\\web\\src\\main\\webapp\\WEB-INF\\ftl\\admin");
CodeMake make = new CodeMake(TemplateAdminLTE.class, TemplateHibernateSimpleDir.class);
make.setView(file);
make.setDao(false);
make.setService(false);
make.setAction(false);
make.setView(false);
make.setRest(true);
make.setApi(true);
// UserOauthToken.
make.makes(WebConfig.class);
}
}