This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Spring will load properties from the following locations: | |
# | |
# 1.) A "/config" subdirectory of the current directory. | |
# 2.) The current directory | |
# 3.) A classpath "/config" | |
# 4.) The classpath root | |
# Or pass them on the command line to override property file. | |
# -Dldap-port=9989 -Dsecure-end-points=/a/c/** etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.levvel.blog.spring.security.ldap.auth</groupId> | |
<artifactId>levvel-spring-security-blog</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<apacheds.version>1.5.5</apacheds.version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer; | |
public class SecurityWebApplicationInitializer extends AbstractSecurityWebApplicationInitializer { | |
public SecurityWebApplicationInitializer() { | |
super(SecurityConfig.class); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.PropertySource; | |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; |