1. There are many cases of this exception. First of all,
when configuring sqlsessionfactorybean, you should not pay attention to the problem (see the figure)
the same as above, when configuring other places, you also use ref as value. For example,
PS: combined with the above, it can discharge itself. Pay attention to whether it is this problem
2. Problems that we didn’t pay attention to when configuring servlets with web.xml
as shown in the figure: after the integration, the configuration file should not be MVC, but should be all. Generally, when creating a configuration file, there will be a prompt in the upper right corner, which may cause this kind of problem if you don’t pay attention to it. Generally, my solution is to use the import tag (as shown in the figure)
import all the configuration files into a general file
and then import the web and XML into the general file as follows
PS: there are some special reasons, which vary from person to person. Hope someone can add!
Read More:
- [Solved] JAVA Project Import jstl Error: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- IDEA Import Servlet Package Error [How to Solve]
- Continuous Error 404 in servlet operation [How to Solve]
- [Solved] Tomcat runs JavaWeb servlet Error 404
- [Solved] IDEA2020 Error: Cannot resolve symbol ‘Servlet‘
- [Solved] Error creating bean with name ‘org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0‘:
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- [Solved] MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
- [Solved] Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- [Solved] fastjson Error: write javaBean error, fastjson version 1.2.76, class io.undertow.servlet.xx
- Solution to javax.naming.noinitialcontextexception error
- [Solved] javax.crypto.BadPaddingException: Decryption error
- [Solved] Minio Error: javax.xml.stream.XMLStreamException: ParseError
- [Solved] nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
- [Solved] IDEA Add maven Project Error: Error:(3,21)java: Package javax.servletdoes not exist
- Error resolution: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/Datatype
- [Solved] No validator could be found for constraint ‘javax.validation.constraints.NotBlank’ validating type ‘java.lang.String’
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- [Solved] init datasource error, url: jdbc:mysql://localhost:3306/test