Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
107 views

I recently upgraded to Spring Boot 3.5 (Jakarta packages) and noticed my global exception handler isn’t being triggered. @RestController public class UserController { @GetMapping("/test")...
Lavi Kumar's user avatar
1 vote
1 answer
63 views

With the use spring boot 3.4.7 noticing a below change We have a pojo with lomobok annoatiaon import org.springframework.validation.annotation.Validated; @Builder @Validated public record AppState( ...
Tim's user avatar
  • 1,501
2 votes
0 answers
38 views

I am integrating Neo4j into my JHipster 8.5.0 / Spring Boot 3.3.0 application. I have configured a Neo4jConfig with a Driver bean, a Neo4jService to send Cypher statements, and a REST endpoint /api/...
Mouhamad Moustapha Mbaye's user avatar
0 votes
1 answer
47 views

We are getting a request from 3rd part and in our logs the body is printed like this "body":"Response=%7B%22TransactionType%22%3A1%2C%22Approved%22%3Afalse%2C%22TransactionIdentifier%22%...
Arun Sudhakaran's user avatar
0 votes
1 answer
150 views

I have a Spring Boot REST API, and it works perfectly when tested via Postman—all HTTP methods function as expected. However, when I try to interact with the API from the client-side application, I ...
TheRealKing's user avatar
0 votes
2 answers
52 views

I have a Restcontroller with 4 methods, but I can't use the calls, I always get the error: "message": "No static resource api/corp.", I need method with string like: localhost:...
Gilmar's user avatar
  • 67
0 votes
1 answer
410 views

We have a REST controller with a HEAD method but no GET method. We don't want the client to be able to retrieve the resource, but we do want them to be able to know whether it exists and how big it is....
whistling_marmot's user avatar
1 vote
3 answers
99 views

I’m working on a Spring Boot application, and I’m having trouble getting my controller to register correctly. When I try to POST data to the /student/add endpoint, I receive a 404 error, indicating ...
Madeline Lobdell's user avatar
0 votes
1 answer
104 views

` I'm trying to test the login method by adding a user, and when I want to login, I get a 401 response insted of 200 UserController /** * Login form * @param user the user we are trying to log in ...
Marius Carchilan's user avatar
0 votes
1 answer
245 views

I know within the Spring @RestController class, we can do something like: @GetMapping("/" public ResponseEntity<Weather> getWeatherRecordsById(@PathVariable Integer id){ ...
PainIsAMaster's user avatar
0 votes
1 answer
66 views

Spring Boot 3.2.x / Spring Web 6.1.x In an app with both MVC controllers (returning HTML pages via JSP) and REST controllers, how can I implement global exception handling such that MVC controller ...
E-Riz's user avatar
  • 33.6k
0 votes
1 answer
51 views

I have a spring-controller with a post-endpoint that receives a WordDto. Another get-endpoint puts a list of WordDtos in the ModelMap and shows a jsp-file. In the jsp-file, I show each entry of the ...
Fi0x's user avatar
  • 183
0 votes
2 answers
186 views

I need to log trace information using a Tracer bean, which is request-scoped, in both my REST method and exception handler. The Tracer bean is consumed in the REST method to log the trace information ...
MiguelSlv's user avatar
  • 15.4k
-1 votes
1 answer
106 views

I am using spring boot 2.7.6, Gradle 8.6 and here is the application.properties file spring.mvc.servlet.path = /v3 spring.mvc.throw-exception-if-no-handler-found = true spring.mvc.static-path-pattern=/...
Test Email's user avatar
1 vote
0 answers
39 views

I have two rest controllers on the same package level with following code: First controller: @Slf4j @AllArgsConstructor @RestController @RequestMapping(API + NO_AUTH + "/payments/...
Pranay Tripathi's user avatar
0 votes
0 answers
58 views

In multipart formdata we accept the parts as with key-value pairs, is it possible to handle request with file without any key? curl --location --request GET 'endpoint' --form '=@"/C:/Users/User/...
Akash Rawat's user avatar
0 votes
1 answer
100 views

Im trying to create my own LoginController so i can watch the data flow more closely, but either my post method is wrong or my controller is missing something. Whenever I try to send a login request ...
Ganbalv's user avatar
0 votes
1 answer
74 views

public Page<DemoDto> find( @QuerydsPredicate(root = DemoEntiy.class) final Predicate predicate, @PageableDefault(size = 100) @SortDefault(sort = "id", direction = Sort....
DEEPAK MALIK's user avatar
0 votes
1 answer
318 views

I have a spring boot (3.2.1) application that run on java 17. I also have library that contains @Entity annotations. I am connection to database using spring boot default Hibernate. I am able to ...
Fleky's user avatar
  • 11
0 votes
3 answers
169 views

application properties: # Database Connection Properties spring.datasource.url=jdbc:mysql://localhost:3306/quizmaker spring.datasource.username=root spring.datasource.password=Corona@123 # Specify ...
Deepa Lakshmi.l's user avatar
0 votes
1 answer
54 views

I have a Map<Object, List> property. It correctly persists to SQL and a Spring Boot Repository correctly returns the Map. However, the JSON response from a Spring Boot Rest Controller only ...
abdlost's user avatar
  • 51
0 votes
3 answers
3k views

I am encountering a problem in my Spring Boot JPA application related to relationships between the Owner and Car entities. The issue arises when attempting to associate a new Car with an existing ...
Cyclone's user avatar
  • 25
1 vote
1 answer
764 views

I am running a unit test on a rest controller method addUser() which executes successfully without JSON path. Anytime I try to use jsonPath to perform strict data assertion to verify the content of ...
Solomon Otoo's user avatar
1 vote
1 answer
312 views

I created spring boot starter project with Rest application. When trying to run the application as Run on server it will redirect to web browser with URL till context-path but after adding endpoints ...
DhivyaViswanatha's user avatar
0 votes
1 answer
4k views

Environment : Java 17 Service is on Spring Boot 3 OpenAPI dependencies : 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0', 'org.springdoc:springdoc-openapi-starter-common:2.1.0', '...
Anthony Vinay's user avatar

1
2 3 4 5
33