vue-router 의 기본 모드는 hash mode 로, URL 해시를 사용하여 전체 URL 을 시뮬레이트 하므로 URL이 변경될 때 페이지가 다시 로드 되지 않는다...!?
#해시를 제거하기 위해 라우터의 history 모드를 사용할 수 있다.
특성상 vue는 index.html 파일 하나로 관리한다.
기본적으로 URL 을 입력하면 서버접속을 먼저 시도하기때문에
서버설정이 없는 클라이언트 앱이라 사용자가 직접 URL 에 접속하면
404 에러가 발생한다.



이렇게하면 404 에러가 발생했을 시 빌드된 SPA 앱 index.html 로 반환 한다.
resources 폴더 구조
module.exports = {
outputDir: "../src/main/resources/static",
indexPath: "../static/index.html",
devServer: {
overlay: false,
historyApiFallback: true,
proxy: {
'/': {
target: 'http://localhost:8080/',
changeOrigin: true,
secure: false
}
}
},
}
SpringBoot 의 정적 폴더에 빌드 되도록 path 를 잘 지정해야한다.