diff --git a/spring-security-login/pom.xml b/spring-security-login/pom.xml
index 76a023e4ca..c3ed1ebb2d 100644
--- a/spring-security-login/pom.xml
+++ b/spring-security-login/pom.xml
@@ -12,11 +12,6 @@
-
- org.springframework.security
- spring-security-core
- ${org.springframework.security.version}
-
org.springframework.security
spring-security-web
diff --git a/spring-security-login/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java b/spring-security-login/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java
index 2758a707e6..b13c73dce3 100644
--- a/spring-security-login/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java
+++ b/spring-security-login/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java
@@ -23,6 +23,7 @@ public class ClientWebConfig extends WebMvcConfigurerAdapter {
public void addViewControllers(final ViewControllerRegistry registry) {
super.addViewControllers(registry);
+ registry.addViewController("/login.html");
registry.addViewController("/sample.html");
}
diff --git a/spring-security-login/src/main/webapp/WEB-INF/view/login.jsp b/spring-security-login/src/main/webapp/WEB-INF/view/login.jsp
new file mode 100644
index 0000000000..b026d0df44
--- /dev/null
+++ b/spring-security-login/src/main/webapp/WEB-INF/view/login.jsp
@@ -0,0 +1,7 @@
+
+
+
+
+ Login
+
+
\ No newline at end of file