Commit Graph
50613 Commits
Author SHA1 Message Date
Phillip Webb 8870834777 Merge pull request #39259 from tobias-lippert
* pr/39259:
  Update copyright header of cleaned up code
  Replace !Optional.isPresent with Optional.isEmpty
  Polish 'Simplify stream chain operations'
  Simplify stream chain operations
  Polish 'Remove redundant array creation'
  Remove redundant array creation
  Replace multiple ifs with switch
  Use try with resources instead of try-finally
  Replace explicit type with diamond operator
  Avoid redundant boxing
  Remove redundant boxing
  Polish 'Use pattern variables'
  Use pattern variables
  Use string.repeat()
  Polish 'Simplify conditionals'
  Simplify conditionals
  Inline redundant if statements
  Remove unnecessary semicolons
  Remove unnecessary toString calls

Closes gh-39259
2024-01-23 10:47:16 -08:00
Phillip Webb 8f1a330dd5 Update copyright header of cleaned up code
See gh-39259
2024-01-23 10:18:50 -08:00
Tobias Lippert 24e0864105 Replace !Optional.isPresent with Optional.isEmpty
See gh-39259
2024-01-23 10:18:50 -08:00
Phillip Webb 48343cc531 Polish 'Simplify stream chain operations'
See gh-39259
2024-01-23 10:18:50 -08:00
Tobias Lippert 7f4aaacf42 Simplify stream chain operations
See gh-39259
2024-01-23 10:18:49 -08:00
Phillip Webb 15f1e8536b Polish 'Remove redundant array creation'
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert d3c97adf79 Remove redundant array creation
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert 0613034e19 Replace multiple ifs with switch
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert 316b415e95 Use try with resources instead of try-finally
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert cb26c31dd6 Replace explicit type with diamond operator
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert ac5a08a49b Avoid redundant boxing
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert 74a7fbea9d Remove redundant boxing
See gh-39259
2024-01-23 10:18:49 -08:00
Phillip Webb e40f49d173 Polish 'Use pattern variables'
See gh-39259
2024-01-23 10:18:49 -08:00
Tobias Lippert 06265ee617 Use pattern variables
See gh-39259
2024-01-23 10:18:48 -08:00
Tobias Lippert fe38cb3b4a Use string.repeat()
See gh-39259
2024-01-23 09:47:07 -08:00
Phillip Webb ddb769bf7f Polish 'Simplify conditionals'
See gh-39259
2024-01-23 09:47:07 -08:00
Tobias Lippert 65a1ff84e6 Simplify conditionals
See gh-39259
2024-01-23 09:07:40 -08:00
Tobias Lippert def7523398 Inline redundant if statements
See gh-39259
2024-01-23 09:07:35 -08:00
Tobias Lippert 9cdd0c3776 Remove unnecessary semicolons
See gh-39259
2024-01-23 09:07:29 -08:00
Tobias Lippert 17902c9cec Remove unnecessary toString calls
See gh-39259
2024-01-23 09:07:00 -08:00
Phillip Webb a31319caaa Merge branch '3.2.x'
Closes gh-39281
2024-01-23 08:14:34 -08:00
Phillip Webb 3fb25f4d4b Merge branch '3.1.x' into 3.2.x
Closes gh-39280
2024-01-23 08:14:26 -08:00
Phillip Webb 72587e08a7 Merge pull request #39279 from smurf667
* pr/39279:
  Fix typo 'Unuthorized'

Closes gh-39279
2024-01-23 08:13:57 -08:00
Jan Engehausen c99daf5de4 Fix typo 'Unuthorized'
See gh-39279
2024-01-23 08:13:13 -08:00
Moritz Halbritter e04ec3bd3d Merge branch '3.2.x' 2024-01-23 09:30:01 +01:00
Moritz Halbritter 965e62b40d Merge branch '3.1.x' into 3.2.x 2024-01-23 09:29:48 +01:00
Moritz Halbritter b245283b29 Add .git-hooks to the git ignore list
When following https://github.com/spring-projects/spring-boot/wiki/Working-with-Git-branches,
a new directory named .git-hooks is created when using git worktree support.
This directory should be on the ignore list.
2024-01-23 09:29:37 +01:00
Moritz Halbritter 43296d019e Merge branch '3.2.x'
Closes gh-39273
2024-01-23 09:27:25 +01:00
Moritz Halbritter 46304a7821 Merge branch '3.1.x' into 3.2.x
Closes gh-39272
2024-01-23 09:24:29 +01:00
Moritz Halbritter c87d5eeb28 Ensure that remaining mocks are closed before initializing a test
Closes gh-39271
2024-01-23 09:17:17 +01:00
Phillip Webb cf8e06a7a4 Merge pull request #38762 from MelleD
* pr/38762:
  Polish 'Add conditional bean for jOOQ translator'
  Add conditional bean for jOOQ translator

