sdeleuze
04/16/2018, 9:51 AM.expectBody<Foo>.returnResult().apply { assertEquals("foo", responseBody) }
sdeleuze
04/16/2018, 9:51 AMsdeleuze
04/16/2018, 1:23 PMsdeleuze
04/17/2018, 1:32 PMyaakov
04/17/2018, 4:23 PMrogeralsing
04/17/2018, 8:09 PMrogeralsing
04/17/2018, 8:09 PMthatadamedwards
04/17/2018, 8:24 PMfitzoh
04/17/2018, 8:35 PMfitzoh
04/17/2018, 8:35 PMnfrankel
04/17/2018, 8:40 PMWith this module, single constructor classes can be used automatically, and those with secondary constructors or static factories are also supported.or use the no-arg compiler plugin: https://kotlinlang.org/docs/reference/compiler-plugins.html#no-arg-compiler-plugin
poohbar
04/18/2018, 3:59 PMjackson-module-kotlin
do we still need to manually register the module?poohbar
04/18/2018, 4:01 PMNo default constructor found;
thatadamedwards
04/18/2018, 4:04 PMpoohbar
04/18/2018, 4:05 PM1.5.10
mp
04/18/2018, 4:06 PMthatadamedwards
04/18/2018, 4:07 PM@Bean
internal fun kotlinModule(): Module = KotlinModule()
poohbar
04/18/2018, 4:07 PMthatadamedwards
04/18/2018, 4:07 PMthatadamedwards
04/18/2018, 4:07 PMpoohbar
04/18/2018, 4:08 PM@Bean
public Module kotlinJackson() {
return new KotlinModule();
}
poohbar
04/18/2018, 4:09 PMpoohbar
04/18/2018, 4:10 PMthatadamedwards
04/18/2018, 4:18 PM@SpringBootApplication
@ComponentScan
public class Application extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
return application.sources(Application.class);
}
public static void main(final String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
Module kotlinModule() {
return new KotlinModule();
}
@Bean
Module jdk8Module() {
return new Jdk8Module();
}
}
thatadamedwards
04/18/2018, 4:18 PMthatadamedwards
04/18/2018, 4:19 PMcompile('com.fasterxml.jackson.datatype:jackson-datatype-jdk8')
compile('com.fasterxml.jackson.module:jackson-module-kotlin')
compile('org.jetbrains.kotlin:kotlin-reflect')
visakha
04/19/2018, 12:59 PM@Value
working in the below `visakha
04/19/2018, 1:00 PMCaused by: kotlin.UninitializedPropertyAccessException: lateinit property sipPropFile has not been initialized
poohbar
04/19/2018, 1:04 PM?success
or not.. Do I have to do ?success=true
instead?diesieben07
04/19/2018, 1:08 PMHttpServletRequest
and call getQueryString