當我加載web應用時,發現會有java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:這個錯誤。
原來是我的web.xml中出現了問題。
下面是我的web.xml文件部分內容。
<servlet>
<servlet-name>regeister</servlet-name>
<servlet-class>org.eblly.bean.Register</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>
第一個<servlet-name> 與第二個<servlet-name>不匹配,導致錯誤。
时间: 2024-08-05 07:07:09