无法使用自动配置脚本在代理后面下载嵌入式MongoDB [英] Unable to download embedded MongoDB, behind proxy, using automatic configuration script
问题描述
我有一个使用Maven构建的Spring Boot项目,我打算在其中使用嵌入式mongo db。我在Windows 7上使用Eclipse。
I have a Spring Boot project, built using Maven, where I intend to use embedded mongo db. I am using Eclipse on Windows 7.
我在使用自动配置脚本的代理后面,正如我在Internet Options的Connection选项卡中观察到的那样。
尝试运行应用程序时出现以下异常。
I am behind a proxy that uses automatic configuration script, as I have observed in the Connection tab of Internet Options. I am getting the following exception when I try to run the application.
java.io.IOException:无法打开inputStream用于 https://downloads.mongodb.org/win32/mongodb- win32-i386-3.2.2.zip
位于de.flapdoodle.embed.process.store.Downloader.downloadInputStream(Downloader.java:131)〜[de.flapdoodle.embed.process-2.0。 1.jar:na] de.flapdoodle.embed.process.store.Downloader.download(Downloader.java:69)中的
〜[de.flapdoodle.embed.process-2.0.1.jar:na]
....
java.io.IOException: Could not open inputStream for https://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.2.zip at de.flapdoodle.embed.process.store.Downloader.downloadInputStream(Downloader.java:131) ~[de.flapdoodle.embed.process-2.0.1.jar:na] at de.flapdoodle.embed.process.store.Downloader.download(Downloader.java:69) ~[de.flapdoodle.embed.process-2.0.1.jar:na] ....
当我在Web浏览器中单击以下URL时,MongoDB的下载就很好了:
MongoDB gets downloaded just fine, when I hit the following URL in my web browser:
https://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.2.zip
这使我相信可能是我在Eclipse中缺少某些配置,或者可能是Maven项目本身。
请帮助我找到正确的配置。
This leads me to believe that probably I'm missing some configuration in my Eclipse or may be the maven project itself. Please help me to find the right configuration.
推荐答案
在Windows机器上对我有用的东西:
What worked for me on a windows machine:
下载zip文件( https://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.2.zip )手动
并将其(未解包)放入此文件夹:
Download the zip file (https://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.2.zip) manually and put it (not unpack) into this folder:
C:\Users\<Username>\.embedmongo\win32\
这篇关于无法使用自动配置脚本在代理后面下载嵌入式MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!