Play 学习中遇到的问题

1.play new proj生成的项目中,为什么没有生成logs目录

使用play start 命名启动服务,就会自动生成logs目录,自动创建system.out文件保存日志。

如果用play run,则不会创建logs目录,因为日志都输出到控制台上了,就不会自动创建日志。

 

 

Use play start in the production mode which does not use hot reload feature.

Use play run command instead of play start to stay in the development mode (which reflects code changes without redeployment). It will recompile changed classes after next browser request.

If you'll use play ~run it will recompile changed classes right after saving them (even before next request).

扫描二维码关注公众号,回复: 688801 查看本文章

2.路径问题,路由配置中配置/admin映射到curd模块,为什么必须在/admin后面加斜线/才能匹配到路由呢?因为play自动把配置的路由 /admin 改变为了 /admin/ ,后面多了一个正斜线,为什么呢?

猜你喜欢

转载自schy-hqh.iteye.com/blog/1956179