在我的项目中,我想使用
Spring Boot
和Angular 2.
Spring Boot App
的结构通过Spring Initializer完成。Angular 2 App
的结构是通过Angular CLI
工具完成的 (ng new myfrontendapp
)。
在Angular 1
中,你可以将index.html
放入public文件夹中。
在Angular 2
中,index.html
会生成在src
文件夹中,我希望保持这样的结构。
我的问题是,我该如何让Spring Boot
能够看到index.html
并保持由Angular CLI
生成的结构。
感谢任何答案。