Add @FunctionalSpringBootTest and mini web server
User can run a minimal HTTP app using an app that is a Function or an ApplicationContextInitializer. Can also test using @FunctionalSpringBootTest in place of @SpringBootTest. Add some tests and documentation for functional beans Make server.address configurable
This commit is contained in:
committed by
Oleg Zhurakousky
parent
4315cb1d61
commit
ba34d4b81b
@@ -30,4 +30,6 @@ The input type for the function in the AWS sample is a Foo with a single propert
|
||||
{
|
||||
"value": "test"
|
||||
}
|
||||
----
|
||||
----
|
||||
|
||||
NOTE: The AWS sample app is written in the "functional" style (as an `ApplicationContextInitializer`). This is much faster on startup in Lambda than the traditional `@Bean` style, so if you don't need `@Beans` (or `@EnableAutoConfiguration`) it's a good choice. Warm starts are not affected.
|
||||
Reference in New Issue
Block a user