Spring Boot + Angular 2 structure

后端 未结 3 2040
粉色の甜心
粉色の甜心 2021-02-08 03:07

In my project I want to use Spring Boot and Angular 2.

  1. Structure of Spring Boot App
相关标签:
3条回答
  • 2021-02-08 03:19

    Solution is to relocate build output of an Angular 2 project into Spring Boot /static or /public folder.

    2 Steps:

    1. Set the outDir in .angular-cli.json file:

    1. in the Angular 2 project root directory type:

      ng build
      

    (! Please note that this works for Angular 2 project generated in Angular CLI tool, for Angular 2 project not created by Angular CLI tool, the outDir is edited in tsconfig.json file )

    0 讨论(0)
  • 2021-02-08 03:21

    Check my Spring Boot 2 and Angular 6 starter here.

    0 讨论(0)
  • 2021-02-08 03:24

    There's an framework called JHipster. It is easily to develop, deploy Spring Boot + Angular Apps. Check out their sample and it would helpful. The link is here: https://jhipster.github.io/

    Jhipster supports both AngularJS and Angular, therefore you can find the both sources

    0 讨论(0)
提交回复
热议问题