Java Spring-boot: Problem to finde resources

24
January 12, 2019, at 3:00 PM

I have a Spring-boot backend Angular front end application. The application runs well if it is run on port 4200 (Running frontend from the front end). But I have done the integration an I run in to troubles. The application after the following commands:

mvn clean install
npm install
npm build

Properly generate the dist folder on the front end and copy them in the source folder (project/src/main/resources/static). When I try to run the application from the back end (definded port 8999) the application finde the index.html file in static folder but cannot find the other scripts. The application start looking for those resources on localhost:8999/resourcefile instead of looking for it in localhost:8999/src/main/resources/static

Do anyone have any idea?

Answer 1

For anyone with the same problem. There was declared <base href="/"> in my index.html and that's why it was looking for resources from the wrong directory.

READ ALSO
Override Dashboard in TYPO3

Override Dashboard in TYPO3

Im trying to override the help_AboutmodulesAboutmodulesiframe in TYPO3I think that is the initial page when you are log in as backend user

25
Visual form builder Is this plugin compatible with Amazon S3/Cloudfront?

Visual form builder Is this plugin compatible with Amazon S3/Cloudfront?

I am using vusual form builder for one of my WordPress siteVisual form builder this plugin compatible with Amazon S3/Cloudfront? The upload function is storing the files on our S3 server correctly but the link to the file in the "Entries" section is pointing...

26
fetch other(custom) column with group by and count using laravel

fetch other(custom) column with group by and count using laravel

I want to fetch vacancies from the vacancies table

21