Skip to main content

All Questions

Tagged with
0 votes
0 answers
13 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
-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
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
9 views

Spring Boot 3.2.5 RestClient POST with form args

I'm using Spring Boot 3.2.5 and the new RestClient class to call a POST the requires url encoded form arguments. I'm sending a Map as the body and it keeps trying to convert to JSON which is not what ...
Bill Pfeiffer's user avatar
0 votes
0 answers
16 views

Access denied for user 'root'@'localhost' (using password: YES). In SpringToolSuit4 [duplicate]

enter image description hereI am working on the springToolSuite4,I was creating Restful API and trying to access the database through it. I have added all the dependencies and the password used is ...
Gauri Sharma's user avatar
0 votes
1 answer
37 views

Get LocalDate from the @RequestBody, convert it to dd/mm/yyyy format, convert it back to LocalDate and store it in the database

I am creating a Rest API applicaton which tracks users` expenses. I have date variable of type LocalDate and the default format is yyyy-mm-dd but I want to store dd/mm/yyyy in the database what I ...
user23899795's user avatar
-2 votes
0 answers
28 views

How to test the JWT validation in spring security

Hello I wanted to create a sample spring boot service with spring security and test it where a JWT Token is passed to a rest api and I need to validate it using filter chain but seems I am missing ...
Andrew Amodia's user avatar
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
0 votes
0 answers
48 views

Patch Request in Java Spring Boot nulls ManyToOne

I have this entity: @Entity public class Rating { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private Boolean isNa = false; private String comment = "&...
Orbis's user avatar
  • 465
0 votes
1 answer
28 views

How do I configure my .crt file content in Application.yml?

I have configured my certificate content in my application.yml file spring: ssl: bundle: my-bundle: pem: client: truststore: certificate: -----...
I_GOT_THIS's user avatar
-1 votes
0 answers
58 views

405 method not allowed Spring Boot API and Angular

in one of my Spring API projects I sometimes encounter a "405 method not allowed" error if I use the PUT call. The error is quite random, sometimes the call works without problems, sometimes ...
peppe71-19's user avatar

15 30 50 per page
1
2 3 4 5
332