에러2 [에러모음] Failed to evaluate expression 'hasRole('ROLE_USER') or hasRole('ROLE_MANAGER') or hasROLE('ROLE_ADMIN')' 에러 설명 자바 프로젝트에서 SecurityConfig.java를 통해 시큐리티 필터를 거쳐 웹 페이지 접근할 때 생긴 에러 @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) @RequiredArgsConstructor public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.sessionManagement().sessionC.. 2023. 3. 19. [에러모음] java.lang.UnsupportedClassVersionError 에러 설명 자바 스프링 프레임워크에서 새로 프로젝트를 만든 후 프로젝트 실행 했을 때 빌드가 제대로 되지 않아 나는 에러 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/SpringApplication has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 해결 스프링 부트 버전 맞게 낮추면 된다 (나의 경우는 원래 3.0.3 으로 되어 있던걸 .. 2023. 3. 2. 이전 1 다음