Commit 650191d2 authored by Michael Menzel's avatar Michael Menzel

monitor startup session

parent d2c9ac01
......@@ -16,11 +16,11 @@
// along with Enhort. If not, see <https://www.gnu.org/licenses/>.
package de.thm.spring.run;
import de.thm.spring.backend.Sessions;
import de.thm.spring.backend.StatisticsCollector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
......@@ -40,6 +40,9 @@ public class Webinterface {
try {
SpringApplication.run(Webinterface.class, args);
Sessions.getInstance().addSession("monitorsession");
attachShutDownHook();
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment