@@ -0,0 +1,1261 @@
+package ems.security;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;%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@Configuration%0A@EnableWebSecurity%0Apublic class SecurityConfiguration extends WebSecurityConfigurerAdapter %7B%0A%0A    @Autowired%0A    public void configuredGlobalSecurity( AuthenticationManagerBuilder auth ) throws Exception %7B%0A        auth.inMemoryAuthentication().withUser( %22in28minute%22 ).password( %22dummy%22 ).roles( %22USER%22, %22ADMIN%22 );%0A    %7D%0A%0A    @Override%0A    protected void configure( HttpSecurity http ) throws Exception %7B%0A        http.authorizeRequests()%0A            .antMatchers( %22/login%22 )%0A            .permitAll()%0A            .antMatchers( %22/%22, %22/*todo*/**%22 )%0A            .access( %22hasRole('USER')%22 )%0A            .and().formLogin()%0A            .and().exceptionHandling()%0A            .accessDeniedPage( %22/access-denied%22 );%0A    %7D%0A%7D%0A

Add Security Config class