【问题标题】:Can i use index.jsp instead of index.html in angular dist folder我可以在 angular dist 文件夹中使用 index.jsp 而不是 index.html
【发布时间】:2019-09-22 02:02:42
【问题描述】:

我已经在JSP 中构建了一个应用程序,并且有一些在jsp 文件中编写的逻辑在angular 中是不可能的。

我想对 angular i:e index.jsp 使用相同的文件,而不是 index.html。

我如何使用它或使用它需要任何配置?

【问题讨论】:

    标签: angular jsp angular6 frontend


    【解决方案1】:

    如果您使用 angular cli,您将看到 angular.json 文件。您会看到我们可以像这样更改 Angular 应用程序的默认模板

        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "progress": true,
            "extractCss": true,
            "outputPath": "dist",
            "index": "src/index.html" // change to your jsp file
        }
    

    如果您有任何问题,请告诉我

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-09
      • 2019-06-19
      • 2016-01-20
      • 2018-04-15
      • 2022-11-03
      • 1970-01-01
      • 1970-01-01
      • 2021-07-24
      相关资源
      最近更新 更多