Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 Tomcat 下本地运行我的 grails 应用程序时,我没有收到任何错误。当我在远程 Web 服务器上部署 WAR 时,当我尝试发出使用 HTTPBuilder 的 AJAX 请求时出现此异常。
这怎么可能发生?
你运行你的应用程序是像 STS 这样的 IDE 吗?如果是这样,可能 HTTPBuilder 的 Jars 在您的构建/运行路径中,但不在 Grails 应用程序的 lib 目录中,或者未列为“生产”依赖项。