From 603ce1cb2d2ccf17c6d60fae0ea373f3df9e8e95 Mon Sep 17 00:00:00 2001 From: hyakutake Date: Fri, 10 May 2024 18:55:27 +0900 Subject: [PATCH] availableProcessors --- .../java/com/example/ecsfgex/controller/IndexController.java | 1 + src/main/resources/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/ecsfgex/controller/IndexController.java b/src/main/java/com/example/ecsfgex/controller/IndexController.java index 50abb63..021e9ae 100644 --- a/src/main/java/com/example/ecsfgex/controller/IndexController.java +++ b/src/main/java/com/example/ecsfgex/controller/IndexController.java @@ -22,6 +22,7 @@ public class IndexController { String index(Model model) { model.addAttribute("contents", contents); model.addAttribute("envMap", new TreeMap(System.getenv())); + model.addAttribute("availableProcessors", Runtime.getRuntime().availableProcessors()); return "index"; } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 4f716f5..c280cd9 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -10,7 +10,7 @@

ecsfgex default text on thymeleaf template!!

-

ああああああああ

+