use angular + java servlet
-
replace "~{PathToProject}" under "outputPath" in frontEnd/src/angular.json (ex:F:\workspace\)
-
cd frontEnd
-
ng build --watch --base-href /GitRepositoryAnalysisSystem/frontEnd/ The output will be in the following location:
GitRepositoryAnalysisSystem\src\main\webapp\frontEnd\ -
ng add @angular/material to use Angular material
-
npm install @angular/cdk --save
-
使用連結 http://localhost:8080/GitRepositoryAnalysisSystem/frontEnd/userLogin 即可進入GRAS魔幻世界,HAVE FUN
PS: 如果build完發現頁面均無變化,加入--outputHashing=all
使用ng build --watch --outputHashing=all --base-href /GitRepositoryAnalysisSystem/frontEnd/