I am using spring-retry v1.3.1 with @Retryable annotation and I have a few questions on its behaviour. Let’s say that in my spring boot application I have a retry configuration that makes my application wait 1 hour before retrying. If my application is killed (for example by kubernetes) while it was wai…
Tag: spring-boot
X-Ray trace doesn’t shows inner method call
I’m new to aws x-ray and trying to use x-ray with AOP based approach in a springboot application. I was able to get the traces in the aws console, but traces doesn’t show inner method call method2() details. Am I missing anything here. Controller class Aspect Class When I hit http://localhost:8080…
Spring boot – Maven – BUILD FAILURE
Hello I’m having trouble starting spring boot and I really don’t know whats going on. I have tried with the POM and the Aplication.properties but I just can’t find whats wrong. Here is the log: ——————————————…
Google Cloud Appengine returns ‘404 Error’ when calling Spring Boot REST APIs
I have deployed a spring boot application to Google cloud appengine service. When I run the application locally using mvn appengine:run everything works fine and I’m able to send requests to REST APIs and get expected responses back. In fact when I deploy the application to appengine I can see the appli…
org.springframework.dao.EmptyResultDataAccessException –>Help me fix this
I’m using this method to delete rows by giving list of ids if the given id is found it is deleted,if not it throws this EmptyResultDataAccessException help me fix this Answer Data access exception thrown when a result was expected to have at least one row (or element) but zero rows (or elements) were ac…
How to properly use Postgres-style url in Spring Boot application.yml
I’m trying to figure out if there is a way to configure Spring datasource using a single string that contains all credentials: By far I see that spring.datasource always requires username and password properties to be defined separately and url property to start with jdbc:. Is there some other way to co…
How to save generated pdf as blob in Java
In my Spring Boot app, I am generating pdf file from html string and save it a temp location by using the following approach: At this point, I want to save the generated pdf as blob and return it in a proper format. 1. The client will receive the blob file and then open it as pdf. In this case
Error while getting sql record using EntityManager
I am using EntityManager in spring boot app to get result from this query Its giving me correct output in PgAdmin but in java code List resultList = em.createNativeQuery(str).setParameter(1, sectionId ).getResultList(); Giving error ERROR: syntax error at or near “:” its breaking at data::jsonb .H…
Is it possible in main app to use dependancies from added dependancies?
The problem I have is that I have a Library which I want to use in the Main App. In the Library I have added external libraries, and the question is, is it possible to use directly code of this external libraries in Main App despite of that these libraries are not added directly to Main App but to my
How to set a list as an Enum constant argument?
How do I pass a List type value in the constant parameter? In this case, this parameter is only for the PARS() constant. Update: I ended up not mentioning it in the post but it’s a list of object and not a string. Answer Enums are objects instantiated from a class, like other objects and classes. So if …