Commit 27f22229 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Add actuator endpoint for finding and deleting sessions"

Closes gh-8342
parent cf151b17
...@@ -108,7 +108,7 @@ The following technology agnostic endpoints are available: ...@@ -108,7 +108,7 @@ The following technology agnostic endpoints are available:
|`sessions` |`sessions`
|Allows retrieval and deletion of user's sessions from Spring Session backed session |Allows retrieval and deletion of user's sessions from Spring Session backed session
store. store.
|`shutdown` |`shutdown`
|Allows the application to be gracefully shutdown (not enabled by default). |Allows the application to be gracefully shutdown (not enabled by default).
......
...@@ -26,6 +26,10 @@ import org.springframework.security.provisioning.InMemoryUserDetailsManager; ...@@ -26,6 +26,10 @@ import org.springframework.security.provisioning.InMemoryUserDetailsManager;
@SpringBootApplication @SpringBootApplication
public class SampleSessionApplication { public class SampleSessionApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleSessionApplication.class);
}
@Bean @Bean
public UserDetailsService userDetailsService() { public UserDetailsService userDetailsService() {
InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager(); InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager();
...@@ -34,8 +38,4 @@ public class SampleSessionApplication { ...@@ -34,8 +38,4 @@ public class SampleSessionApplication {
return manager; return manager;
} }
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleSessionApplication.class);
}
} }
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