xantier
08/11/2017, 10:37 AMsdeleuze
08/11/2017, 1:21 PMsdeleuze
08/11/2017, 1:22 PMxantier
08/11/2017, 1:29 PMsdeleuze
08/11/2017, 1:53 PMpoohbar
08/11/2017, 3:29 PM@ConfigurationProperties
have to all be defined as nullable etc. I know these issues are being addressed with the coming versions but can I somehow get reminded to replace these ugly bits later on in my project? I am not really asking for a IntelliJ suggestion, a mere mailing list or some release notes notification would suffice 🙂. Any ideas?dharrigan
08/11/2017, 3:33 PM<https://blog.jetbrains.com/kotlin/category/releases/>
poohbar
08/11/2017, 3:40 PMpoohbar
08/11/2017, 3:41 PMsdeleuze
08/11/2017, 3:57 PMsdeleuze
08/11/2017, 3:58 PMshainegordon
08/11/2017, 4:21 PMimport org.joda.time.DateTime
import org.springframework.format.annotation.DateTimeFormat
data class EventSearchParameters constructor(
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) var fromDate: DateTime?,
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) var toDate: DateTime?)
if I convert this back to a standard Lombok POJO, then this works as expected
import lombok.Data;
import org.joda.time.DateTime;
import org.springframework.format.annotation.DateTimeFormat;
@Data
public class EventSearchParameters {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private DateTime fromDate;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private DateTime toDate;
}
shainegordon
08/11/2017, 4:21 PM@GetMapping
method on a @RestController
shainegordon
08/11/2017, 4:22 PMshainegordon
08/11/2017, 4:24 PMkrotki
08/11/2017, 7:07 PM@field:DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
e.lislebo
08/12/2017, 1:25 PMe.lislebo
08/12/2017, 1:25 PMe.lislebo
08/12/2017, 1:26 PMjava.lang.NoSuchMethodException: com.sportradar.MyKotlinClass.main([Ljava.lang.String;)
e.lislebo
08/12/2017, 1:27 PMe.lislebo
08/12/2017, 1:34 PMdh44t
08/12/2017, 2:10 PMe.lislebo
08/12/2017, 2:37 PMnfrankel
08/14/2017, 2:15 PMBeans.kt
file
i’m at loss understanding how you inject dependenciesnfrankel
08/14/2017, 2:15 PMnfrankel
08/14/2017, 2:18 PMfun beans(repository: WelcomeRepository) = beans {
bean(“controller”) {
WelcomeController(WelcomeService(repository))
}
}
sdeleuze
08/14/2017, 2:19 PMref()
helpernfrankel
08/14/2017, 2:19 PMsdeleuze
08/14/2017, 2:19 PM