jHipster:8080 和 9000 端口上的不同版本
jHipster: Different versions on the 8080 and 9000 ports
我在不同的控制台上从我的 jHipster 项目文件夹中执行了 "npm start" 和“./mvnw”。
为什么 http://localhost:9000 and http://localhost:8080 are different? http://localhost:8080 上的内容显示更多旧版本的内容。
当您进行产品构建时会发生这种情况,它会将前端文件放在目标文件夹中并全部打包在 war/jar 中。当访问端口 8080 时,您正在获取 war/jar 内的打包前端,而对于端口 9000,它代理您从 npm start
开始的内容。执行 ./mvnw clean
或简单地删除目标文件夹。
您也可以编译前端以更新该文件。
When using Angular 2+ if you need to do a clean run with webpack
compilation enabled for dev profile you can pass the webpack param as
below
./mvnw -Pdev,webpack
这样您将更新 8080 端口上的服务内容。
我在不同的控制台上从我的 jHipster 项目文件夹中执行了 "npm start" 和“./mvnw”。
为什么 http://localhost:9000 and http://localhost:8080 are different? http://localhost:8080 上的内容显示更多旧版本的内容。
当您进行产品构建时会发生这种情况,它会将前端文件放在目标文件夹中并全部打包在 war/jar 中。当访问端口 8080 时,您正在获取 war/jar 内的打包前端,而对于端口 9000,它代理您从 npm start
开始的内容。执行 ./mvnw clean
或简单地删除目标文件夹。
您也可以编译前端以更新该文件。
When using Angular 2+ if you need to do a clean run with webpack compilation enabled for dev profile you can pass the webpack param as below
./mvnw -Pdev,webpack
这样您将更新 8080 端口上的服务内容。