1.每个Controller里面都有一个index()方法,相当于初始化方法。里面负责方法的调用,页面的跳转。
2.jfinal里面的页面的访问只能通过render(xxx.html等形式)进行渲染。默认为freemaker模板,能过#()取值 。
如果直接访问,则无法渲染页面,jfinal不能识别。必须通过方法里面的render()方式。
3.前端的html页面里面,我用<!-- #include PathType= "../_nav_tzqtheme1.html"> -->,总是报错com.jfinal.render.RenderException: com.jfinal.template.stat.ParseException: #include directive requires parentheses "()"
解决方案:jfinal template engine 的注释是三个 # 字符,或者 #-- --#
而你用的是 html 注释,并不起作用