• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring boot with Angular2, how do I make this work?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to use Angular2 for the front end of my Spring application, but I keep running into a million problems. First: I can only access .html files if they are inside "src/main/resources/templates", and from what I've seen online, there should be many directories where I can put a .html file.

Second, I can't access .js files from indes.html. I get an error on the console: on every .js file that's included, on line 1:0. But when I click on the link on the console to view the file, it returns index,html, as if that's the content of the .js file. I also can't access the .js files no matter what url I try, I just get index,html again.

Can anyone help me out on this?
 
reply
    Bookmark Topic Watch Topic
  • New Topic