BAEL-4098: Add note about spring security

This commit is contained in:
Michael Pratt 2020-06-20 12:33:30 -06:00
parent f06b1f6296
commit 2ac608dfd3
1 changed files with 4 additions and 3 deletions

View File

@ -1,15 +1,16 @@
package com.baeldung.caffeine;
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.configuration.EnableWebSecurity;
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
@EnableWebSecurity
@Import(SecurityProblemSupport.class)
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override