web applications - Bootstrap a Web App with Groovy config in Spring -


Whether Java Configuration is a way to bootstrap a Web application using Web App Configurations like Groovy Context as Web Applications Context . And I know that Grails is under it's hood but I do not use grails.

You can use which is the basic support for groovy and Gradle

Then, deploying a Jar Launcher embedding your application with Tomcat or Jetty is easy; You can use a gradeau job to make a war too.

Here's an example of a boot app configuration by greeting:

  import org.springframework.boot.SpringApplication; Import org.springframework.boot.autoconfigure.EnableAutoConfiguration; Import org.springframework.context.annotation.ComponentScan; Import org.springframework.context.annotation.configuration; @Configuration @ComponentScan @EnableAutoConfiguration class greeting application {public static zero main (string ... args) {SpringApplication.run (greeting application, args)}}  

Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -