Record a problem~Configuration file autorender in beego

Insert image description here

What happened is this:
when learning the beego framework, I encountered a problem:
the tpl template file does not display the content;
the reason is:
beego configuration file:

appname = hello
httpport = 8080
runmode = dev
world = world
dataSourceInfo = root:955945@tcp(localhost:3306)/gmusic?charset=utf8
#自动渲染  这里关闭后就关闭了自动渲染
autorender = true
#recoverpanic = false
envMode = "${GOROOT}||default}"
[dev]
httpport = 8080
[prod]
httpport = 8081
[test]
httpport = 8082

#include "app-dev.conf"

When autorender = false, automatic rendering of the web page is turned off.

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_54061333/article/details/132520586