JDK17(2)
-
Spring boot 3.2.5 and JDK17 셋팅
서비스 Prot 설정# application.propertiesserver.port=8080로깅설정# application.propertieslogging.level.root=infologging.level.{원하는 패키지}=debugFilter 설정JDK17에서는 jakarta.servlet.Filter를 사용해야 됨chain.doFilter(request, response)가 빠지면 안됨urlPatterns를 "/*"로 설정해야 함# 필터 생성@Slf4jpublic class AuthFilter implements Filter {@Override public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletRes..
2024.05.19 -
Spring boot 3.2.3 설정
프로젝트 생성 New > Other.. > Spring Boot > Spring Starter Project Type: Maven Packaging: Jar Java Version: 17 실행 Window > Show View > Other.. Other > Boot Dashboard Boot Dashboard에서 해당 프로젝트 선택 > (Re)start Trouble Shooting Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/SpringApplication has been compiled by a more recent version of the Java Runtime (class f..
2024.03.14