-1
My question is, how do I map static files, for example in Nodejs using Express, I can:
app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, '../build', 'index.html'));
});
So all requests I send to index.html, have anything equivalent in Spring Boot? The reason I want this is to run React in the production environment inside the spring web server, if what I’m thinking of doing is wrong/gambiarra there’s another way?