Closes gh-38762
2024-01-22 15:54:11 -08:00
Phillip Webb 4de91094cf Polish 'Add conditional bean for jOOQ translator'
See gh-38762
2024-01-22 15:52:41 -08:00
Dennis Melzer c3aa95335a Add conditional bean for jOOQ translator
Introduce an jOOQ `ExecuteListener` sub-interface  specifically
for exception translation with the auto-configured
`DefaultExecuteListenerProvider` instance.

Users can now define a bean that implements the interface or
omit it and continue to use the existing exception translation
logic.

See gh-38762
2024-01-22 15:52:38 -08:00
Scott Frederick 83fd4fb4e8 Merge pull request #39258 from PhilKes
* pr/39258:
  Polish "Add Docker Compose service connection support for OpenLDAP"
  Add Docker Compose service connection support for OpenLDAP

Closes gh-39258
2024-01-22 17:05:23 -06:00
Scott Frederick bee6fe899c Polish "Add Docker Compose service connection support for OpenLDAP"
See gh-39258
2024-01-22 16:51:45 -06:00
PhilKes eb940c3907 Add Docker Compose service connection support for OpenLDAP
See gh-39258
2024-01-22 16:51:45 -06:00
Phillip Webb a0a804cfdf Merge branch '3.2.x' 2024-01-22 12:20:41 -08:00
Phillip Webb cff8cb98c7 Merge branch '3.1.x' into 3.2.x 2024-01-22 12:20:24 -08:00
Phillip Webb e1986ea11e Update copyright year of changed files 2024-01-22 12:20:06 -08:00
Phillip Webb 088b313ae5 Polish 2024-01-22 11:57:37 -08:00
Phillip Webb 72f8bb8d13 Merge branch '3.2.x'
Closes gh-39269
2024-01-22 11:50:57 -08:00
Phillip Webb 9ddf15d97a Merge branch '3.1.x' into 3.2.x
Closes gh-39268
2024-01-22 11:50:40 -08:00
Phillip Webb bc75751172 Merge pull request #39265 from vj-atlassian
* pr/39265:
  Polish 'Make PropagationType a public type'
  Make PropagationType a public type

Closes gh-39265
2024-01-22 11:50:28 -08:00
Phillip Webb 87ea2b75fb Polish 'Make PropagationType a public type'
See gh-39265
2024-01-22 11:49:45 -08:00
Vaibhav Jaiswal 16c0f035a9 Make PropagationType a public type
The PropagationType enum is returned from public methods so
should be public itself.

See gh-39265
2024-01-22 11:48:10 -08:00
Moritz Halbritter 6442954205 Merge pull request #32046 from vpavic
* pr/32046:
  Use ReactiveFindByIndexNameSessionRepository
  Polish "Provide an Actuator endpoint for non-indexed session repositories"
  Provide an Actuator endpoint for non-indexed session repositories

Closes gh-32046
2024-01-22 13:59:11 +01:00
Moritz Halbritter 6e3d4ed878 Use ReactiveFindByIndexNameSessionRepository
See gh-32046
2024-01-22 12:55:37 +01:00
Moritz Halbritter de76ef1b3b Polish "Provide an Actuator endpoint for non-indexed session repositories"
See gh-32046
2024-01-22 12:55:37 +01:00
Vedran Pavic 6a9eb7754f Provide an Actuator endpoint for non-indexed session repositories
At present, Actuator sessions endpoint is supported only on a Servlet stack and also requires an indexed session repository. With Spring Session moving to non-indexed session repositories as a default for some session stores, this means that sessions endpoint won't be available unless users opt into a (non-default) indexed session repository.

This commit updates SessionEndpoint so that it is able to work with a non-indexed session repository. In such setup, it exposes operations for fetching session by id and deleting the session.

Additionally, this also adds support for reactive stack by introducing ReactiveSessionEndpoint and its auto-configuration support.

See gh-32046
2024-01-22 12:55:37 +01:00
Andy Wilkinson a09cc22841 Allow a WebEndpointTest to only run against certain infrastructure
Closes gh-32054
2024-01-22 12:54:31 +01:00