Skip to content

Commit 10ebff6

Browse files
authored
Update java.spring-boot.mdx (#4814)
Fix sample code for controlling exception resolver order by adding a - in front of the number.
1 parent 81d5650 commit 10ebff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/includes/getting-started-config/java.spring-boot.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ sentry:
1414
By default, only unhandled exceptions are sent to Sentry. This behavior can be tuned through configuring the `sentry.exception-resolver-order` property. For example, setting it to `-2147483647` (the value of `org.springframework.core.Ordered#HIGHEST_PRECEDENCE`) ensures exceptions that have been handled by exception resolvers with higher order are sent to Sentry - including ones handled by `@ExceptionHandler` annotated methods.
1515

1616
```properties {filename:application.properties}
17-
sentry.exception-resolver-order=2147483647
17+
sentry.exception-resolver-order=-2147483647
1818
```
1919

2020
```yaml {filename:application.yml}
2121
sentry:
22-
exception-resolver-order: 2147483647
22+
exception-resolver-order: -2147483647
2323
```
2424

2525
We recommend using Sentry's Spring Boot integration with one of the [logging framework integrations](logging-frameworks/) as they work together seamlessly. To use Sentry **without** Spring Boot, we recommend using the [Sentry Spring integration](/platforms/java/guides/spring/).

0 commit comments

Comments
 (0)