💡IntelliJ로 Spring Boot 셋팅하기
해당 sdk는 8버전에서만 돈다고 해서, JDK를 8로 낮춰줬는데
에러가 나서 그냥 17로 바꾸었다.
Dependencies 설정하고 Create.
이렇게 만들어졌습니다!!
💡Spring Boot 버전 낮추기
plugins에 있는 springframework.boot의 version을 2.7.18로 낮추었고,
java languageVersion을 17에서 8로 낮추었다.
프로젝트 설정에서도 낮춰줌.
그리고 build 했더니 성공~~~!
💡 SDK에 있는 파일 옮기기
1. resources -> src/main/resources 옮기기
properties 파일들은 합쳐서 application.properties로 넣었다.
2. lib -> libs 디렉토리 생성 후 옮기기
이런 jar 파일들을 모두 옮겨준 후,
implementation fileTree(dir: 'libs', includes: ['*.jar'])
build.gradle에 이 소스를 추가해줌
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
이런 오류가 떴지만 gradle refresh하니까 잘 됨!!
'Programming > Java' 카테고리의 다른 글
XML을 JSON으로 변환하기 (feat. Jackson 버전 충돌) (0) | 2025.02.07 |
---|---|
[SpringBoot] Java 1.8 스프링부트 2.7.x 프로젝트 만들기 (0) | 2024.04.12 |
[ MyBatis ] 동적태그 if 비교문 + 숫자 0 비교 이슈 (0) | 2022.08.18 |
[ Spring ] foreach 문 사용하기 (select 쿼리와 in 조건) (0) | 2022.08.02 |
[20220217 TIL] [Eclipse] SVN이나 형상관리 도구 사용할 때, 수정 파일 표시 하기 (Lavel Decorations) (0) | 2022.02.17 |