ratpack

    1热度

    2回答

    我试图关注this blogpost,它演示了ratpack中的阻塞处理程序,但是我无法使其工作。我正在为背景丢失方法异常。 我的build.gradle文件是从this GitHub directory buildscript { repositories { maven { url "http://oss.jfrog.org/artifactory/repo" }

    0热度

    1回答

    我通过网页发送数据到服务器发送数据。 $("#1, #2, #3, #4").on("click", function(){ console.log($(this).attr("id")); var xhr = new XMLHttpRequest(); xhr.open("POST", "SimpleServlet.html", true);

    0热度

    1回答

    在ratpack的post方法处理程序中,在一定长度的xml之后不会执行以下操作。试图改变内容的长度,但它没有奏效。任何帮助将不胜感激。谢谢。 ctx.request.getBody().then{ body-> println body.text }

    0热度

    1回答

    因此,我知道如何在我的处理程序单元测试中正确检查何时抛出异常。 但是,当我想确保不抛出异常时,正确的方法是什么? 这是我想出来的迄今最好的: def "No exception is thrown"() { given: def noExceptionThrown = false when: def result = RequestFixture.hand

    0热度

    1回答

    我试图按照示例Ratpacked: Using PostgreSQL Database,但我得到IntelliJ IDEA中的错误'of' in 'ratpack.config.ConfigData' can not be applied to '(groovy.lang.Closure<ratpack.config.ConfigDataBuilder>)'。 ratpack { bin

    0热度

    2回答

    Iam使用JOOQ/Hikari在Postgres上执行数据库操作。我一直试图查看在生成的DAO上使用JOOQ的事务操作的一些示例。我的大多数同事都使用Spring交易,但我使用Guice作为DI,所以不想把春天带入画面。任何链接或想法都不胜感激?如果这很重要,我的应用程序建立在Ratpack上。

    0热度

    1回答

    我试图合并使用ratpack.groovy中的ServerConfig块的服务器和数据库配置,但尝试创建数据源时postgresConfig为空。 PostgresConfig.groovy @Compile Static class PostgresConfig { String user String password String serverName

    0热度

    2回答

    我想为我的应用程序添加一种hello/name(用于健康检查),但我不想做我的chainAction的那部分。 .handlers(chain -> chain .prefix("api", TaskChainAction.class)) ); 需要添加第二个问候语而不使用“api”前缀? 我试图 .handlers(chain-> chain .

    0热度

    1回答

    如何在ratpack中使用blocking.get方法后返回一个对象或列表。 Blocking.get(()-> xRepository.findAvailable()).then(x->x.stream().findFirst().get()); 上面的代码返回void - 我希望能够做到像下面这样的东西,以便它返回then子句中的对象。我试着添加一个return语句,但不起作

    0热度

    1回答

    我想写一个JUnit测试,注入服务依赖关系。 protected MainClassApplicationUnderTest aut = new MainClassApplicationUnderTest(App.class) { @Override protected void addImpositions(final ImpositionsSpec impositions)