I am having a problem converting input String to money. I am creating a spring boot application with thymeleaf. I have a web page where user inputs the data and there is a particular field where he inputs the String and it needs to be converted to type joda.money as in my pojo class that field has money data …
Tag: spring-boot
How starter-web prevent spring-boot exit?
When using spring-boot-starter-web, The spring-boot application won’t exit after startup. And with Jetbrain IDEA, There is an icon show spring-boot start up finished: But if I using : Or Can let spring-boot keep running but the IDEA icon will loading forever, So that must be different way compare with s…
Spring boot – org.postgresql.util.PSQLException: FATAL: password authentication failed for user “postgres” [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 8 m…
Spring JPA/Hibernate – OneToMany bi-directional problem
I’ve encountered this problem that won’t let me sleep I have 2 entities Property and Tenant each property can have 0..1 tenant, each tenant can have 1..N properties what am I trying to accomplish is when I create a new tenant, using cascading I want to attach it to an existing property saving is d…
Add 2 list of objects and remove duplicate(all but one field different) elements from the final list
I have a object class like I have 2 lists 1st one is like {d1,m1,active}, {d2,m2,active},{d3,m3,acticve} 2nd one {d2,m2,paused},{d4,m4,paused} i want my final list to be like {d1,m1,active},{d2,m2,paused},{d3,m3,active},{d4,m4,paused} My approach was to make a list of commonName{d2} then add both the list{d1,…
NullPointerException while send a otp mail using springboot
I was trying to send a otp mail using springboot. I have already created a login page from where the mail will be provided to sendotp(). Or you can help by providing code for how to send mail otp using springboot. Here is my code : OtpControllerclass – EmailSenderService class : Wnen I am calling sendOt…
How to read the response of a REST api in spring boot [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago. Improve this question I am making request to a post API using RestTemplate which will give resp…
How to read a static file on Heroku deployment on Spring Boot
How can I solve this situation? I have a static JSON file on my src/main/resources and when I run the code, I use this JSON to create some data, but when I try to deploy on heroku I get this error, probably because they couldn’t find the FUNDOS.json file. Does anyone have an idea on how to solve that? C…
How to modify the port of https(http) URL?
Originally, I have a website with nginx and Ubuntu 20.04 port at 80(http) and 443(https), the URL is https://mysite.cc (It works well) And now, I want to set another site with Spring Cloud (Docker) with the URL https://new.mysite.cc How to set the nginx or the docker of Spring cloud? Right now, all of the two…
@RestControllerAdvice Stops Working Properly when using @ResponseStatus too
I am using RestControllerAdvice to return custom responses dependending on the type of exception that happened (they are all runtime exceptions), this was the first time that I used it today and it was a very weird experience because at testing with postman and local it worked perfectly, but when we deployed …