Commit Graph

30 Commits

Author SHA1 Message Date
Moritz Halbritter da8aedb193 Restore management.logging.export.enabled in documentation
Closes gh-47961
2025-11-05 14:21:37 +01:00
Moritz Halbritter 93381c7e8e Switch property backing OnEnabledLoggingExportCondition
It's now 'management.logging.export.{name}.enabled'.

Closes gh-47957
2025-11-05 12:14:14 +01:00
Stéphane Nicoll 18335a6bba Polish 2025-10-28 15:12:39 +01:00
Andy Wilkinson f72da4c77a Fix Actuator with Jackson 2 but no spring-web
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:25], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:25], map[id:windows-latest name:Windows]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Waiting to run Details
Run CodeQL Analysis / run-analysis (push) Waiting to run Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:17]) (push) Waiting to run Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run Details
Previously, if Actuator was being used in a non-web app such that
spring-web was not on the classpath, the app would fail to start
if Jackson 2 was present. This occured as the auto-configuration
for the EndpointJackson2ObjectMapper tried to use spring-web's
Jackson2ObjectMapperBuilder that was not present.

This commit updates the auto-configuration to back off when
Jackson2ObjectMapperBuilder is absent, aligning it with the
behavior of JacksonEndpointAutoConfiguration in 3.5.

Fixes gh-47788
2025-10-24 14:39:47 +01:00
Andy Wilkinson aa95282290 Polish `@since` tags
Closes gh-47779
2025-10-23 12:48:58 +01:00
Andy Wilkinson 4e94f26935 Support JMX endpoints when only Jackson 2 is present
Closes gh-47688
2025-10-22 14:40:59 +01:00
Phillip Webb 350179901f Merge branch '3.5.x'
Closes gh-47751
2025-10-21 15:04:57 -07:00
Yanming Zhou 609b0b444e Use JsonMapper instead of ObjectMapper where feasible
See gh-47503

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-10-20 13:16:52 +02:00
Phillip Webb 183d765b4d Support actuator with Jackson 2 only
See gh-47688
2025-10-17 13:17:19 -07:00
Phillip Webb 8f89bd304f Polish code to fix warnings 2025-10-14 21:51:25 -07:00
Phillip Webb 34e0382858 Move actuator heath code to spring-boot-health
Closes gh-46357
2025-10-14 21:51:24 -07:00
Phillip Webb e147ff4b2f Polish 2025-10-14 21:14:06 -07:00
Phillip Webb e01b36216a Revert Support pluggable types for EndpointJsonMapper
Closes gh-46534
2025-10-09 22:48:45 -07:00
Moritz Halbritter 4af0d6d747 Add nullability annotations to tests in module/spring-boot-actuator-autoconfigure
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter 3c3726b89e Improve null-safety of module/spring-boot-actuator-autoconfigure
See gh-47263
2025-10-02 15:35:03 +02:00
Phillip Webb fc68b001d8 Remove `isImmutable` and `getPrefix` from `OriginLookup`
Drop `isImmutable` and `getPrefix` from `OriginLookup` since
they're not really Origin concerns. Now that `env` is a
foundational layer we can add a dedicated `PropertySourceInfo`
interface and add that to the `o.s.b.env` package without
creating a package tangle.

Closes gh-45547
2025-09-17 14:57:33 -07:00
Stéphane Nicoll 83ad15ba3b Enable liveness and readiness by default
Closes gh-22825
2025-09-15 11:33:34 +02:00
Stéphane Nicoll b3c38a30ae Start building against Spring Security 7.0.0-M3 snapshots
See gh-47199
2025-09-13 18:39:20 +02:00
Phillip Webb 239f384ac0 Update PropertyMapper to better support nullability
Refactor `PropertyMapper` so that it no longer calls adapter or
predicate methods by default when the source value is `null`. This
effectively makes all default calls the same as using
`alwaysWhenNotNull` in the previous generation of the code.

For the limited times when you do need to deal with `null` values, the
new `always()` method can be used.

For example,

	map.from(source::method).to(destination::method);

Will not call `destination.method(...)` if `source.method()` returns
`null`.

Where as:

	map.from(source::method).always().to(destination::method);

Will call  `destination.method(null)` if `source.method()` returns
`null`.

This update provides clearer semantics for the API and allows for better
JSpecify nullability annotations. It has also simplified much of our
existing property mapper code.

Closes gh-47024

Co-authored-by: Moritz Halbritter <moritz.halbritter@broadcom.com>
2025-09-05 14:43:33 -07:00
Andy Wilkinson b888ba46da Revert "Merge branch '3.5.x'"
This reverts commit fc2700674e, reversing
changes made to b1b5880f48.

See gh-47038
2025-09-04 16:03:50 +01:00
Andy Wilkinson fc2700674e Merge branch '3.5.x'
Closes gh-47038
2025-09-04 11:05:08 +01:00
Andy Wilkinson d353038c58 Update Jackson support to require Jackson 3
Closes gh-45535
2025-09-02 11:37:09 +01:00
Moritz Halbritter 2e09df4e1a Improve null-safety of module/spring-boot-actuator-autoconfigure
See gh-46926
2025-08-26 14:22:54 +02:00
Johnny Lim 12a99b0ca7 Polish
See gh-46878

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-08-18 18:11:50 +02:00
Stéphane Nicoll 95c70324cf Fix order of additional metadata 2025-08-18 13:13:30 +02:00
Stéphane Nicoll b5b95b88c9 Review configuration properties
This commit reviews the configuration properties to fix a number of
oddities found in the first milestone:

* Additional configuration metadata file in the wrong location.
* Missing manual error metadata for removed properties

Closes gh-46535
2025-08-18 11:41:07 +02:00
Moritz Halbritter 2ce974c7b1 Add more nullability annotations to module/spring-boot-actuator-autoconfigure
See gh-46587
2025-08-04 11:27:40 +02:00
Moritz Halbritter 1fb95fbd18 Add nullability annotations to module/spring-boot-actuator-autoconfigure
See gh-46587
2025-07-29 16:25:22 +02:00
Moritz Halbritter c0f1f641ce Make auto-configurations final and remove public members
Closes gh-32883
2025-07-29 09:48:49 +02:00
Phillip Webb decc32dde3 Restructure project directories to better fit Gradle
Closes gh-46358
2025-07-10 17:54:08 -07:00