Java Code Examples for com.jfinal.template.Engine#setDevMode()

The following examples show how to use com.jfinal.template.Engine#setDevMode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JfinalConfigListener.java    From jboot-admin with Apache License 2.0 5 votes vote down vote up
@Override
public void onJfinalEngineConfig(Engine engine) {
    engine.setDevMode(true);
    AppInfo app = Jboot.config(AppInfo.class);
    engine.addSharedObject("APP", app);
    engine.addSharedObject("RESOURCE_HOST", app.getResourceHost());
}
 
Example 2
Source File: JfinalConfigListener.java    From jboot-admin with Apache License 2.0 5 votes vote down vote up
@Override
public void onJfinalEngineConfig(Engine engine) {
    engine.setDevMode(true);
    AppInfo app = Jboot.config(AppInfo.class);
    engine.addSharedObject("APP", app);
    engine.addSharedObject("RESOURCE_HOST", app.getResourceHost());
}
 
Example 3
Source File: JfinalConfigListener.java    From jboot-admin with Apache License 2.0 5 votes vote down vote up
@Override
public void onJfinalEngineConfig(Engine engine) {
    engine.setDevMode(true);
    AppInfo app = Jboot.config(AppInfo.class);
    engine.addSharedObject("APP", app);
    engine.addSharedObject("RESOURCE_HOST", app.getResourceHost());
}
 
Example 4
Source File: JFinalConfigExt.java    From jfinal-ext3 with Apache License 2.0 4 votes vote down vote up
/**
 * Config engine
 */
public void configEngine(Engine e) {
	e.setDevMode(this.getAppDevMode());
}