vue build

팡태(❁´◡`❁)·2022년 4월 12일
0

SPRING_20220328

목록 보기
17/24
  • 컨트롤러에
    // build
    // 127.0.0.1:9090/ROOT/vue
    @GetMapping(value = "/vue")
    public String vueGET() {
        // vue에서 build한 index.html의 위치
        return "/vue/index";
    }


뷰 서버중지 후
npm run build

하면 뷰 폴더 안에 distdp
css, img, js 는 static의 vue로
index.html은 template의 vue폴더로

  • 백엔드 서버만 돌리면 됨

0개의 댓글