java ssm 异常分类_SSM项目常见的异常与处理提示(一)
发布日期:2021-06-24 14:54:11 浏览次数:3 分类:技术文章

本文共 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 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:java定义矩形类_Java定义矩形类
下一篇:java web 防止sql注入攻击_JavaWeb防注入知识点(一)

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月17日 10时22分07秒