我正在尝试在本地运行一个jruby rails应用程序,并且bundler会抛出以下错误
Bundler :: GemRequireError:尝试加载时出错 宝石' manticore'。
我的ResourceConfig
成功,@Bean
public ServletRegistrationBean publicJersey() {
ServletRegistrationBean publicJersey
= new ServletRegistrationBean(new ServletContainer(new PublicConfig()));
publicJersey.addUrlMappings("/rest/public/*");
publicJersey.setName("PublicJersey");
publicJersey.setLoadOnStartup(0);
return publicJersey;
}
@Bean
public ServletRegistrationBean privateJersey() {
ServletRegistrationBean privateJersey
= new ServletRegistrationBean(new ServletContainer(new PrivateConfig()));
privateJersey.addUrlMappings("/rest/private/*");
privateJersey.setName("PrivateJersey");
privateJersey.setLoadOnStartup(1);
return privateJersey;
}
确认该宝石存在于我的本地环境中。
manticore(0.5.2 java)
不确定为什么没有加载宝石!?
Ruby - " jruby-1.7.16.1"
Java - " 1.8.0_40"
答案 0 :(得分:0)
重新安装gem并查看它是否加载。