WEB-INF 안의 jsp는 외부접속 차단

 

location.href는 클라이언트 url을 변경하는 명령어

 

컨트롤러를 통해서 forward만 허용 (클라이언트의 url은 그대로고 서버측의 내부 접속을 보여주는 것이므로)

 

redirect는 외부 접근

 

GSON 라이브러리 설치하여 AJAX 활용
		<!-- Gson -->
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
			<version>2.8.5</version>
		</dependency>

+ Recent posts