Skip to content

Commit 859b8fc

Browse files
committed
Jooby2 documentation: Wrong dependency on documentation page for JDBI module fix jooby-project#1437
1 parent 049cf4c commit 859b8fc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/asciidoc/modules/jdbi.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https://github.com/jdbi/jdbi[Jdbi] module.
66

77
1) Add the dependencies (hikari + jdbi):
88

9-
[dependency, artifactId="jooby-hikari:DataSource via HikariCP, jooby-hibernate:Jdbi Module"]
9+
[dependency, artifactId="jooby-hikari:DataSource via HikariCP, jooby-jdbi:Jdbi Module"]
1010
.
1111

1212
2) Add database driver (mySQL here):

docs/asciidoc/session.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ To use the javadoc:JWTSession[] session store you need to add the `jooby-jwt` de
267267
import io.jooby.session.JWTSession;
268268
269269
{
270-
String secret = "super secret key"; // <1>
270+
String secret = "super secret key"; // <1>
271271
272-
setSessionStore(new JWTSession(secret)); // <2>
272+
setSessionStore(new JWTSessionStore(secret)); // <2>
273273
274274
get("/", ctx -> {
275275
Session session = ctx.session();
@@ -288,9 +288,9 @@ import io.jooby.session.JWTSession;
288288
import io.jooby.session.JWTSession
289289
290290
{
291-
val secret = "super secret key" // <1>
291+
val secret = "super secret key" // <1>
292292
293-
sessionStore = JWTSession(secret) // <2>
293+
sessionStore = JWTSessionStore(secret) // <2>
294294
295295
get("/") {
296296
val session = ctx.session()

tests/src/test/java/io/jooby/SessionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public void jsonwebtokenSession(ServerTestRunner runner) {
272272
app.setSessionStore(new JwtSessionStore("7a85c3b6-3ef0-4625-82d3-a1da36094804"));
273273
app.get("/session", ctx -> {
274274
Session session = ctx.session();
275-
session.put("foo", "bar");
275+
session.put("foo" , "bar");
276276
return session.toMap();
277277
});
278278

0 commit comments

Comments
 (0)