Skip to content
Snippets Groups Projects
Commit b8f41606 authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

shutdown service

parent 6bb4c73d
No related branches found
No related tags found
Loading
Checking pipeline status
package de.ozgcloud.eingang.xta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Service;
@Service
class ShutdownService {
@Autowired
private ConfigurableApplicationContext context;
public void shutdown() {
context.close();
}
}
......@@ -25,8 +25,6 @@ package de.ozgcloud.eingang.xta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment