Jetty在Spring工程中启动报错

在使用Jetty运行Spring工程时遇到启动问题,通过在web.xml文件的web-app标签中添加metadata-complete="true"属性可以解决。此设置有助于正确解析应用的元数据,避免启动报错。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动时报错信息如下:

java.lang.ArrayIndexOutOfBoundsException: 48188
	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:646)
	at org.eclipse.jetty.annotations.AnnotationParser$2.processEntry(AnnotationParser.java:618)
	at org.eclipse.jetty.webapp.JarScanner.matched(JarScanner.java:155)
	at org.eclipse.jetty.util.PatternMatcher.matchPatterns(PatternMatcher.java:82)
	at org.eclipse.jetty.util.PatternMatcher.match(PatternMatcher.java:64)
	at org.eclipse.jetty.webapp.JarScanner.scan(JarScanner.java:78)
	at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:630)
	at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:639)
	at org.eclipse.jetty.annotations.AnnotationConfiguration.parseWebInfLib(
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值