Skip to content

Commit 00bff39

Browse files
adding Spring Sec Config
1 parent 4c1e59d commit 00bff39

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package guru.springframework.config;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
5+
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
6+
7+
/**
8+
* Created by jt on 12/28/15.
9+
*/
10+
@Configuration
11+
public class SpringSecConfig extends WebSecurityConfigurerAdapter {
12+
13+
@Override
14+
protected void configure(HttpSecurity http) throws Exception {
15+
http.authorizeRequests().antMatchers("/").permitAll();
16+
}
17+
}

0 commit comments

Comments
 (0)