本文共 923 字,大约阅读时间需要 3 分钟。
1.常见bean name创建出现问题
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'student03' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition
xml的property和class不一致
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 73 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 73; columnNumber: 13;
xml没有配置name
2.web.xml无法加载配置文件
java.io.FileNotFoundException: ServletContext resource [/spring/] cannot be resolved to URL because it does not exist
param-value名字不一致
如果出现类似问题,可以查看配置文件的名字,路径,或者class类是否正确
3.文件上传解析器配置出现问题
No mapping found for HTTP request with URI [/hello-springmvc-config/%7BpageContext.request.contextPath%7D/test01.html] in DispatcherServlet
转载地址:https://blog.csdn.net/weixin_33478634/article/details/114134247 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!