• Andy Wilkinson's avatar
    Provide default for SpringApplication main class in servlet container · cd62596e
    Andy Wilkinson authored
    By default, SpringApplication attempts to deduce the application class
    by looking for a main method in the stack. This does not work when
    the application is launched by a servlet container via
    SpringBootServletInitializer as there's either no main method in the
    stack, or the main method is that of the servlet container, rather
    than the application.
    
    This commit updates SpringBootServletInitializer to configure the
    main class of the SpringApplication that it creates to be the
    application's SpringBootServletInitializer subclass. This is done
    prior to calling configure, so the main class can still be specified
    by the application if required.
    
    Closes gh-3061
    cd62596e
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...