Jersey / * servlet映射導(dǎo)致靜態(tài)資源出現(xiàn)404錯(cuò)誤如果我將Jersey的url-pattern映射到2.0版本中的/ *,則會(huì)導(dǎo)致404所有靜態(tài)資源(例如/index.html)。我的web.xml有:<servlet>
<servlet-name>JerseyApp</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.frog.jump.JerseyApp</param-value>
</init-param>
<load-on-startup>1</load-on-startup></servlet><servlet-mapping>
<servlet-name>JerseyApp</servlet-name>
<url-pattern>/*</url-pattern></servlet-mapping>如何使用相同的網(wǎng)址格式提供靜態(tài)內(nèi)容?
添加回答
舉報(bào)
0/150
提交
取消