회사에서 사용하려는 open JDK는 Azul 의 Java 11 입니다.
첫 사업이라 미리 공부할겸해서 로컬로 환경설정하는 도중 Open JDK 설정도 하고,
만났던 오류 해결 방법을 정리 해보겠습니다.
www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk
Download OpenJDK Open Source Java Zulu Linux Windows macOS
Download Java 11 Zulu OpenJDK Linux Windows macOS Solaris Update open source Java Alpine Java SE free download Java 8 Java 7 Java 6 JDK
www.azul.com
jdk버전에 맞는 apache Tomcat 버전 확인
http://tomcat.apache.org/whichversion.html
Apache Tomcat® - Which Version Do I Want?
Apache Tomcat® is an open source software implementation of a subset of the Jakarta EE (formally Java EE) technologies. Different versions of Apache Tomcat are available for different versions of the specifications. The mapping between the specifications
tomcat.apache.org
결론은 상관없습니다 ㅎㅎㅎㅎㅎ 그래서 최신 버전인 9로 설치,
https://tomcat.apache.org/download-90.cgi
Apache Tomcat® - Apache Tomcat 9 Software Downloads
Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version
tomcat.apache.org
*자바 환경변수는 꼭 잡으셔야 됩니다.
sts 에서 maven 프로젝트 생성하는데 archtype은 (maven-archtype-web)으로 생성.
그리고 JRE 설정
1. HttpServlet 오류
server 창 열기
다운 받은 apache 서버 설정
중요! 꼭 JRE는 OpenJDK로 설정 해주기!!
프로젝트 설정에서 Java 버전 다시 잡아주고, Runtime 설정 해주기
2. Port 오류
이후 실행 하면 사진과 같이 오류가 뜬다,
포트 설정이 안잡혀서 오류가 뜨는것이기에 포트 잡아주고, 포트는 현재 사용중인 포트 말고 잡아 줍니다.
그럼 이후 정상적으로 동작합니다.
그럼 화이팅
'머리 뜯으며 개발 > Spring Boot' 카테고리의 다른 글
Swagger 사용법 그리고 커스터마이징 (0) | 2022.07.02 |
---|---|
Custom RestTemplateBuilder 만들기 (0) | 2022.06.14 |
JAR 배포 Gradle 설정 (0) | 2020.08.18 |
.jsp .xml 등 배포 이후 리소스파일 수정을 위한 properties 설정 (0) | 2020.08.18 |