Spring boot - Vue.js 연동 기준
라우터에 history mode 옵션을 주면 메인을 제외하고는 없는 페이지라고 떴다.
@RequestMapping(value = "{path:[^\\\\.]*}",
method = {RequestMethod.POST, RequestMethod.GET})
public String html5Forwarding() {
return "forward:/index.html";
}
Path value를 저렇게 주면 vue.js url로 잘 넘어감..
아직까진 잘 되는데 문제 생기면 포스팅 수정하는걸로..
'공부 > Vue.js' 카테고리의 다른 글
Vue.js Router History mode / Tomcat rewrite 설정 (0) | 2018.08.05 |
---|---|
Vue.js router 파일 여러 개로 나누기 (0) | 2018.07.22 |
Vue.js Header, Footer, etc... 다른 vue 파일 import하기 (0) | 2018.07.22 |
Vue.js에서 JQuery 사용할 때 (0) | 2018.07.22 |
Vue.js console에는 데이터 보이는데 v-for에 안 들어올 때 (0) | 2018.07.22 |