简体   繁体   English

播放框架应用程序路由中断

[英]play framework application routes broken

am working on a play framework application: I have some routes 正在开发一个播放框架应用程序:我有一些路线

user registration and login 用户注册和登录

GET       /register                 controllers.HomeController.registration()

while trying to reach 在尝试到达时

http://localhost:9000/register HTTP://本地主机:9000 /寄存器

it goes to 它去

user profile 用户资料

+ nocsrf
GET     /:username              controllers.HomeController.account(username:String)

the project was working fine last week but ever since my computer had issues I moved the project and formatted the computer. 该项目上周运行良好,但是自从我的计算机出现问题以来,我就移动了该项目并格式化了计算机。 please guide. 请指导。

i have tried to compile the project couple time but yet not working. 我试图编译项目几次,但仍无法正常工作。 please .. help me solve this 请..帮我解决这个问题

thanks in advance 提前致谢

Routes are resolved from top to bottom, so just put the more specific route before the more generic one. 路由是从上到下解析的,因此只需将更具体的路由放在更通用的路由之前即可。

# FIRST #第一

GET /register GET /注册

#### MORE ROUTES IF YOU WANT ####如果您想要更多路线

#FINALLY #最后

GET /:username GET /:用户名

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM