EN VI
Posts (0)
Questions (10)
2024-03-11 07:00:05
You need to add getters/setters to your MappedSuperClass and may have to create a custom AllArgsConstructor as Lombok doesn't do a super() in its generated AllArgsConstructor.
2024-03-12 01:00:05
this should work @Scheduled(cron = "${scheduled.everyThreeHours}") public void runCleanupSchedule() throws IOException { ... } in your application.properties add scheduled.everyThreeHours schedul...
Tags: java spring spring-boot
2024-03-12 18:30:06
I've used BeanNameGenerator for this. public class PrefixingBeanNameGenerator extends AnnotationBeanNameGenerator { private final String prefix; public PrefixingBeanNameGenerator(String pref...
Tags: java spring-boot
2024-03-12 22:30:09
Take a close look at your code. You have a nested try/catch. In your outer try/catch, you're catching Exception, which is a superclass of every exception. Therefore, any exception thrown by the inn...
Tags: java spring-boot exception
2024-03-14 03:30:05
For Spring Boot 1.X, you won't have these endpoints out of the box. However, you can implement custom health check endpoints to achieve similar functionality. Create Custom Health Indicators: Implemen...
2024-03-14 06:00:07
If you want to change the Springbok starting logo with another logo, that is acceptable , but If you want to change the Springbok starting logo with another image , that is unacceptable go to webseite...
Tags: java spring spring-boot
2024-03-14 17:00:04
Based on this: WORKDIR /app COPY --from=build-stage /app/target/*.jar app.jar your app.jar goes to /app/app.jar, not /app.jar. The current directory in docker image build is always the latest WORKDIR...
Tags: java spring-boot docker
2024-03-15 03:00:08
@ResponseStatus only allows you to use HttpStatus as the parameter, and HttpStatus does not allow you to provide a custom code (it's an enum, so the set of values is fixed). To return a custom status...
Tags: java spring-boot rest
2024-03-15 10:00:07
use different data objects for data persistence to the database, from the request object that the API uses. e.g. public class Question { private Long id; private Integer idSurvey; privat...
Tags: java spring-boot rest
2024-03-15 14:30:05
Looking at the package photo you uploaded, it appears that there are two QuizappApplication classes. (com.surbhi.quizapp, com.surbhi.quizapp.service) Will the same problem occur if I remove the Quizap...
Tags: java spring spring-boot

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login