upgrade the version of the spring-boot-starter-parent. it worked for me. Got o start.spring.io and you will see the latest springboot version, as in: 4.0.0