Problem background
Today, when learning spring MVC, you need to configure the web.xml file, and an error message element web app must be declared appears.
Solution:
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0"
metadata-complete="true">
</web-app>
Read More:
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- Prompt unknown error in pom.xml of Maven project
- [Solved] Spring cloud introduces zuul dependency error
- Gateway Error: Cannot resolve org.springframework.cloud:spring-cloud-starter-gateway:unknown
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- [Maven] Pom.xml error: Cannot detect Web Project version.
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- [Solved] Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.DataSource>
- [Solved] springmvc:Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor
- [neo4j] error report when visiting neo4j in spring boot project
- Error when Struts2 started Tomcat: org.apache.catalina.core.StandardContext filterStart
- Chart.js Error: “Canvas is already in use. Chart …must be destroyed before the canvas can be reused”
- Using Jenkins to compile APK Error [How to Solve]
- ApplicationContext.xml file header error Referenced file contains errors
- Nacos Error: server is DOWN now, please try again later! [How to Solve]
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- [Solved] Error: Failed to download metadata for repo ‘docker-ce-stable‘: Cannot download repomd.xml:
- Vue Error compiling template: Component template should contain exactly one root element. If you
- Springcloud configuration center client 3355 startup Error: error on get request for“ http://localhost:8761/eureka/apps/ “: Connection