我曾经在本地 tomcat 服务器上部署我的 WAR,并且在lib
tomcat 的文件夹中有一个 jackson-core.jar。现在,我已经切换到 maven 并且正在使用 jetty 插件。
一切正常,除了406 error - The server responded with 406 error (Not acceptable)
我知道错误即将到来,因为应用程序服务器(jetty)中没有jackson-core.jar。
问题:
如何像我为独立的 tomcat 服务器所做的那样在嵌入式码头的 lib 文件夹中放置一个 jar。这可能吗?
我尝试了以下方法:
<configuration>
<scanIntervalSeconds>5</scanIntervalSeconds>
<webAppConfig>
<contextPath>/myapp</contextPath>
<extraClasspath>/Users/myuser/Downloads/jackson-core-2.1.0.jar</extraClasspath>
</webAppConfig>
</configuration>