From 77dca6b951eca0d4087343d63b516b7f3dff6799 Mon Sep 17 00:00:00 2001 From: efim Date: Wed, 28 Jun 2023 08:29:38 +0000 Subject: [PATCH] feat(12): plugin to restart dev server in sbt --- 12-order-summary-component-thymeleaf/project/plugins.sbt | 1 + .../src/main/scala/example/Main.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 12-order-summary-component-thymeleaf/project/plugins.sbt diff --git a/12-order-summary-component-thymeleaf/project/plugins.sbt b/12-order-summary-component-thymeleaf/project/plugins.sbt new file mode 100644 index 0000000..59cd318 --- /dev/null +++ b/12-order-summary-component-thymeleaf/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("io.spray" % "sbt-revolver" % "0.10.0") diff --git a/12-order-summary-component-thymeleaf/src/main/scala/example/Main.scala b/12-order-summary-component-thymeleaf/src/main/scala/example/Main.scala index 5006fca..a165924 100644 --- a/12-order-summary-component-thymeleaf/src/main/scala/example/Main.scala +++ b/12-order-summary-component-thymeleaf/src/main/scala/example/Main.scala @@ -44,7 +44,7 @@ object Main { val templateEngine = new TemplateEngine() templateEngine.setTemplateResolver(templateResolver) - val a = 11234 + val a = 11 val context = new Context() context.setVariable("name", s"Johny $a")