Skip to content

Tag: spring-boot

Factory design patter Spring Boot double bean

Calling method executeSPV from abstract class If I remove @Componet from Upload and Download classes I receive error I need to add Bean for abstrcat class CommndBase If I use @Compoment on Upload and Download classes I receive dual Bean is useed… Field command in .Controller required a single bean, but …

Non-resolvable parent POM for xxx

I’m trying to package a maven project and the IDEA console says “Non-resolvable parent POM for xxx”. The parent pom has been put in my maven local repository but can not be resolved by the submodules. The submodule’s pom.xml reports errors like this. The parent pom.xml looks like this …

Springboot – validate @RequestBody

Question: It is possible to validate the JSON payload of a request body, without specifically writing if statements? Maybe via annotation or configuration? I have a very easy POJO: And a very easy controller class: If I query with a payload such as: Everything is working perfectly fine, very happy. However, i…