Skip to content
Advertisement

Tag: crud

@DeleteMapping endpoint not triggered at all

My webClient calls work fine with @GetMapping, but @DeleteMapping isn’t even triggered. Here are the two methods I’m using: The endpoints are: When I try to delete an item I get no errors, no 405, no 400, no 403, nothing. The webClient call returns normally (with a MonoIgnorePublisher object), but the endpoint seems to not be triggered at all (I

Get multiple RequestParam of one variable

I’m trying to build a multifunctional search method using MongoTemplate, Query and Criteria. Here is my RequestMapping for variable search: I want to be able to search lastName with multiple request parameters. For example, I want to find everyone with lastname “Smith” and “Johnson”. Something like this: URL will be: http://localhost:8080/get?lastName=Smith&lastName=Johnson This is where I found Mapping a Multi-Value Parameter

Java: Retrieve and display value from database in label

I am building a Java desktop app using Java Swing. This is the select service method I would like to display the result of this in a label There is an error at jLabel1.setText(numberOfDays.select(1)); Saying ‘void type not allowed here’. What am I doing wrong? Appreciate any input regarding this matter. Thank you. Answer your select method definition This returns

Advertisement