我正在关注游戏教程,我被困在大约9分钟.路径文件没有得到解决我做了同样的事情,如教程中所示,但仍然无法正常工作.
package controllers; import models.Bar; import play.core.Router; import play.data.Form; import play.mvc; import play.*; import play.Routes; import views.html.indes; public class Application extends Controller { public static Result index() { return ok(index.render("Hello")); } public static Result addBar(){ Bar bar = Form.form(Bar.class).bindFromRequest().get(); bar.save(); return redirect(routes) } }
Kevin.. 6
Project Structure -> Modules -> Dependencies -> + -> JAR or directories -> target/scala-#.##/classes_managed
将此目录标记为Sources Root/Generated Sources Root对我来说不起作用,如其他一些S/O帖子中所述
Project Structure -> Modules -> Dependencies -> + -> JAR or directories -> target/scala-#.##/classes_managed
将此目录标记为Sources Root/Generated Sources Root对我来说不起作用,如其他一些S/O帖子中所述