My
Spring Boot
IIS Server
401
Apache server
IIS Server
Spring
Add a web.config
file to your app's webapp directory (app/src/main/webapp)
. web.config
file should consist:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" existingResponse="Auto" />
</system.webServer>
</configuration>
this will cause IIS web server
to set error mode to 'Detailed'
which will prevent generating custom error page.