The issue I was encountering in my Spring Boot application was that I had both spring-web-mvc and spring-web-flux dependencies included in my build.gradle.kts file.It seems the two dependencies cannot be enabled together.To resolve this I modified my application properties file by adding the following line spring.main.web-application-type=reactive