All Questions

Tagged with
0 votes
0 answers
12 views

How to send rest request for only particular records in a Oracle database table using Spring Boot

I have created a simple service using Spring Boot. There is a table Message_Queue as shown in this image link - Message_Queue Table I am using oracle database. Here, msisdn is a number which is ...
0 votes
0 answers
11 views

SpringBoot REST XML Lists Response How To Get Entities Named Correctly (Not "items")

We have a website using Springboot that has a rich REST API and returns many different types of entities. We have recently upgraded to SpringBoot v2 from v1 and found an issue with the REST XML ...
0 votes
1 answer
15 views

Call another rest api with payload from my server in Spring-Boot kotlin

I want to call another web-api from my server with payload using post method, For example, https://api.example.com.bd/subscription/query-base Payload : Content type application/json;charset=utf-8 { ...
0 votes
1 answer
16 views

405 Method not allowed in Spring Boot and Ajax

Hi I am having request mapping like this @RequestMapping(value = "/pendodnp/{visitorId}/{content}") public ResponseEntity<Object> setPendoDNP(@PathVariable String visitorId, @...
0 votes
2 answers
53 views

Spring Boot returns 500 Internal Server Error instead of desired 403 Forbidden

I am using spring-security-web:5.6.3 to build a RESTful API. The API has a working authentication via Bearer tokens (JWT) and role-based authorization. The problem is that when ever an authenticated ...
  • 5,657
0 votes
1 answer
18 views

use an endpoint to dumb data using one post request

Someone mentioned using JsonArray as a way to dumb this data one time using one request. But the whole concept is new to me. Can someone explain how or show me different approach to insert bunch of ...
  • 27
0 votes
0 answers
21 views

databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<com.example.SpringBootExternalAPI.details.GeoDetails>

I want to make a call to an external API using Springboot. This is the json format i want to receive: [ { "id": 1, "name": "Leanne Graham", &...
  • 7
0 votes
0 answers
11 views

How to use HttpServiceProxyFactory (Spring 6) for only a subset of JSON fields of a GET response?

I have a Spring 6 client which invokes a RESTful Webservice with a GET request. The response contains a JSON record with more fields than needed. How can I use the new HttpServiceProxyFactory together ...
-4 votes
0 answers
23 views

i am not getting proper response [closed]

this is my entity class entity class @Entity @Table(name = "s_area_zone") @Data @EntityListeners(AuditingEntityListener.class) public class AreaZone implements Serializable { /** *...
0 votes
2 answers
40 views

I want to transmit a status code if the query is successful with Spring boot, how can I do it?

Although this situation is easy for ready overrided methods, I couldn't find a way for my own query. This is my repository : public interface CommentRepository extends JpaRepository<User , Long >...
  • 7
0 votes
1 answer
47 views

Azure Container Instance ERR_CONNECTION_RESET

I have deployed my container from azure container registry and my ACI is running, I can also see that the REST service of Springboot application has started, however I am not able to send my request ...
0 votes
1 answer
41 views

Spring Boot DTO values are recevied null

I send this data from Front with headers {'Accept': 'application/json', 'Content-Type': 'application/json'} { "libelle": "Article AB", "dimension": { &...
0 votes
1 answer
30 views

I get an error ( 500-internal server error ) when posting with Spring Boot

No matter what I do, I couldn't fix the problem, what do you think could be the problem ? This is my model class : @Getter @Setter @NoArgsConstructor @AllArgsConstructor @Entity @Table(name="...
  • 7
-2 votes
0 answers
28 views

Trying to consume an API using rest template [closed]

I am using java springboot and gradle, trying to write logic to consume an API using rest template. My API is at the address myapi.api.com (for example). It has details on users in the database, and ...
0 votes
1 answer
20 views

call api to upload file with metadata using feign client

I created a simple api to upload a file with its metadata using spring boot, the api works fine without any problems, here is the controller : @PostMapping(value="/v1/docs", consumes=...

15 30 50 per page
1
2 3 4 5
303