return Hasor.createAppContext(config, new Module[0]);
}
/**用简易的方式创建{@link AppContext}容器。*/
public static AppContext createAppContext(final String config, final Module... modules) {
try {
StandardAppContext app = new StandardAppContext(config);
app.start(modules);
return app;
} catch (Throwable e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {