在Play framework java Play中加载html时无法读取css文件

在Play framework java Play中加载html时无法读取css文件,java,html,css,playframework,Java,Html,Css,Playframework,当使用java play项目和play框架并希望将css添加到html文件时,只显示html,我做错了什么 路线: # Map static resources from the /public folder to the /assets URL path GET / controllers.Assets.at(path="/public", file="/screens/loginForm/Login.html") GET /assets/*

当使用java play项目和play框架并希望将css添加到html文件时,只显示html,我做错了什么

路线:

# Map static resources from the /public folder to the /assets URL path
GET  /                         controllers.Assets.at(path="/public", file="/screens/loginForm/Login.html")
GET  /assets/*file             controllers.Assets.at(path="/public", file)
html:


标题


是“public”文件夹中的“screens/loginForm/Login.css”吗?因为您正在覆盖资产路由,所以第二个路由从未被使用过。您应该删除第一条路线,只需调用
http://localhost/assets/screens/loginForm/Login.html