title: How to build an Angular2 type script with spring boot back end in STS
body: <p>I am learning angular 2 currently and trying to hosted in springboot java application.</p>
  
  <p>I created a separate project using angular cli , then I created spring starter project with web only. </p>
  
  <p>Next I imported the angular cli project inside /src/main/resources/static directory. </p>
  
  <p>when I opened the browser , I was not able to see the basic index.html.</p>
  
  <p>Then I removed all the imported files and imported only the content of the  directory , which is the resulting compiled ES5 java script after transpiling the type script files in  directory, this time it worked.</p>
  
  <p>My questions are:-</p>
  
  <p>1) What is the best practice , to use the GUI under /src/main/statis or create /src/main/public or /src/main/webapp ?</p>
  
  <p>2) Does spring understand only js and not ts ( java script and not type script)?</p>
  
  <p>3) Do I need a maven plugin for typescript and if so how to tell maven bundle the compiled js with the spring war while excluding the rest directories and files</p>
  
  <p>4) How to include the testing unit / e2e with maven build </p>
  
  <p>I searched for step by step guide for ANgular 2 and spring boot but could not find one. It would be helpful to many if some guide like this exist.</p>
  
  <p>Many thanks for your support guys.</p>