xxxxxxxxxx
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
xxxxxxxxxx
Remove the javax.servlet / javax.servlet-api / 4.0.1 dependency.
Search your application codebase for any remaining references to javax.servlet and change them.
Use the Maven dependency tree plugin to try to identify which of your applications dependencies has a dependency on the old javax.servlet API. Look for newer versions of those dependencies that use jakarta.servlet instead.