编译没出错
运行报以下错
Exception in thread main java.lang.ArrayIndexOutOfBoundsException 0
原因
用了主方法的参数,运行的时候没有输入参数
tomcat启动报错
Parse error in application web.xml file at jndi ......
Invalid <url-pattern> ......in servlet mapping
原因之一
web.xml文件中
<url-pattern></url-pattern> 之间少了 /
Struts出现No getter method for property XX of bean org.apache.struts.taglib.html.BEAN
没有定义get/set方法
定义的变量首字母要小写
本文详细解析了编程过程中常见的错误类型,包括编译错误和运行时错误,如ArrayIndexOutOfBoundsException、tomcat启动报错、Struts错误等。提供了解决这些问题的步骤和方法,帮助开发者快速定位并解决错误,提高开发效率。

被折叠的 条评论
为什么被折叠?



