diesieben07
03/15/2018, 3:24 PM@XXX(defaultValue="...")
is used? I am aware of CookieValue
and RequestParam
.sdeleuze
03/15/2018, 3:24 PMsdeleuze
03/15/2018, 3:27 PM@Header
, @RequestHeader
, @MatrixVariable
rrader
03/16/2018, 2:59 PMsdeleuze
03/17/2018, 11:54 PMbjartek
03/18/2018, 8:14 PMbjartek
03/18/2018, 8:15 PMbjartek
03/18/2018, 9:11 PMsdeleuze
03/22/2018, 9:46 AMsdeleuze
03/23/2018, 2:15 PMrrader
03/27/2018, 8:46 AMsdeleuze
03/27/2018, 8:49 AMsdeleuze
03/29/2018, 6:12 AMrrader
03/29/2018, 6:49 AMGerard Klijs
03/30/2018, 10:27 AM@StreamListener
fun receive(@Input(AccountCreation.CAC) input: Flux<ConfirmAccountCreation>,
@Output(AccountCreation.ACC) success: FluxSender,
@Output(AccountCreation.ACF) fail: FluxSender) {
input.map(this::getResponse)
.groupBy{it.succes.isPresent}
.flatMap { }
}
I use a data class so I always return the same, only one of them is filled, data class Response (val succes: Optional<AccountCreationConfirmed>,
val failed: Optional<AccountCreationFailed>)
at this moment I’m not really sure if I’m doing it correctly…kenkyee
03/30/2018, 10:42 AMGerard Klijs
03/30/2018, 10:57 AMsdeleuze
04/03/2018, 12:04 PMBen
04/03/2018, 4:10 PM@RestController
class TestController {
@PostMapping
fun testValidation(@Valid @RequestBody validRequest: ValidRequest): ResponseEntity<String> {
// Should not be here
return ok().body(validRequest.item)
}
}
data class ValidRequest(
@Email
val item: String
)
Here is the request:
POST <http://localhost:8080>
Content-Type: application/json
{
"item": ""
}
Michael
04/03/2018, 4:40 PMdata class ValidRequest(
@field:Email
val item: String
)
poohbar
04/05/2018, 1:56 PMlateinit var enabled: Boolean
because lateinit
is not allowed on primitivespoohbar
04/05/2018, 1:59 PMvar enabled = false
.. thats fine for mesdeleuze
04/05/2018, 2:00 PMpoohbar
04/05/2018, 3:31 PMpoohbar
04/05/2018, 3:31 PM{
"sourceType": "com.mycompany.core.config.CoreProperties",
"name": "mycompany.core.notification",
"sourceMethod": "getNotification()",
"type": "com.mycompany.core.config.CoreProperties$Notification"
},
but nothing in the propertiessdeleuze
04/05/2018, 5:22 PMkenkyee
04/05/2018, 9:41 PMyaakov
04/05/2018, 11:27 PMyaakov
04/05/2018, 11:27 PMyaakov
04/06/2018, 6:53 AMpublic class UserDto {
@NotNull
@NotEmpty
private String firstName;
@NotNull
@NotEmpty
private String lastName;
@NotNull
@NotEmpty
private String password;
private String matchingPassword;
@NotNull
@NotEmpty
private String email;
// standard getters and setters
}