Skip to content

Commit 75b15f7

Browse files
author
rajveer
committed
Fixed default messages bug
1 parent 9c4b3f3 commit 75b15f7

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ out/
4646

4747
### VS Code ###
4848
.vscode/
49+
/settings.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ all can be done with zero custom code but by specifying error details in `proper
2525

2626
## Installation
2727

28-
> **Current version: 1.0**
28+
> **Current version: 1.3**
2929
3030
Add the `spring-boot-problem-handler` jar to application dependencies. That is all it takes to get a default working
3131
exception handling mechanism in a Spring boot application.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.officiallysingh</groupId>
88
<artifactId>spring-boot-problem-handler</artifactId>
9-
<version>1.2</version>
9+
<version>1.3</version>
1010
<name>spring-boot-problem-handler</name>
1111
<description>Commons exception handler library</description>
1212
<url>https://github.com/officiallysingh/spring-boot-problem-handler</url>

src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"description": "Default: true, Whether or not to enable Problem handling"
88
},
99
{
10-
"name": "type-url",
10+
"name": "problem.type-url",
1111
"type": "java.lang.String",
1212
"description": "Help page base url"
1313
},

src/main/resources/i18n/problems.properties

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ message.internal.server.error=Something has gone wrong, please try again
44

55
code.not.found=404
66
title.not.found=Not Found
7-
message.not.found=Requested resource not found
7+
detail.not.found=Requested resource not found
88

99
code.constraint.violation=constraint-violations
1010
title.constraint.violation=Bad Request
11-
message.constraint.violation=Constraint violations has happened, please correct the request and try again
11+
detail.constraint.violation=Constraint violations has happened, please correct the request and try again
12+
1213

1314
status.java.net.SocketTimeoutException=503
14-
message.org.springframework.dao.ConcurrencyFailureException=Conflicted with another concurrent update, please retry
15+
detail.org.springframework.dao.ConcurrencyFailureException=Conflicted with another concurrent update, please retry
1516

16-
message.security.unauthorized=Either Authorization header bearer token is missing or invalid
17-
message.security.access.denied=Insufficient permissions to access the requested resource
17+
detail.security.unauthorized=Either Authorization header bearer token is missing or invalid
18+
detail.security.access.denied=Insufficient permissions to access the requested resource
1819

19-
message.java.lang.UnsupportedOperationException=The requested operation is not supported yet
20+
detail.java.lang.UnsupportedOperationException=The requested operation is not supported yet
2021

21-
message.org.springframework.web.multipart.MaxUploadSizeExceededException=Upload file size exceeded the maximum allowed limit: {0}
22+
detail.org.springframework.web.multipart.MaxUploadSizeExceededException=Upload file size exceeded the maximum allowed limit: {0}

0 commit comments

Comments
 (0)