草庐IT

ios-universal-framework

全部标签

java - Play Framework 2.3.7 : Static assets location not working in production

我看到了一些关于此的问题,但似乎无法深入了解。我有一个PlayFramework2.3.7(Activator1.2.12)站点,当我在开发模式下运行它时一切正常。当我在生产模式下启动它时,出现以下错误:[app]$start[info]WroteC:\Users\App\git\website2.0\target\scala-2.10\app_2.10-1.0-SNAPSHOT.pom[info]MainScalaAPIdocumentationtoC:\Users\App\git\website2.0\target\scala-2.10\api...[info]Compiling5

java - 在测试中迭代所有 Play Framework 路由

有什么方法可以在routes文件中迭代所有描述的服务?需要URL和HTTP方法。我需要这个功能来运行一些集成测试。我正在使用PlayforJava。 最佳答案 不容易。不久前我设法破解了它(没有scala诀窍)。我会发布该代码,也许它会有用。publicstaticListparseRoutes(){scala.Optionoption=Play.application().getWrappedApplication().routes();if(option.isDefined()){play.core.Router.Routesr

java.lang.NoSuchMethodError : com. google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V

我是selenium的新手。我在使用SeleniumWebDriver时遇到了一些问题。我想使用SeleniumWebDriver打开网站,例如www.filpkart.com我的代码packagecom.screen;importorg.openqa.selenium.*;importorg.openqa.selenium.firefox.FirefoxDriver;publicclassHTMLParseExample{publicstaticvoidmain(String[]args){WebDriverdriver=newFirefoxDriver();//Launchwebs

java - Spring Framework MVC 中的 "Webpage has expired"

我有一个基于SpringWeb模型-View-Controller(MVC)框架的项目。SpringWeb模型-View-Controller(MVC)框架的版本是3.2.8,部署在WebLogicServer版本:12.1.2.0.0我在1个JSP中有这个表单我使用POST方法执行了一些操作。之后我使用浏览器(IE11)后退按钮,但出现此错误WebpagehasexpiredMostlikelycause:•Thelocalcopyofthiswebpageisoutofdate,andthewebsiterequiresthatyoudownloaditagain.Somethin

java - 为什么我得到 java.io.IOException : Stream closed?

我正在尝试下载一个zip文件,但我收到了一个流关闭异常。当我使用swinggui时,它会出现此错误,但如果我使用控制台,则没有问题。为什么我会得到这个异常(exception)?我该如何解决?这是我的代码:URLConnectionconn=url.openConnection();InputStreamin=conn.getInputStream();FileOutputStreamout=newFileOutputStream(destination.getPath());byte[]b=newbyte[1024];intcount;while((count=in.read(b))

java - 在 cloudfoundry 上发布项目时出现错误 java.io.FileNotFoundException(log4j 日志文件)

我计划将Web应用程序与mysql服务一起迁移到cloudfoundry。但是我遇到了以下错误。它在本地环境下运行良好。也会生成日志文件。错误日志如下:Jan5,20137:35:59AMorg.cloudfoundry.reconfiguration.AbstractServiceConfigurerconfigureINFO:Nobeansoftypeorg.springframework.amqp.rabbit.connection.ConnectionFactoryfoundinapplicationcontextJan5,20137:35:59AMorg.apache.cat

java - 无法在 Ebean 服务器中注册类(Play Framework 2 - Java)

运行PlayFramework2.2.x(Java)项目时出现以下错误:ConfigurationerrorCannotregisterclass[models.SomeClass]inEbeanserver浏览器中显示的错误消息将我指向application.conf中的ebean.default="models.*"行,控制台告诉我我的一个方法中有一个java.lang.VerifyError:Badtypeonoperandstack。发生这种情况的方法没有什么特别之处,现在已经有少数方法发生了这种情况。我发现可以通过使用静态方法来避免错误:即将someObject.doJob(

java - 如何在 IntelliJ 中运行 Play Framework 2.1 项目?

我有一个现有的Play2.1项目。我一直在控制台上运行它并且运行良好。但是,当我尝试使用这些说明通过IntelliJ运行它时,它不起作用:https://www.jetbrains.com/help/idea/getting-started-with-play-2-x.html#run_debug_playApp首先,我尝试通过右键单击应用程序并选择“运行Play2应用程序”来运行它。它不会运行,它给了我这个错误:sbt.IncompatiblePluginsException:Binaryincompatibilityinpluginsdetected.在对该问题进行一些研究之后,我

java.io.IOException : error=2, 没有那个文件或目录

我正在尝试使用Runtime.getrunTime().exec从另一个java程序运行java程序代码:Stringjava_home=System.getenv("JAVA_HOME");String[]command={""+java_home+"/bin/java-cp-cp/sc/sug/p-lib/*Tdesigner-cd/pr-ining.rsp-out/scratch/sug/ng.pla-ad-stopO"};try{proc=Runtime.getRuntime().exec(command);proc.waitFor();intexitCode=proc.exi

java - Play framework 2.5.0 Websockets 示例

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭6年前。ImprovethisquestionPlayframework2.5.0Websockets示例。在play2.5.0中,websockets代码已更改为支持akka流,但我找不到使用它的示例代码。