Skip to main content

All Questions

Tagged with
0 votes
0 answers
11 views

Spring boot: Why am I getting this 404 Error?

Just to give a little background on the project; I'm making a Spring Boot project using Maven. I have a two microservices, one called "products" and one called "config-server" to ...
dqdq dqsss's user avatar
0 votes
0 answers
27 views

Chrome can't play videos larger than 25 MBs [closed]

I have an client written in angular which makes a call to a REST API written in JAVA to retrieve a file. If the file is a video, I have the option to play the video inside the client using a video ...
Ștefan Jiroveanu's user avatar
-1 votes
1 answer
32 views

Base URL for Spring Boot and handle / as well

I would like to set the context path for the Spring Boot application, and the following property can achieve that. server.contextPath=/api However, I would like to redirect / to /api . Currently, I ...
Sanchu Varkey's user avatar
1 vote
1 answer
38 views

How can I test a Java method that hits the actual REST API?

So I have a class that holds a bunch of methods(migrated from another project) that are suppose hit a REST API,but I don't know if they are working correctly.I want to create a driver class that i ...
e_wards's user avatar
  • 35
0 votes
0 answers
18 views

encountering Error: Content is not allowed in prolog with spring boot and apache camel, when transforming

I am writing a springboot application to convert SOAP to REST by using apache camel - private String transformSoapToRest(String soapRequest) throws ParserConfigurationException, IOException, ...
Bijaya's user avatar
  • 1
-1 votes
0 answers
20 views

limit on the number of calls per minute for FeignClient

Call @FeignClient happens throw RetryTemplate.execute(). for example: public AccountBalanceHistoryDto getAccountBalanceHistoryByDate() { for (int i = 0; i < 100; i++) { ...
Aleksandr Berestov's user avatar
1 vote
1 answer
59 views

Spring Boot: Error 404 when accessing localhost endpoint

Just to give a little background on the project; I'm making a Spring Boot project using Maven. I have a two microservices, one called "products" and one called "config-server" to ...
dqdq dqsss's user avatar
0 votes
0 answers
26 views

Issues Connecting to Spirent TestCenter Using Java and Tcl

I'm having trouble connecting to Spirent TestCenter (STC) using both Java and Tcl scripts. Here are the steps I've taken and the errors I'm encountering: Using Java: I tried running a Java script with ...
Yuqi Wang's user avatar
  • 233
1 vote
2 answers
25 views

De-serialize array from RestClient response

I'm able to de-serialize response for "get one" endpoint to desired object type: import org.springframework.web.client.RestClient; ... RestClient restClient = ...
Ajant's user avatar
  • 144
-2 votes
0 answers
33 views

Why my rest api call is slow while reading and writing to a file [closed]

I am trying to upload an inputstream using below code @PutMapping(value="/fileupload", consumes={MediaType.APPLICATION_OCTET_STREAM_VALUE} pubic ResponseEntity<String> uploadFIle(...
NewLearner's user avatar
1 vote
0 answers
107 views

Best Practices for RBAC/ABAC in REST API with mandatory and optional attributes [closed]

I am currently working on a REST API where we've traditionally indicated which fields are mandatory and which are optional in the response or DTO. This has been straightforward as each endpoint had a ...
MelleD's user avatar
  • 781
0 votes
2 answers
46 views

How to expose endpoints of a spring application which is deployed on production servers?

While working with springboot in local environment, creating a REST application feels so effortless due to its embedded (and abstract) tomcat server. We can do so by creating a Restcontroller and ...
Moneet's user avatar
  • 13
0 votes
0 answers
38 views

Consuming third party REST services in Java - Who provides the POJO classes?

I am a bit new to consuming third party rest APIs using Spring Boot and Java. I have experience consuming REST APIs we have developed internal to our organization. When consuming rest APIs internal to ...
Ping's user avatar
  • 615
0 votes
0 answers
37 views

How can I resolve [org.springframework.web.HttpMediaTypeNotAcceptableException: No acceptable representation] error?

I have created a REST API for user registration using Spring Boot in which I for response I'm using GenericResponse class along with ResponseEntity to manipulate the response but I'm facing [org....
Saurabh's user avatar
  • 19
1 vote
0 answers
16 views

Java with Habarta typescript generator nullable/undefined handling

I have common java app with https://github.com/vojtechhabarta/typescript-generator for generating typescript api from java DTOs model. Mostly it works okay, but i got to a situation, when I need to ...
Gobanit's user avatar
  • 293

15 30 50 per page
1
2 3 4 5
1362