dev/2025-02-19-15-17
This commit is contained in:
parent
5b44efc566
commit
c3233330c4
@ -26,12 +26,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.csrf().disable()
|
||||
.authorizeRequests()
|
||||
.antMatchers("/api/employee/**").hasAnyAuthority("ROLE_EMPLOYEE", "ROLE_ADMIN")
|
||||
/*.antMatchers("/h2-console/**").permitAll()
|
||||
.antMatchers("/edu/v1/user/register").permitAll()
|
||||
.antMatchers("/edu/v1/user/username/{username}").permitAll()
|
||||
.antMatchers("/edu/v1/authority/**").hasAuthority("ROLE_ADMIN")
|
||||
.antMatchers("/edu/v1/user/authority/**").hasAuthority("ROLE_ADMIN")
|
||||
.antMatchers("/edu/v1/user/**").hasAnyAuthority("ROLE_USER", "ROLE_ADMIN")*/
|
||||
/*
|
||||
.antMatchers("url").permitAll()
|
||||
.antMatchers("url").hasAuthority("ROLE_ADMIN")*/
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.httpBasic()
|
||||
|
@ -0,0 +1,4 @@
|
||||
package com.example.nto.controller;
|
||||
|
||||
public class AdminController {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user