Hipster stack for Java developers. Spring Boot + Angular in one handy generator.
vendor.scss
and js to vendor.ts
To package the application as a “production” WAR, with Maven please type:
./mvnw -Pprod,war clean verify
docker logs
command. You can also see the ports exposed by a container with the docker ps
command
@JsonIgnore
, that may affect your API though if you don't use DTOs
throw new Exception("test")
, I see "test"
in the detail
field of the response. If I create a new CustomException
(copied BadRequestAlertException
and changed error code and message), then I see the "test"
message in the title
field of the response. Then (in ExceptionTranslator
) if I copy handleBadRequestAlertException
to handleCustomException
, I can get the createFailureAlert
headers into the response (x-myApp-error
and x-myApp-params
).
HeaderUtils.createFailureAlert
only returns the HttpHeaders
object that is part of the ResponseEntity
returned by ExceptionTranslator