Open a text editor, and create a simple controller called Home.
打开文本编辑器,并创建一个名为Home的简单控制器。
I tie it all together with a simple controller in Play and a route definition.
我使用Play中的一个简单控制器和一个路由定义将其绑定到一起。
In fact, simple controller classes aren't tied to JSF at all, making them easier to test.
事实上,简单的控制器类根本与JSF没有联系,这使得它们更加容易测试。
Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个JSON对象作为响应,这个响应可用于事务的远端。
The default handler is a very simple Controller interface with just one method, ModelAndView handleRequest(request, response).
默认的处理程序是非常简单的Controller接口,只有一个方法ModelAndViewhandleRequest(request,response)。
The default handler is a very simple Controller interface with just one method, ModelAndView handleRequest(request, response).
默认的处理程序是非常简单的Controller接口,只有一个方法ModelAndViewhandleRequest(request,response)。
应用推荐