spring-boot/spring-boot-project
Sebastien Deleuze baffecdb14 Add runApplication() Kotlin top level function
Since Kotlin extensions do not apply to static
methods, this commit introduces a runApplication()
Kotlin top level function that acts as a Kotlin
shortcut for SpringApplication.run().

This shortcut avoids to require using non-idiomatic
code like SpringApplication.run(FooApplication::class.java)
and provides a runApplication<FooApplication>() alternative
(as well as an array of KClass based alternative when
multiple classes need to be passed as parameter).

It is possible to customize the application with the
following syntax:

runApplication<FooApplication>() {
    setEnvironment(environment)
}

See gh-10511
2017-10-27 14:18:24 +02:00
..
spring-boot Add runApplication() Kotlin top level function 2017-10-27 14:18:24 +02:00
spring-boot-actuator Fix checkstyle violation 2017-10-26 15:56:01 +02:00
spring-boot-actuator-autoconfigure Initialize only an embedded datasource by default 2017-10-27 09:50:37 +02:00
spring-boot-autoconfigure Polish mock verification and formatting 2017-10-27 09:43:25 +01:00
spring-boot-cli Polish “Remove explicit type arguments” 2017-10-24 14:44:26 +01:00
spring-boot-dependencies Add Kotlin main artifacts to dependency management 2017-10-27 14:18:24 +02:00
spring-boot-devtools Polish “Remove explicit type arguments” 2017-10-24 14:44:26 +01:00
spring-boot-docs Initialize only an embedded datasource by default 2017-10-27 09:50:37 +02:00
spring-boot-parent
spring-boot-starters Add ref to Okta Spring Boot starter 2017-10-25 13:10:22 +02:00
spring-boot-test Remove explicit type arguments 2017-10-24 14:44:20 +01:00
spring-boot-test-autoconfigure Adapt to password encoder changes in Spring Security 2017-10-24 21:50:19 +01:00
spring-boot-tools Allow to customize the path of a web endpoint 2017-10-26 14:36:14 +02:00
pom.xml