Skip to content

Tag: spring-boot

spring boot REST POST method doesn’t work

I want to get the streamName parameter, which is generated when executing one method in the program where I made HTTPRequest and in response I want to get the generated hex string. I couldn’t find what is missing. This is my code in spring boot: PostResponse class: method on another program where i make…

Spring Boot get JSON Error representation in the ErrorController

Spring Boot provides errors in the json format like this: Is it possible for me to obtain this error inside the ErrorController and to proceed with it? Is it inside the HttpServletResponse or maybe something else? Answer The default error attributes are extracted from a WebRequest using the ErrorAttributes be…

Seeding Initial Data – Spring Boot with data.sql

data.sql is executed before JPA entities are created and it creates the error that the table is not found. can anyone help me with it? I have seen the same question in this link Spring Boot – Loading Initial Data but the question is not answered. Answer This is a normal and wanted behaviour from Springb…