File탭 - Project Structure - Libraries - +버튼
- java - 톰캣설치폴더의 lib폴더 선택
- Name을 apache-tomcat 9.0 library로 변경
Edit configurations - +버튼 - Tomcat Local
- server - 포트80으로 바꾸고 - Deployment - +버튼
- war exploded - 아래 contextPath 수정
Edit configurations - VM options
: -Duser.language=en 입력
File - Settings - Editor - General - Auto Import
- Add unambiguous imports on the fly 체크
File - Settings - Appearance - Theme
File - Settings - Editor - font (에디터 폰트)
File - Setting - Appearance - use custom font (메뉴, 익스플로러 폰트)
File - Settings - Editor - File Encodings - Golobal, Project, Properties를 UTF-8로
추가로 네이버 d2 coding 글꼴 설치해서 explore에서 선택 및 editor에서 bold로 선택하고 폰트사이즈 조절하자
[Properties파일] File-encoding(properties)을 utf-8로 변경
jsp 등의 인코딩을 utf-8로 변경
비슷한 에러가 발생해서 프로젝트를 다시 생성한 경우가 있어서
아래 방법을 시도 해보기 위해 적어 놓는다.
나의 경우 톰캣 설정을 제거하고 다시 세팅했고, invalide Caches를 삭제했지만 해결하지 못했다.
맵핑 주소와 연결된 뷰를 보여주지 못 할 때 시도해보자.
- 1번 방법
Build -> Build Artifacts -> ch4:war exploded -> Clean
- 2번 방법
인텔리제이 상단 탭에서 View -> tool windows -> Maven ->
Lifecycle -> clean을 실행한다. 그러면 전체 빌드내용이 삭제된다.
- 3번 방법
.m2의 repository 폴더 삭제 - STS에서는 맞는 것 같은데, IntelliJ를 사용하고 나서는 이 폴더의 수정일자가 STS를 사용 할 때 날짜에서 변경이 없었다.
혹시 물라서 적어놓는다.