@@ -0,0 +1,593 @@
+package com.github.piotr_rusin.yule.config;%0A%0Aimport org.springframework.security.config.annotation.web.builders.HttpSecurity;%0Aimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;%0Aimport org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;%0A%0A@EnableWebSecurity%0Apublic class SecurityConfig extends WebSecurityConfigurerAdapter %7B%0A%0A%09@Override%0A%09protected void configure(HttpSecurity http) throws Exception %7B%0A%09%09http%0A%09%09%09.authorizeRequests()%0A%09%09%09%09.antMatchers(%22/admin/**%22).hasRole(%22ADMIN%22)%0A%09%09%09.and()%0A%09%09%09%09.formLogin();%0A%09%7D%0A%7D%0A

Add SecurityConfig class