Create Simple Application
Last updated
Was this helpful?
Last updated
Was this helpful?
Example code is available on .
In this tutorial, we will create Vaadin application where we can use @Autowired
annotation.
We need to say the plugin that we want to do annotation based URL mapping. Comment out mapping from VaadinConfig.groovy
to do that.
Now we will create a dummy service ItemService
that we will autowire in Vaadin code.
Use @VaadinUI
annotation to map your UI class to URL.
That is all, now you can run the application and ItemService
will be autowired.
Run the application grails run-app
and open in a browser.