Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use the new requestMatchers and securityMatchers #12137

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

marcusdacoregio
Copy link
Contributor

Closes gh-12100

@marcusdacoregio marcusdacoregio added in: docs An issue in Documentation or samples type: enhancement A general enhancement labels Nov 3, 2022
@marcusdacoregio marcusdacoregio added this to the 5.8.0 milestone Nov 3, 2022
@marcusdacoregio marcusdacoregio self-assigned this Nov 3, 2022
@marcusdacoregio marcusdacoregio added the status: duplicate A duplicate of another issue label Nov 3, 2022
arsnova-bot pushed a commit to particify/arsnova-server that referenced this pull request Nov 7, 2022
* Switched to jakarta.* namespace (from javax.*) for JEE.
* Switched to JakartaEE variant of Pac4j's JEE dependency.
* Adjusted alias forwarding logic for change in `AntPathMatcher`s
  `extractPathWithinPattern` implementation which can no longer return
  `null`.
* Adjusted `ControllerExceptionHandler` to signature change of
  `ResponseEntityExceptionHandler`s `handleExceptionInternal` method.
* Removed `ConstructorBinding` annotation for `ConfigurationProperties`
  contructors.
* The new `securityMatchers` and `requestMatchers` methods are now used
  of `HttpSecurity` configuration. The `antMatcher` method was removed
  as of Spring Security 6.0.
* Check for referential instead of structural equality when comparing
  `HttpMethod`.

Breaking API change:
* Trailing slashes are no longer accepted for URI's which are actually
  defined without one.

Closes: #173
See: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M4-Release-Notes#spring-mvc-and-webflux-url-matching-changes
See: spring-projects/spring-security#12137
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, @marcusdacoregio! I've left feedback inline.

docs/modules/ROOT/pages/migration.adoc Outdated Show resolved Hide resolved
----
====

Note that we are using some static factory methods to make the code more readable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually avoid "we" in the docs. Something like "Note that the above sample uses static factory methods to improve readability."

You might also consider linking parts of "some static factory methods" to the JavaDoc for those factory methods.

docs/modules/ROOT/pages/migration.adoc Outdated Show resolved Hide resolved
----
====

is equivalent too:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean "is equivalent to"

docs/modules/ROOT/pages/migration.adoc Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants