The Grails console runs Grails embedded within a Swing console instead of within a container like Tomcat
| Fields inherited from class | Fields | 
|---|---|
| class org.springframework.boot.SpringApplication | DEFAULT_CONTEXT_CLASS, DEFAULT_WEB_CONTEXT_CLASS, BANNER_LOCATION_PROPERTY_VALUE, BANNER_LOCATION_PROPERTY | 
| Constructor and description | 
|---|
| GrailsSwingConsole
                                (java.lang.Object... sources) | 
| GrailsSwingConsole
                                (org.springframework.core.io.ResourceLoader resourceLoader, java.lang.Object... sources) | 
| Type | Name and description | 
|---|---|
| java.lang.Object | configureApplicationContextClass() | 
| static void | main(java.lang.String[] args)Main method to run an existing Application class | 
| static org.springframework.context.ConfigurableApplicationContext | run(java.lang.Object source, java.lang.String... args)Static helper that can be used to run a GrailsApp from the specified source using default settings. | 
| static org.springframework.context.ConfigurableApplicationContext | run(java.lang.Object[] sources, java.lang.String[] args)Static helper that can be used to run a GrailsApp from the specified sources using default settings and user supplied arguments. | 
| Methods inherited from class | Name | 
|---|---|
| class GrailsApp | applyAutowireByNamePerformanceOptimization, compileGroovyFile, configureDirectoryWatcher, configureEnvironment, createApplicationContext, createPluginManagerListener, enableDevelopmentModeWatch, isDevelopmentModeActive, printBanner, printRunStatus, recompile, run, run, run, setDevelopmentModeActive | 
| class org.springframework.boot.SpringApplication | org.springframework.boot.SpringApplication#getListeners(), org.springframework.boot.SpringApplication#addListeners([Lorg.springframework.context.ApplicationListener;), org.springframework.boot.SpringApplication#getSources(), org.springframework.boot.SpringApplication#setResourceLoader(org.springframework.core.io.ResourceLoader), org.springframework.boot.SpringApplication#getResourceLoader(), org.springframework.boot.SpringApplication#setSources(java.util.Set), org.springframework.boot.SpringApplication#setEnvironment(org.springframework.core.env.ConfigurableEnvironment), org.springframework.boot.SpringApplication#setListeners(java.util.Collection), org.springframework.boot.SpringApplication#setBeanNameGenerator(org.springframework.beans.factory.support.BeanNameGenerator), org.springframework.boot.SpringApplication#getMainApplicationClass(), org.springframework.boot.SpringApplication#setMainApplicationClass(java.lang.Class), org.springframework.boot.SpringApplication#setWebEnvironment(boolean), org.springframework.boot.SpringApplication#setHeadless(boolean), org.springframework.boot.SpringApplication#setRegisterShutdownHook(boolean), org.springframework.boot.SpringApplication#setBanner(org.springframework.boot.Banner), org.springframework.boot.SpringApplication#setShowBanner(boolean), org.springframework.boot.SpringApplication#setBannerMode(org.springframework.boot.Banner$Mode), org.springframework.boot.SpringApplication#setLogStartupInfo(boolean), org.springframework.boot.SpringApplication#setAddCommandLineProperties(boolean), org.springframework.boot.SpringApplication#setDefaultProperties(java.util.Properties), org.springframework.boot.SpringApplication#setDefaultProperties(java.util.Map), org.springframework.boot.SpringApplication#setAdditionalProfiles([Ljava.lang.String;), org.springframework.boot.SpringApplication#setApplicationContextClass(java.lang.Class), org.springframework.boot.SpringApplication#setInitializers(java.util.Collection), org.springframework.boot.SpringApplication#addInitializers([Lorg.springframework.context.ApplicationContextInitializer;), org.springframework.boot.SpringApplication#getInitializers(), org.springframework.boot.SpringApplication#main([Ljava.lang.String;), org.springframework.boot.SpringApplication#run([Ljava.lang.Object;, [Ljava.lang.String;), org.springframework.boot.SpringApplication#run([Ljava.lang.String;), org.springframework.boot.SpringApplication#run(java.lang.Object, [Ljava.lang.String;), org.springframework.boot.SpringApplication#exit(org.springframework.context.ApplicationContext, [Lorg.springframework.boot.ExitCodeGenerator;), org.springframework.boot.SpringApplication#getClassLoader(), org.springframework.boot.SpringApplication#wait(long, int), org.springframework.boot.SpringApplication#wait(long), org.springframework.boot.SpringApplication#wait(), org.springframework.boot.SpringApplication#equals(java.lang.Object), org.springframework.boot.SpringApplication#toString(), org.springframework.boot.SpringApplication#hashCode(), org.springframework.boot.SpringApplication#getClass(), org.springframework.boot.SpringApplication#notify(), org.springframework.boot.SpringApplication#notifyAll() | 
Main method to run an existing Application class
args -  The first argument is the Application class nameStatic helper that can be used to run a GrailsApp from the specified source using default settings.
source -  the source to loadargs -  the application arguments (usually passed from a Java main method)Static helper that can be used to run a GrailsApp from the specified sources using default settings and user supplied arguments.
sources -  the sources to loadargs -  the application arguments (usually passed from a Java main method)