톰캣 재시작 없이 JAVA 컴파일 적용 - Spring Loaded
지금은 STS에서 작업하고 있는데 자바파일 수정할때 마다 tomcat 서버 리스타트하는게 너무 힘들어
인터넷에 찾아보니 역시나 있네.
1. Spring Loaded 설치
- 다운로드 : https://mvnrepository.com/artifact/org.springframework/springloaded
- 최신버젼 다운로드
2. Maven pom.xml 의 dependency 추가
<!-- https://mvnrepository.com/artifact/org.springframework/springloaded -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.8.RELEASE</version>
</dependency>
3. Tomcat 설정 변경
- Server Option 1,2,3번 체크
- Publishing 쪽에 두번 째 Automatically publish when resources change 체크
- 하단 Modules > Path > Edit > Auto reloading enabled 선택 해제
'IT개발정보 > spring and java' 카테고리의 다른 글
JAVA Map, List 정의- Collection (0) | 2023.02.10 |
---|---|
JAVA 명명 규칙 (0) | 2023.02.10 |
spring MVC 프로젝트 구조 와 동작순서 (0) | 2023.02.09 |
[error] public key retrieval is not allowed (0) | 2023.02.09 |
[error] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: (0) | 2023.02.08 |