A problem occurred evaluating root project 'springmvc'. > Could not find method compile() for arguments [org.webjars:bootstrap:3.3.7] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

The compile configuration has been deprecated for a while, and then eventually removed. See Upgrading your build from Gradle 6.x to the latest.