diff --git a/spring-session/jetty-session-demo/pom.xml b/spring-session/jetty-session-demo/pom.xml
index 86a8596862..19f0577d2e 100644
--- a/spring-session/jetty-session-demo/pom.xml
+++ b/spring-session/jetty-session-demo/pom.xml
@@ -37,6 +37,11 @@
org.springframework.boot
spring-boot-starter-web
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
diff --git a/spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java b/spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java
deleted file mode 100644
index 6350a68041..0000000000
--- a/spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.baeldung.spring.session.tomcatex;
-
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * Created by tschi on 11/12/2016.
- */
-@RestController
-public class TestController {
- @RequestMapping
- public String helloJetty() {
- return "hello Jetty";
- }
-}
diff --git a/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java b/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java
index 3e419b27a2..7476d7305d 100644
--- a/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java
+++ b/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java
@@ -14,7 +14,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
- .withUser("user").password("password").roles("USER").and()
.withUser("admin").password("password").roles("ADMIN");
}
@@ -23,8 +22,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http
.httpBasic().and()
.authorizeRequests()
- .antMatchers("/").permitAll()
- .antMatchers("/tomcat").hasRole("USER")
.antMatchers("/tomcat/admin").hasRole("ADMIN")
.anyRequest().authenticated();
}
diff --git a/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java b/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java
index 877f29e1d3..9728ff7fc9 100644
--- a/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java
+++ b/spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TestController.java
@@ -5,17 +5,6 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public class TestController {
-
- @RequestMapping
- public String helloDefault() {
- return "hello default";
- }
-
- @RequestMapping("/tomcat")
- public String helloTomcat() {
- return "hello tomcat";
- }
-
@RequestMapping("/tomcat/admin")
public String helloTomcatAdmin() {
return "hello tomcat admin";