playframework - How to run java class with main method in play framework1.x -


my web application developed in play framework 1.x , contains java class main method, can run main method in play framework 1.x version. can run in play framework 2.x using either run or runmain command of play task?

from book "play java"

play wasn't based on java enterprise edition apis , made java developers; play web developers

we aren't use main method in play framework run application. each request reach application bind action method of controller class (or it's subsets) , action method must handle request. if want execute main method must declare route it. if want more information see documentation here , there


Comments