简体   繁体   中英

Adding a class in scala and play2

我在哪里放置新的类文件,以及如何将其导入应用程序控制器中?

New classes for both the Java and Scala versions of Play 2 are meant to be a part of the app/models/ package. And the import would simply be import models.className .

You should check out the tutorial they have listed on the PlayFramework site, it should be of use to you, and can be found here: http://www.playframework.org/documentation/2.0.1/ScalaTodoList

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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