javax Questions

2

with respect to javax.validation @NotNull(message = "From can't be null") @Min(value = 1, message = "From must be greater than zero") private Long from; @NotNull(message = "To can't be null") ...
Unguentum asked 24/5, 2018 at 6:12

4

Solved

is there a way to use javax.validation to validate a variable of type string called colour that needs to have these values only(red, blue, green, pink) using annotations? i have seen @size(min=1, ...
Guadalupe asked 7/2, 2011 at 14:52

3

Solved

I need to validate a field in POJO, it must be min length = 2, ignoring leading and trailing whitespaces class User { @NotBlank @Size(min = 2) private String name; } it not works for " A" Ho...
Isomeric asked 21/3, 2017 at 8:39

2

I probably have an issue with my POM in my SpringBoot App. Currently I am trying to access my Keycloak Server with the "admin-client-keycloak" But on the call: Response response = getInstance()...
Pastorate asked 14/5, 2018 at 16:25

1

Solved

I have a REST POST function that has the following header: @POST @Consumes(value = { MediaType.APPLICATION_JSON + ";charset=utf-8" }) @Produces(value = { MediaType.APPLICATION_JSON + ";charset=utf...
Amanda asked 20/4, 2018 at 12:26

2

class User(val name: String) I know that in constructor will be added this check Intrinsics.checkParameterIsNotNull(name) To make sure that name do not store null. Is there a way to instrumen...
Semantic asked 19/3, 2018 at 10:31

1

Based on this question I'd like to create a server endpoint instance based on the negotiated subprotocol to handle various protocol messages differently. Unfortunately ServerEndpointConfig.Configur...
Intestine asked 16/1, 2017 at 14:24

1

Please do not consider it as duplicate request as i have gone through all the post in stackoverflow, none of them answered. no response i found. Issue is : I am facing a very weird issue makin...
Cawthon asked 31/10, 2017 at 16:51

1

I'm trying to creat a very simple Rest Client. I,m using: Netbeans 8 maven project dependecies: <dependencies> <dependency> <groupId>javax.ws.rs</groupId> &l...
Rika asked 22/9, 2017 at 9:58

2

Solved

How do I properly close a websocket and and provide a clean, informative response to the client when an internal error occurs on my server? In my current case, the client must provide a parameter w...
Lexy asked 2/9, 2017 at 2:10

1

I added the following dependency to Maven: <dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> <version>1.0.2</ver...
Nausea asked 7/5, 2017 at 16:8
1

© 2022 - 2024 — McMap. All rights reserved.