diff --git a/pom.xml b/pom.xml
index b5867cecb6..2139a8aa0a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -773,7 +773,7 @@
spring-mvc-kotlin
spring-mvc-simple
spring-mvc-simple-2
- spring-mvc-views
+ spring-mvc-views
spring-mvc-velocity
spring-mvc-webflow
spring-mvc-xml
@@ -1514,7 +1514,7 @@
spring-mvc-kotlin
spring-mvc-simple
spring-mvc-simple-2
- spring-mvc-views
+ spring-mvc-views
spring-mvc-velocity
spring-mvc-webflow
spring-mvc-xml
diff --git a/spring-mvc-views/pom.xml b/spring-mvc-views/pom.xml
index 97666e1741..c3a3540fce 100644
--- a/spring-mvc-views/pom.xml
+++ b/spring-mvc-views/pom.xml
@@ -5,7 +5,7 @@
4.0.0
spring-mvc-views
war
- spring-mvc-themes
+ spring-mvc-views
com.baeldung
diff --git a/spring-mvc-views/src/main/java/com/baeldung/config/DataSourceConfig.java b/spring-mvc-views/src/main/java/com/baeldung/config/DataSourceConfig.java
index ff47bd7047..803c30f29d 100644
--- a/spring-mvc-views/src/main/java/com/baeldung/config/DataSourceConfig.java
+++ b/spring-mvc-views/src/main/java/com/baeldung/config/DataSourceConfig.java
@@ -19,8 +19,8 @@ public class DataSourceConfig {
public DataSource dataSource() {
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
return builder.setType(EmbeddedDatabaseType.HSQL)
- .addScripts("db/sql/create-db.sql", "db/sql/insert-data.sql")
- .build();
+ .addScripts("db/sql/create-db.sql", "db/sql/insert-data.sql")
+ .build();
}
@Bean
diff --git a/spring-mvc-views/src/main/java/com/baeldung/config/SecurityConfig.java b/spring-mvc-views/src/main/java/com/baeldung/config/SecurityConfig.java
index 4d96d04ce9..2e0a413cf3 100644
--- a/spring-mvc-views/src/main/java/com/baeldung/config/SecurityConfig.java
+++ b/spring-mvc-views/src/main/java/com/baeldung/config/SecurityConfig.java
@@ -26,27 +26,26 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.jdbcAuthentication()
- .passwordEncoder(passwordEncoder())
- .dataSource(dataSource);
+ .passwordEncoder(passwordEncoder())
+ .dataSource(dataSource);
}
@Override
protected void configure(HttpSecurity http) throws Exception {
- http
- .csrf()
- .disable()
- .authorizeRequests()
- .antMatchers("/anonymous*").anonymous()
- .antMatchers("/login*").permitAll()
- .anyRequest().authenticated()
- .and()
- .formLogin()
- .and()
- .logout()
- .logoutUrl("/logout.do")
- .invalidateHttpSession(true)
- .clearAuthentication(true);
+ http.csrf()
+ .disable()
+ .authorizeRequests()
+ .antMatchers("/anonymous*").anonymous()
+ .antMatchers("/login*").permitAll()
+ .anyRequest().authenticated()
+ .and()
+ .formLogin()
+ .and()
+ .logout()
+ .logoutUrl("/logout.do")
+ .invalidateHttpSession(true)
+ .clearAuthentication(true);
}
@Override