Skip to content

Commit b402075

Browse files
Docs updated
1 parent 49f74be commit b402075

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ such as for Handling Security, OpenAPI and Dao related exceptions, which are ela
6969

7070
## Controller Advices
7171

72-
#### General advices recommended for Spring Rest services need to handle
72+
#### General advices recommended for all Spring Rest services
7373

7474
These advices are autoconfigured as either bean of type [**`ProblemHandlingWeb`**](src/main/java/com/ksoot/problem/spring/advice/web/ProblemHandlingWeb.java)
7575
or [**`ProblemHandlingWebflux`**](src/main/java/com/ksoot/problem/spring/advice/webflux/ProblemHandlingWebflux.java) depending on whether application is type **Spring Web** or **Spring Webflux** respectively.
@@ -140,7 +140,7 @@ These advices are autoconfigured as a bean `DaoExceptionHandler` if following co
140140
> [!NOTE]
141141
> Database type must be specified in `application.properties` in case application is using some relational database,
142142
it is used to autoconfigure [**`ConstraintNameResolver`**](src/main/java/com/ksoot/problem/spring/advice/dao/ConstraintNameResolver.java)
143-
to extract database constraint name from exception message to derive error key
143+
to extract database constraint name from exception message to derive [*Error key*](https://github.com/officiallysingh/spring-boot-problem-handler#error-key)
144144
when database constraint violation exceptions are thrown.
145145

146146
#### Security advices
@@ -189,8 +189,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
189189
```
190190

191191
> **For Spring Webflux applications**
192-
[**`ServerAuthenticationEntryPoint`**](src/main/java/com/ksoot/problem/spring/advice/security/ProblemServerAccessDeniedHandler.java)
193-
and [**`ServerAccessDeniedHandler`**](src/main/java/com/ksoot/problem/spring/advice/security/ProblemServerAuthenticationEntryPoint.java)
192+
[**`ServerAuthenticationEntryPoint`**](src/main/java/com/ksoot/problem/spring/advice/security/ProblemServerAuthenticationEntryPoint.java)
193+
and [**`ServerAccessDeniedHandler`**](src/main/java/com/ksoot/problem/spring/advice/security/ProblemServerAccessDeniedHandler.java)
194194
are autoconfigured as `authenticationEntryPoint` and `accessDeniedHandler` beans respectively.
195195

196196
But to make it work following needs to be done in application Spring Security configuration.

0 commit comments

Comments
 (0)