以下似乎没有做任何事情.
ng serve --ssl true --ssl-key <key-path> --ssl-cert <cert-path>
Run Code Online (Sandbox Code Playgroud)
通过在默认的ssl目录中提供证书和密钥仍然无效.它看起来ng server完全忽略了--ssl参数并继续说NG Live Development Server is running on http://localhost:4200.
我想构建我的Angular 2前端并将其部署到Tomcat应用程序服务器.为了开始,我完全按照以下介绍的步骤进行操作:https://angular.io/docs/ts/latest/guide/webpack.html.
所以我有以下项目结构(所有文件都与上面提到的引言完全相同):
angular2-webpack
--- config
------- helpers.js
------- karma.conf.js
------- karma-test-shim.js
------- webpack.common.js
------- webpack.dev.js
------- webpack.prod.js
------- webpack.test.js
--- dist
--- node_modules
- --public
------- css
-------------- styles.css
------- images
-------------- angular.png
--- src
------- app
-------------- app.component.css
-------------- app. component.html
-------------- app.component.spec.ts
-------------- app.component.ts
------- ------- app.module.ts
------- index.html
------- main.ts
------- polyfills.ts
------- vendor .ts
---
typings --- karma.conf.js
--- package.json
--- tsconfig.json
--- typings.json
--- webpack.config.js
npm分别webpack-dev-server --inline --progress …
我已经在带有“ frontend-maven-plugin”(V1.6)的tomcat服务器上部署了一个angular 4应用程序(带有角度路由),但是url组合非常奇怪。
实际上,当我单击所有页面上的刷新按钮时,就会出现HTTP 404错误。当我尝试在根页面上访问时,没有重定向到index.html。
这些错误仅在tomcat部署中出现(与nodejs配合正常)。
我如何配置tomcat来纠正此问题?
感谢您的回复。