• Phillip Webb's avatar
    Refine SpringApplication source types · 889d43dd
    Phillip Webb authored
    Update `SpringApplication` so that the `run` methods and constructors
    now require `Class<?>` arguments, rather than `Objects`. String based
    sources can still be loaded, but must now be set on the `getSources()`
    collections. `Package` and `Resource` types are no longer directly
    supported.
    
    This change should help IDEs offer better content assist, and will
    help integrations with alternative languages such as Ceylon.
    
    Users currently passing in Class references or using the
    `spring.main.sources` property should not be affected by this change. If
    an XML resource is being used, some refactoring may be required (see the
    changes to `SampleSpringXmlApplication` in this commit).
    
    Fixes gh-9170
    889d43dd
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs 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-devtools 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-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...