Error: “The method getContextPath() from the type HttpServletRequest refers to the missing type String”
Solution: See if the project’s jre is different from your local name (the jre version or the name is different will cause this problem).
Specific operation:
1. Right-click the project-Build Path-Configure Build Path, under the Libraries option, you will find an error jre Libraries, remove it.
2. Then right-click the project-Build Path-Add Library, select JRE System Library, select Workspace defaulr JRE (jdk1.6) (the JDK has been successfully installed and configured before), and then Finish.
Note: For your own experience, you must also check whether the environment variable configuration is correct, and then restart Eclipse and recompile the program clear.
Read More:
- [Go] Solve the empty interface interface{} cannot use (type []string) as type []interface {}
- How to Solve Error: Missing type map configuration or unsupported mapping
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’
- How to Solve TypeError: type numpy.ndarray doesn’t define __round__ method
- How to Solve TypeError: type numpy.ndarray doesn‘t define __round__ method
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- [Solved] Error while extracting response for type [] and content type []…
- There was an unexpected error (type=Method Not Allowed, status=405). Request
- How to Solve Error: Element ‘dependency’ cannot have character [children], because the type’s content type is element-
- The method println(boolean) in the type PrintStream is not applicable for the arguments (void) Error
- [Solved] TypeError: super(type, obj): obj must be an instance or subtype of type
- [Solved] fastapi error: {“detail”:[{“loc”:[“body”],”msg”:”field required”,”type”:”value_error.missing”}]}
- [Solved] IDEA JSP File out.println Error: Cannot resolve method ‘println(java.lang.String)’
- [Cadence Allegro PCB Design] error: Possible pin type conflict GND/VCC Power Connected to Output
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- [Solved] Compilation error: dereferencing pointer to incomplete type…
- [Solved] Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.DataSource>
- [Solved] Warning: using directive refers to implicitly-defined namespace ‘std’
- How to Solve Springboot Error: Failed to convert value of type
- How to Fix Cannot convert value of type Error