BAEL-4098: Add note about spring security
This commit is contained in:
parent
f06b1f6296
commit
2ac608dfd3
|
@ -1,15 +1,16 @@
|
||||||
package com.baeldung.caffeine;
|
package com.baeldung.caffeine;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.Import;
|
|
||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
||||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
||||||
import org.zalando.problem.spring.web.advice.security.SecurityProblemSupport;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Because the POM imports Spring Security, we need a simple security
|
||||||
|
* configuration for this example application to allow all HTTP requests.
|
||||||
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebSecurity
|
@EnableWebSecurity
|
||||||
@Import(SecurityProblemSupport.class)
|
|
||||||
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue