use of org.noear.solon.annotation.Mapping in project solon by noear.
the class ViewController method dock.
@Mapping("/demo2/view")
public ModelAndView dock() {
ModelAndView model = new ModelAndView("dock.ftl");
model.put("title", "dock");
model.put("msg", "你好 world! in XController");
return model;
}
use of org.noear.solon.annotation.Mapping in project solon by noear.
the class DownController method down3.
@Mapping("f4")
public void down3(Context ctx) throws IOException {
String filePath = Utils.getResource("static/debug.htm").getFile();
File file = new File(filePath);
ctx.outputAsFile(file);
}
use of org.noear.solon.annotation.Mapping in project solon by noear.
the class BeetlView method view.
@Mapping("/demo9/view/beetl")
public ModelAndView view() {
ModelAndView model = new ModelAndView("beetl.htm");
model.put("title", "dock");
model.put("msg", "你好 world! in XController");
return model;
}
use of org.noear.solon.annotation.Mapping in project solon by noear.
the class FreemarkerView method view.
@Mapping("/demo9/view/ftl")
public ModelAndView view() {
ModelAndView model = new ModelAndView("freemarker.ftl");
model.put("title", "dock");
model.put("msg", "你好 world!");
return model;
}
use of org.noear.solon.annotation.Mapping in project solon by noear.
the class test method setVal.
@Mapping("/demob/session/setval")
public void setVal(Context ctx) {
ctx.sessionSet("v1", new Date());
ctx.sessionSet("v2", "我是字符串");
ctx.sessionSet("v3", 121212l);
}
Aggregations