Я пытаюсь развернуть приложение Springboot с angular. Мне удалось успешно упаковать войну и запустить сервер Tomcat. Тем не менее я получаю HTTP-ошибку 304 при попытке доступа к странице в моем браузере. Все работает нормально, если я просто делаю нг
Вот мой пом. xml
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm install</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm run build:elements</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build:elements</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v10.16.0</nodeVersion>
<npmVersion>6.11.2</npmVersion>
<workingDirectory>src/main/webapp</workingDirectory>
</configuration>
</plugin>
И вот часть моего пакета. json
{
"name": "webapp",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build:elements": "ng build --prod --aot=true --build-optimizer=true --output-hashing=none --project=webapp --single-bundle && node build-element.js"
},