/*
 * Copyright 2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.springlets.security.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;

import io.springlets.security.jpa.config.SpringletsSecurityJpaAuthenticationConfiguration;

/**
 * Configuration to setup Spring Security
 * authentication.
 *
 * @author Enrique Ruiz at http://www.disid.com[DISID Corporation S.L.]
 */
@Configuration
@EnableWebSecurity
@Import(SpringletsSecurityJpaAuthenticationConfiguration.class)
public class SpringletsWebSecurityConfiguration {

//  @Bean
//  public SpringSecurityDialect securityDialect() {
//    return new SpringSecurityDialect();
//  }

  @Bean
  @Order(Ordered.HIGHEST_PRECEDENCE)
  public SpringletsWebSecurityConfigurer springletsWebSecurityConfigurer() {
    return new SpringletsWebSecurityConfigurer();
  }

  /**
   * Initialize {@link SpringletsSecurityMDCUserNameFilter} filter to incorporate the username
   * in log messages.
   *
   * @return the filter SpringletsSecurityMDCUserNameFilter
   */
  @Bean
  public SpringletsSecurityMDCUserNameFilter registerMDCUserNameFilter() {
    return new SpringletsSecurityMDCUserNameFilter();
  }

}

@@ -1005,83 +1005,8 @@
 ity;
-%0Aimport org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;
 %0A%0Aim
@@ -1392,120 +1392,8 @@
  %7B%0A%0A
-//  @Bean%0A//  public SpringSecurityDialect securityDialect() %7B%0A//    return new SpringSecurityDialect();%0A//  %7D%0A%0A
   @B

Remove dead imports