Spring/Spring Boot
Spring Boot : Web Application Context Root 위치 설정
Korean Eagle
2020. 4. 25. 01:39
728x90
1. 스프링 부트의 root context는 무조건 / 이다. 이걸 일반적인 spring을 사용할 때처럼 지정할 수 있다.
1-1. context root를 http://localhost:8080/locationweb/ 로 바꾸고 싶으면
1-2. application.properties에서 아래처럼 정의한다.
server.servlet.context-path=/locationweb
728x90